X-Git-Url: https://git.tld-linux.org/?p=packages%2Fpostfix.git;a=blobdiff_plain;f=postfix.spec;fp=postfix.spec;h=cfdb4e9876294adece76893f7b550e201bc2992a;hp=0fafa1008f4cbd606c2f1c171fa29bcb7e5090cd;hb=d6aaa485e6534e1a3e85caaf847f977aea8f83ba;hpb=d0801a5faf9f1c076f33efe1a1aae30cc5916b59 diff --git a/postfix.spec b/postfix.spec index 0fafa10..cfdb4e9 100644 --- a/postfix.spec +++ b/postfix.spec @@ -18,13 +18,13 @@ Summary(pl.UTF-8): Serwer SMTP Postfix 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.8.0 -Release: 2 +Version: 3.8.1 +Release: 1 Epoch: 2 License: distributable Group: Networking/Daemons/SMTP Source0: ftp://ftp.porcupine.org/mirrors/postfix-release/official/%{name}-%{version}.tar.gz -# Source0-md5: 73cce85d78a6bf0d5a0c326c23361ed1 +# Source0-md5: 956d0baca1259189c80a9311ef4daaa1 Source1: %{name}.aliases Source2: %{name}.cron Source3: %{name}.init @@ -391,43 +391,12 @@ if [ $1 -le 1 ]; then fi [ -f "/etc/postfix/main.cf" ] && sed -i -e 's,^daemon_directory = .*,daemon_directory = %{_libdir}/postfix/sbin,' /etc/postfix/main.cf 2>/dev/null || : -%triggerun -- %{name} < 2:3.4.6-2 -if [ $1 -le 1 ]; then - exit 0 -fi -[ -d /etc/postfix ] || mkdir /etc/postfix 2>/dev/null || : -for f in /etc/mail/{access,aliases,body_checks,bounce.cf.*,canonical,dynamicmaps.cf,generic,header_checks,main.cf,master.cf,postfix-files,relocated,transport,virtual}; do - f=${f##*/} - [ -f "/etc/mail/$f" ] && mv "/etc/mail/$f" "/etc/postfix/$f" 2>/dev/null || : -done -find /etc/postfix -type f 2>/dev/null | xargs sed -i -e 's|/etc/mail|/etc/postfix|g' 2>/dev/null -for f in /etc/mail/*.db; do - f=${f##*/} - [ "$f" = "*.db" ] && break - [ -f "/etc/mail/$f" ] && rm "/etc/mail/$f" 2>/dev/null || : - f=${f%%.db} - [ -f "/etc/mail/$f" ] && mv "/etc/mail/$f" /etc/postfix 2>/dev/null || : - if [ "$f" = "aliases" ]; then - /usr/sbin/postalias "/etc/postfix/aliases" 2>/dev/null || : - else - /usr/sbin/postmap "/etc/postfix/$f" 2>/dev/null || : - fi -done -[ -n "$(find /etc/mail -type d -empty 2>/dev/null)" ] && rmdir /etc/mail 2>/dev/null || : - %triggerpostun -- %{name} < 2:3.8.0-1 echo echo "Warning! Option daemon_directory in file /etc/postfix/main.cf was set to" echo "path %{_libdir}/postfix/sbin." echo -%triggerpostun -- %{name} < 2:3.4.6-2 -echo -echo "Warning! Configuration has been migrated to /etc/postfix." -echo "It may be required to move some files manually from /etc/mail" -echo "to /etc/postfix and/or run postmap on some files in /etc/postfix." -echo - %files %defattr(644,root,root,755) %doc html COMPATIBILITY HISTORY LICENSE RELEASE_NOTES* TLS_*