postfix/postfix-3.0.2-alternatives.patch

23 lines
973 B
Diff
Raw Normal View History

diff --git a/conf/post-install b/conf/post-install
index d5db260..71e18cf 100644
--- a/conf/post-install
+++ b/conf/post-install
@@ -530,6 +530,17 @@ test -n "$create" && {
case $path in
no|no/*) continue;;
esac
+ # Munge paths for alternatives.
+ case $path in
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
+ /usr/bin/mailq) path=$path.postfix ;;
+ /usr/bin/newaliases) path=$path.postfix ;;
+ /usr/bin/rmail) path=$path.postfix ;;
+ /usr/sbin/sendmail) path=$path.postfix ;;
+ /usr/share/man/man1/mailq.1.gz) path=/usr/share/man/man1/mailq.postfix.1.gz ;;
+ /usr/share/man/man1/newaliases.1.gz) path=/usr/share/man/man1/newaliases.postfix.1.gz ;;
+ /usr/share/man/man5/aliases.5.gz) path=/usr/share/man/man5/aliases.postfix.5.gz ;;
+ /usr/share/man/man8/smtpd.8.gz) path=/usr/share/man/man8/smtpd.postfix.8.gz ;;
+ esac
# Pick up the flags.
case $flags in *u*) upgrade_flag=1;; *) upgrade_flag=;; esac
case $flags in *c*) create_flag=1;; *) create_flag=;; esac