Actually, both INSTALL and the .spec file itself were clear that it was designed for RH.
My point was that the information on how to build RPMs with both custom paths *and* custom configure options was scattered around INSTALL, the FAQ and the mailing list, and that some of the information I found there is not completely correct. Also, when it is recommended that building from RPMs should be done as non-root, it is strange that a file in /sbin should be referenced at all. -- Bill Michell [EMAIL PROTECTED] -----Original Message----- From: Juha Saarinen [mailto:[EMAIL PROTECTED]] Sent: 18 July 2002 00:41 To: Bill Michell Cc: [EMAIL PROTECTED] Subject: Re: Building RPMs again (was RE: [courier-users] Allow relay from any IP if authenticated) 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. ;-) -- Juha Saarinen ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
