postfix-alternatives.patch 1.0 KB

1234567891011121314151617181920212223
  1. Changing the postfix-files config file won't work right on upgrades because
  2. it's a noreplace configuration (the new version with the right paths in it is
  3. installed as postfix-files.rpmnew), so we just munge the post-install script.
  4. --- postfix-1.1.3/conf/post-install Thu Feb 28 16:15:08 2002
  5. +++ postfix-1.1.3/conf/post-install Thu Feb 28 16:14:54 2002
  6. @@ -429,6 +429,16 @@
  7. case $path in
  8. no|no/*) continue;;
  9. esac
  10. + # Munge paths for alternatives.
  11. + case $path in
  12. + /usr/bin/mailq) path=$path.postfix ;;
  13. + /usr/bin/newaliases) path=$path.postfix ;;
  14. + /usr/bin/rmail) path=$path.postfix ;;
  15. + /usr/sbin/sendmail) path=$path.postfix ;;
  16. + /usr/share/man/man1/mailq.1.gz) path=/usr/share/man/man1/mailq.postfix.1.gz ;;
  17. + /usr/share/man/man1/newaliases.1.gz) path=/usr/share/man/man1/newaliases.postfix.1.gz ;;
  18. + /usr/share/man/man5/aliases.5.gz) path=/usr/share/man/man5/aliases.postfix.5.gz ;;
  19. + esac
  20. # Pick up the flags.
  21. case $flags in *u*) upgrade_flag=1;; *) upgrade_flag=;; esac
  22. case $flags in *c*) create_flag=1;; *) create_flag=;; esac