26 messages in net.sourceforge.lists.courier-usersRe: Building RPMs again (was RE: [cou...
FromSent OnAttachments
Michael BernardoJul 17, 2002 12:03 pm 
Jesse KeatingJul 17, 2002 12:16 pm 
Randall ShawJul 17, 2002 1:12 pm 
Jesse KeatingJul 17, 2002 1:24 pm 
Randall ShawJul 17, 2002 2:52 pm 
Jesse KeatingJul 17, 2002 2:59 pm 
Juha SaarinenJul 17, 2002 3:08 pm 
Randall ShawJul 17, 2002 3:22 pm 
Bill MichellJul 17, 2002 4:21 pm 
Jesse KeatingJul 17, 2002 4:35 pm 
Juha SaarinenJul 17, 2002 4:40 pm 
Bill MichellJul 17, 2002 4:49 pm 
Bill MichellJul 17, 2002 4:51 pm 
Juha SaarinenJul 17, 2002 5:03 pm 
Jesse KeatingJul 17, 2002 5:07 pm 
Patrick BeartJul 17, 2002 5:09 pm 
Bill MichellJul 17, 2002 5:20 pm 
Jesse KeatingJul 17, 2002 5:21 pm 
Bill MichellJul 17, 2002 5:23 pm 
Juha SaarinenJul 17, 2002 5:27 pm 
Juha SaarinenJul 17, 2002 5:40 pm 
Sam VarshavchikJul 17, 2002 5:53 pm 
Jesse KeatingJul 17, 2002 6:00 pm 
Juha SaarinenJul 17, 2002 6:07 pm 
Anand BuddhdevJul 18, 2002 1:14 am 
Todd LyonsJul 20, 2002 11:40 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Building RPMs again (was RE: [courier-users] Allow relay from any IP if authenticated)Actions...
From:Juha Saarinen (ju@saarinen.org)
Date:Jul 17, 2002 4:40:41 pm
List:net.sourceforge.lists.courier-users

On Thu, 18 Jul 2002, Bill Michell wrote:

Not evil, perhaps, but not trivial.

I'm trying to build the rpms for the latest courier release version, on a SUSE 7.2 system, following all the instructions I have managed to track down so far...

I need to modify the install directories by editing the spec file because, for example, the apache home directory is actually at /usr/local/httpd

Then I start to hit problems - the faq doesn't make clear exactly how you "use that spec file to build your RPMs" - I have successfully overwritten my changes now several times. Should I be using the -ta option to rpm, or -tb, or something else? Oh - and there was a message on the mailing list suggests using ~ in the .rpmmacros file; this doesn't work too well (on SuSE at least) - you need to use either $HOME, or hard-code the value. Otherwise you see odd messages about inability to copy locale files to courier.spec, which is obviously nonsense.

Second, if I try and build the RPMs as non-root, I can't actually complete the process because /sbin/chkconfig is in the sbin directory, and ordinary users don't have access to that directory, which is reasonable, since stuff goes in the sbin directory, rather than bin, for a reason.

So; if building RPMs is the recommended way to install courier, but anyone not building for RedHat will have to use a custom .spec file in addition to xflags, could the FAQ (or even INSTALL) be updated with simple instructions on how to do this, instructions that actually work?

http://www.courier-mta.org/install.html should probably make it more clear that the SPEC file in the tarball is for Red Hat only. SuSE uses a different file system layout, as you've noticed, ditto Mandrake as others have pointed out.

'rpm -ta source.tar.gz' builds both the binary and source packages, whereas 'rpm -tb' builds just the binary ones. Either one will work.

You could always make life easy for yourself, and switch to Red Hack. ;-)