|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: RPM Packaging of the latest Snapshot
From: Bennett Todd (bet
rahul.net)Date: Sun Jun 04 2000 - 17:04:56 CDT
- Next message: Brad Knowles: "Re: pop-before-smtp (was Re: FreeInet and checking mail?)"
- Previous message: Wietse Venema: "Re: Getting around UCE filters"
- Next in thread: Wietse Venema: "Re: RPM Packaging of the latest Snapshot"
- Reply: Wietse Venema: "Re: RPM Packaging of the latest Snapshot"
- Reply: Michael Tokarev: "Re: RPM Packaging of the latest Snapshot"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
As the first step of working with the new content filtering
features, I wanted (naturally) to rpm the latest postfix.
I may turn up some more stuff that needs tweaking in further
testing, but I think I've got as simple and straightforward a
packaging of the latest snapshot as I can manage. It's not really as
simple as I'd ideally like. A few changes would account for most of
the ick.
It would be _way_ cleaner if we could avoid the here doc feeding the
interactive "INSTALL.sh" script; if that script could accept cmdline
args, or envars, or a config file with var=value defines, or
whatever to override a couple of defaults while still accepting the
others, that would definitely be nicer.
I had to dike out the calls to chown and chgrp in INSTALL.sh so the
resulting RPM would build as non-root, but that was only one line.
Then I had to do some manual frobbing to get spawn built, to make
and install the man page for it, and to get a symlink to sendmail
into /usr/lib/sendmail. But there's still not too much excess cruft
in this one; it's as clean as I can make it.
There are still some rough spots; if a /usr/lib/sendmail exists when
the rpm is built, the INSTALL.sh will decide to install sendmail
there rather than into /usr/sbin, and so the symlink will fail. And
I used the simplest useradd invocation to ensure that a postfix
userid is available in %pre, and made no effort to clean up in
%postun.
But if you get this note, this packaging is basically sound.
Unlike the earlier packaging I worked on, which is ... well, you
could call it "evolved", if you wanted to be kind:-) ... this one
is as close as I can manage to a direct simple straight install,
and mostly avoids non-default options. I did include LDAP and PCRE,
since they're so easy to do.
As always, when doing any non-trivial upgrade, save the non-default
options you've configured with "postconf -n >save-file", carefully
upgrade the software (I did an "rpm -e --nodeps postfix", then I
went "rm -rf /etc/postfix /var/spool/postfix", and finished by
making sure the "postfix" user and group were removed); then edit
those customizations you actually need back into main.cf, and try
starting; make sure to check maillog, and test carefully.
-Bennett
- text/plain attachment: postfix.spec
- application/pgp-signature attachment: stored
- Next message: Brad Knowles: "Re: pop-before-smtp (was Re: FreeInet and checking mail?)"
- Previous message: Wietse Venema: "Re: Getting around UCE filters"
- Next in thread: Wietse Venema: "Re: RPM Packaging of the latest Snapshot"
- Reply: Wietse Venema: "Re: RPM Packaging of the latest Snapshot"
- Reply: Michael Tokarev: "Re: RPM Packaging of the latest Snapshot"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]