Hi, I'm making a qmail RPM. All goes well, except that the users and groups are not being created. And they must be before running "make setup check". I've tried all locations in the spec file, but nothing :( Following my signature is the relevant part of the spec file. Any help would be appreciated. Warm Regards -- :wq! M?rio Gamito %description The most powerful MTA in the whole world. %prep %setup -q %build patch -p1 < qmail-ldap-1.03-20060201.patch cp files/Makefile . cp files/dirmaker . cp qmail.schema /etc/openldap/schema mkdir -p /var/qmail/ mkdir /var/log/qmail mkdir /var/log/qmail/qmail-send mkdir /var/log/qmail/qmail-smtpd mkdir /var/log/qmail/qmail-popup groupadd nofiles useradd -g nofiles -s /bin/false -d /var/qmail/alias alias useradd -g nofiles -s /bin/false -d /var/qmail qmaild useradd -g nofiles -s /bin/false -d /var/qmail qmaill useradd -g nofiles -s /bin/false -d /var/qmail qmailp groupadd qmail useradd -g qmail -s /bin/false -d /var/qmail qmailq useradd -g qmail -s /bin/false -d /var/qmail qmailr useradd -g qmail -s /bin/false -d /var/qmail qmails chown -R root.qmail /var/qmail/ chown -R qmaill.qmail /var/log/qmail/ chmod 2700 /var/log/qmail/* mkdir -p /var/qmail/supervise/qmail-send/log mkdir -p /var/qmail/supervise/qmail-smtpd/log mkdir -p /var/qmail/supervise/qmail-popup/log echo "vmail:*:11184:2110::/var/qmail/maildirs/:/bin/true" >> /etc/passwd echo "vmail::2110" >> /etc/group mkdir /var/qmail/maildirs chown -R vmail.vmail /var/qmail/maildirs make setup check %install ./config-fast mail.sincity.lan
M?rio Gamito wrote:> Hi, > > I'm making a qmail RPM. > All goes well, except that the users and groups are not being created. > And they must be before running "make setup check".Eh? Any part of anyone's build process that requires changing the host system (except for installing stuff needed to build) is broken. Probably, you shouldn't be running "make setup check" unless you're actually installing from source. If you're making the rpm, the onus is on you to ensure that the target system would pass "make setup check" by writing a script that makes the necessary changes at install time. You don't add users at build time, those won't be in the target system when you install. If you cannot build as a normal user, you're doing something wrong. I remember arguing this point with Bill Nottingham years ago, when the kernel wouldn't build unless by root.> I've tried all locations in the spec file, but nothing :( > > Following my signature is the relevant part of the spec file. > > Any help would be appreciated. > > Warm Regards-- Cheers John -- spambait 1aaaaaaa at coco.merseine.nu Z1aaaaaaa at coco.merseine.nu Please do not reply off-list
Hi, as you probably don't want to build a package as root, you cannot add system-users in the build-stage because of missing privileges. The only way around this is just not doing it and writing a patch for qmail's build system. Regards, Andreas Am Donnerstag, den 15.03.2007, 21:37 +0000 schrieb M?rio Gamito:> Hi, > > I'm making a qmail RPM. > All goes well, except that the users and groups are not being created. > And they must be before running "make setup check". > I've tried all locations in the spec file, but nothing :( > > Following my signature is the relevant part of the spec file. > > Any help would be appreciated. > > Warm Regards-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3187 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20070315/e7a11dbf/attachment.bin>