postfix/postfix-3.3.3-alternatives.patch
Troy Dawson 146a877764 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/postfix#5adef77d7a9ba463dbc7c9cedd3ff1c450a39691
2020-10-14 16:27:16 -07:00

23 lines
973 B
Diff

diff --git a/conf/post-install b/conf/post-install
index 25ef7e6..4fd6434 100644
--- a/conf/post-install
+++ b/conf/post-install
@@ -537,6 +537,17 @@ test -n "$create" && {
case $path in
no|no/*) continue;;
esac
+ # Munge paths for alternatives.
+ case $path in
+ /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