[packages/postfix] Rel 3. Drop config_directory/meta_directory = /etc/mail on upgrade
arekm
arekm at pld-linux.org
Sun Nov 8 13:18:42 CET 2026
commit 60d54e05558c68471821da4b733df9efffaa1d81
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Nov 8 13:08:51 2026 +0100
Rel 3. Drop config_directory/meta_directory = /etc/mail on upgrade
postfix.spec | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/postfix.spec b/postfix.spec
index 36b21ee..32c1cf6 100644
--- a/postfix.spec
+++ b/postfix.spec
@@ -28,7 +28,7 @@ Summary(pt_BR.UTF-8): Postfix - Um MTA (Mail Transport Agent) de alto desempenho
Summary(sk.UTF-8): Agent prenosu pošty Postfix
Name: postfix
Version: 3.11.7
-Release: 2
+Release: 3
Epoch: 2
License: IBM Public License or Eclipse Public License v2.0
Group: Networking/Daemons/SMTP
@@ -472,6 +472,13 @@ else
echo "postfix: configuration moved to %{_sysconfdir}/postfix, main.cf and master.cf repointed" >&2
echo "postfix: modified %{_sysconfdir}/mail files are left as *.rpmsave; run 'postfix check'" >&2
fi
+ # a main.cf generated by an /etc/mail build may pin these explicitly;
+ # config_directory then makes $config_directory maps miss and meta_directory
+ # hides dynamicmaps.cf, so let the compiled-in defaults apply
+ for p in config_directory meta_directory; do
+ [ "$(postconf -nh $p 2>/dev/null)" = "%{_sysconfdir}/mail" ] && \
+ postconf -X $p
+ done
%{_sbindir}/postfix upgrade-configuration
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/postfix.git/commitdiff/60d54e05558c68471821da4b733df9efffaa1d81
More information about the pld-cvs-commit
mailing list