----- Original Message ----- From: "Gordon Rowell" <[EMAIL PROTECTED]> To: "Nick Warr" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 07, 2003 1:42 PM Subject: Re: [e-smith-devinfo] The Qmail 1.03 src.rpm
> On Tue, Oct 07, 2003 at 10:15:27AM +0200, Nick Warr <[EMAIL PROTECTED]> wrote: > > I need to recompile the e-smith qmail rpm to add archiving functionality, > > You might like to look at doing this through smtpfront-qmail instead > of patching qmail. The only supported way for a user to inject mail > is via SMTP and archiving of cron mail seems a bit pointless. > > In Charlie's contrib area you'll find mailfront-0.86-1es2 which allows you > to nominate a log user in /var/service/smtpfront-qmail/env/LOG_RECIPIENT Sounds interesting, I really just need a way to have a copy of every outgoing mail sent archived for review. If Charlie's contrib does that, I'll give it a look. > > > but I've noticed that the .spec file contains pre code to look for the qmail > > UIDs and GIDs on the system where the compilation is taking place, even > > though it will not be installed there. > > I removed that in 6.0 development, in favour of a "Requires: qmail-users", > which only applies at install time. Still fails with the same %prep errors though, and the exact same code is there in the .spec file. I see your entry mentioning the removal, but it doesn't actually seem to have been removed. Or maybe I'm just dumb (another completely valid conclusion). > > My problem is that none of our systems use > > qmail except for the e-smith server, and it's obviously no production > > enviroment. Can I remove this requirement from the .spec file without > > problems, or do I need to create the qmail UIDs and GIDs? > > See qmail-1.03-08.src.rpm from the 6.0dev/SRPMS area. I did, the .spec file even mentions the removal, it just doesn't seem to have been done. Can I comment it out without hosing the whole thing? # rpm -bb qmail.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1850 + umask 022 + cd /usr/src/redhat/BUILD + nofiles=400 + qmail=401 + alias=400 + qmaild=401 + qmaill=402 + qmailp=403 + qmailq=404 + qmailr=405 + qmails=406 + group_check nofiles 400 + grep '^nofiles:' /etc/group ++ grep '^nofiles:' /etc/group ++ /usr/bin/cut -d: -f3 + '[' 402 '!=' 400 ']' + /usr/sbin/groupdel nofiles groupdel: cannot remove user's primary group. error: Bad exit status from /var/tmp/rpm-tmp.1850 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.1850 (%prep) Or am I way off here, and this has nothing to do with the requirement for the qmail UIDs and GIDs. This wouldn't be impossible, as I am in no way an expert in these sort of matters. Nick > Gordon > -- > Gordon Rowell [EMAIL PROTECTED] http://www.gormand.com.au > Gormand Pty Ltd PO Box 239 St Pauls NSW 2031 Australia > /* What a pile of australian legislature. */ - Alan Cox -- Please report bugs to [EMAIL PROTECTED] Please mail [EMAIL PROTECTED] (only) to discuss security issues Support for registered customers and partners to [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Searchable archive at http://www.mail-archive.com/devinfo%40lists.e-smith.org