X-Git-Url: https://git.tld-linux.org/?p=packages%2Fpostfix.git;a=blobdiff_plain;f=postfix.spec;h=6b7336fe34c3af851c8da5d9945f059fe6556b0f;hp=4dbbc84bfe652a7354b73c1e2139aaad9c461458;hb=refs%2Fheads%2Fpostfix-3.5;hpb=6bfc6f70edeec380c113a192aa15cfb94d0a5d5b diff --git a/postfix.spec b/postfix.spec index 4dbbc84..6b7336f 100644 --- a/postfix.spec +++ b/postfix.spec @@ -17,13 +17,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.3.2 -Release: 2 +Version: 3.5.16 +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: 4e6ed7056576e0c54cfce6040a0bb0ad +# Source0-md5: 1798f77b268ba81d19cb8ade320fbc2a Source1: %{name}.aliases Source2: %{name}.cron Source3: %{name}.init @@ -46,6 +46,7 @@ URL: http://www.postfix.org/ BuildRequires: db-devel # getifaddrs() with IPv6 support BuildRequires: glibc-devel >= 6:2.3.4 +BuildRequires: libnsl-devel >= 1.3.0 %{?with_mysql:BuildRequires: mysql-devel} %{?with_ldap:BuildRequires: openldap-devel >= 2.0.12} %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7l} @@ -375,14 +376,14 @@ if [ "$1" = "0" ]; then %groupremove postfix fi -%triggerun -- %{name} < 2:3.3.2-2 +%triggerun -- %{name} < 2:3.4.6-2 if [ $1 -le 1 ]; then exit 0 fi -set -x +[ -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 || : + 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 @@ -398,9 +399,8 @@ for f in /etc/mail/*.db; do fi done [ -n "$(find /etc/mail -type d -empty 2>/dev/null)" ] && rmdir /etc/mail 2>/dev/null || : -set +x -%triggerpostun -- %{name} < 2:3.3.2-2 +%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"