From 9a5f0949d758e515ed1d8345580e2df5d2aac592c7f745ae8448757111008483 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sat, 13 Sep 2008 10:02:46 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/postfix?expand=0&rev=29 --- .gitattributes | 2 + postfix-2.5.3.tar.gz | 3 -- postfix-2.5.5.tar.bz | 3 ++ postfix-SuSE.tar.gz | 4 +- postfix.changes | 28 +++++++++++++ postfix.spec | 96 +++++++++++++++++++++++--------------------- 6 files changed, 85 insertions(+), 51 deletions(-) delete mode 100644 postfix-2.5.3.tar.gz create mode 100644 postfix-2.5.5.tar.bz diff --git a/.gitattributes b/.gitattributes index 9b03811..31cd4f8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -21,3 +21,5 @@ *.xz filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text +## Specific LFS patterns +postfix-2.5.5.tar.bz filter=lfs diff=lfs merge=lfs -text diff --git a/postfix-2.5.3.tar.gz b/postfix-2.5.3.tar.gz deleted file mode 100644 index c761dec..0000000 --- a/postfix-2.5.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4f8f933dd437fd9c29b2b53795cb16a20d6ca73bccf445101aeb5e05068a3a43 -size 3156942 diff --git a/postfix-2.5.5.tar.bz b/postfix-2.5.5.tar.bz new file mode 100644 index 0000000..80642ee --- /dev/null +++ b/postfix-2.5.5.tar.bz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0129b9a9b19f41ef42daeb7bb955f51656511d7c2348afbd6e453101c44bc6ba +size 2306658 diff --git a/postfix-SuSE.tar.gz b/postfix-SuSE.tar.gz index c529099..fbb884b 100644 --- a/postfix-SuSE.tar.gz +++ b/postfix-SuSE.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3527f4d416bb553a8c6b2b3d3c52259f5e05b3ccc6637abb41ff02ca815a443e -size 17768 +oid sha256:d640713d280e484610a4c6df8d0de85c1a98e3c969a2fcbe6b03d137c1eeb6d1 +size 17682 diff --git a/postfix.changes b/postfix.changes index 6c6fb2e..e59e98b 100644 --- a/postfix.changes +++ b/postfix.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Thu Sep 11 14:34:22 CEST 2008 - varkoly@suse.de + +- (bnc#415216) - Postfix RPM Install Displays Multiple Warnings +- clean up spec file + +------------------------------------------------------------------- +Tue Sep 9 09:57:35 CEST 2008 - varkoly@suse.de + +- Update to Version 2.5 patchlevel 5 + * Bugfix (introduced Postfix 2.4): epoll file descriptor leak. + With Postfix >= 2.4 on Linux >= 2.6, Postfix has an epoll + file descriptor leak when it executes non-Postfix commands + in, for example, user-controlled $HOME/.forward files. + * Security: some systems have changed their link() semantics, + and will hardlink a symlink, contrary to POSIX and XPG4. + Sebastian Krahmer, SuSE. File: util/safe_open.c. + + The solution introduces the following incompatible change: + when the target of mail delivery is a symlink, the parent + directory of that symlink must now be writable by root only + (in addition to the already existing requirement that the + symlink itself is owned by root). This change will break + legitimate configurations that deliver mail to a symbolic + link in a directory with less restrictive permissions. + * Bugfix: dangling pointer in vstring_sprintf_prepend(). + File: util/vstring.c. + ------------------------------------------------------------------- Mon Aug 25 18:45:03 CEST 2008 - mt@suse.de diff --git a/postfix.spec b/postfix.spec index 7e50b8e..7c82048 100644 --- a/postfix.spec +++ b/postfix.spec @@ -1,5 +1,5 @@ # -# spec file for package postfix (Version 2.5.3) +# spec file for package postfix (Version 2.5.5) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -31,9 +31,9 @@ Provides: smtp_daemon Conflicts: sendmail exim AutoReqProv: on Summary: A fast, secure, and flexible mailer -Version: 2.5.3 -Release: 4 -Source: postfix-%{version}.tar.gz +Version: 2.5.5 +Release: 1 +Source: postfix-%{version}.tar.bz Source1: postfix-SuSE.tar.gz Patch: dynamic_maps.patch Patch1: dynamic_maps_pie.patch @@ -45,7 +45,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %package mysql License: IBM Public License -Summary: postfix plugin to support MySQL maps +Summary: Postfix plugin to support MySQL maps AutoReqProv: on Group: Productivity/Networking/Email/Servers PreReq: %{name} = %{version} @@ -53,7 +53,7 @@ PreReq: %{name} = %{version} %package postgresql License: IBM Public License -Summary: postfix plugin to support PostgreSQL maps +Summary: Postfix plugin to support PostgreSQL maps AutoReqProv: on Group: Productivity/Networking/Email/Servers PreReq: %{name} = %{version} @@ -61,7 +61,7 @@ PreReq: %{name} = %{version} %package devel License: IBM Public License -Summary: Development headers for the postfix package. +Summary: Development headers for the postfix package AutoReqProv: on Group: Productivity/Networking/Email/Servers PreReq: %{name} = %{version} @@ -105,11 +105,7 @@ export CCARGS="$CCARGS -DHAS_MYSQL -I/usr/include/mysql" export CCARGS="$CCARGS -DHAS_PGSQL -I/usr/include/pgsql" export CCARGS="$CCARGS -DUSE_CYRUS_SASL" export AUXLIBS="-lldap -llber -lpcre" -%if %suse_version > 810 export AUXLIBS="$AUXLIBS -lsasl2" -%else -export AUXLIBS="$AUXLIBS -lsasl" -%endif %if %{usetls} export AUXLIBS="$AUXLIBS -lssl -lcrypto" %endif @@ -117,9 +113,7 @@ export AUXLIBS="$AUXLIBS -lssl -lcrypto" export CCARGS="$CCARGS -DUSE_TLS" %endif export CCARGS="$CCARGS $RPM_OPT_FLAGS -Wno-comments" -%if %suse_version > 930 export PIE=-pie -%endif make makefiles DEBUG="" cd lib for i in dns global master tls util milter; do @@ -170,10 +164,8 @@ mkdir -p $RPM_BUILD_ROOT/usr/sbin mkdir -p $RPM_BUILD_ROOT/%{conf_backup_dir} mkdir -p $RPM_BUILD_ROOT/%{pf_sample_directory} mkdir -p $RPM_BUILD_ROOT/usr/include/postfix -%if %suse_version > 920 mkdir -p $RPM_BUILD_ROOT/etc/pam.d install -m 644 postfix-SuSE/smtp $RPM_BUILD_ROOT/etc/pam.d/smtp -%endif #mkdir samples install -m 755 postfix-SuSE/rc.postfix $RPM_BUILD_ROOT/etc/init.d/postfix ln -sf ../etc/init.d/postfix $RPM_BUILD_ROOT/sbin/rcpostfix @@ -293,11 +285,9 @@ fi /usr/sbin/groupadd -g %{postfix_gid} -o -r postfix 2> /dev/null || : /usr/sbin/groupadd -g %{maildrop_gid} -o -r maildrop 2> /dev/null || : /usr/sbin/useradd -r -o -g postfix -u %{postfix_uid} -s /bin/false -c "Postfix Daemon" -d /%{pf_queue_directory} postfix 2> /dev/null || : -%if %suse_version >= 900 %preun %stop_on_removal postfix -%endif %post # Remember whether we had an older version of postfix installed before @@ -347,13 +337,20 @@ fi # ------------------------------------------------------------------ # ------------------------------------------------------------------ # updating main.cf -echo "Updating postfix configuration files" MAINCF=etc/postfix/main.cf MASTERCF=etc/postfix/master.cf TMPMAIN=etc/postfix/main.cf.tmp.$$ TMPMASTER=etc/postfix/master.cf.tmp.$$ BAKSUFFIX=$(date +%Y-%m-%d) MD5DIR=var/adm/SuSEconfig/md5 +if [ ${1:-0} -gt 1 ]; then + echo "Updating postfix configuration files" +else + test -e $MD5DIR/$MAINCF && rm -f $MD5DIR/$MAINCF + test -e $MD5DIR/$MASTERCF && rm -f $MD5DIR/$MASTERCF + test -e $MAINCF && rm -f $MAINCF.SuSEconfig + test -e $MASTERCF && rm -f $MASTERCF.SuSEconfig +fi mkdir -p $MD5DIR/etc/postfix cp --remove-destination $MAINCF $TMPMAIN cp --remove-destination $MASTERCF $TMPMASTER @@ -366,19 +363,6 @@ fi #This is a new feature in 2.3.2 grep -ql "^scache" $MASTERCF || \ perl -pi -e 's/(^anvil.*anvil)/$1\nscache unix - - n - 1 scache/' $MASTERCF -usr/sbin/postconf -e \ - "manpage_directory = %{_mandir}" \ - "setgid_group = %{pf_setgid_group}" \ - "mailq_path = %{pf_mailq_path}" \ - "newaliases_path = %{pf_newaliases_path}" \ - "sendmail_path = %{pf_sendmail_path}" \ - "readme_directory = %{pf_readme_directory}" \ - "html_directory = %{pf_html_directory}" \ - "sample_directory = %{pf_sample_directory}" \ - "daemon_directory = %{pf_daemon_directory}" -echo "executing upgrade-configuration" -usr/sbin/postfix set-permissions upgrade-configuration \ - setgid_group=%{pf_setgid_group} NEWMD5MAINCF=$(cat $MAINCF | grep -v "^#" | md5sum) NEWMD5MASTERCF=$(cat $MASTERCF | grep -v "^#" | md5sum) if [ -n "$OLDMD5MAINCF" ]; then @@ -404,15 +388,16 @@ if [ -n "$OLDMD5MASTERCF" ]; then else echo "$NEWMD5MASTERCF" > $MD5DIR/$MASTERCF fi -rm -f $TMPMAIN $TMPMASTER -%if %suse_version > 900 %run_suseconfig -m postfix -%endif +echo "executing upgrade-configuration" +usr/sbin/postfix set-permissions upgrade-configuration \ + setgid_group=%{pf_setgid_group} +rm -f $TMPMAIN $TMPMASTER +cat $MAINCF | grep -v "^#" | md5sum > $MD5DIR/$MAINCF +cat $MASTERCF | grep -v "^#" | md5sum > $MD5DIR/$MASTERCF %postun -%if %suse_version >= 900 %restart_on_update postfix -%endif %insserv_cleanup ldconfig @@ -477,9 +462,7 @@ fi %files -f %{postfixfiles} %defattr(-,root,root) -%if %suse_version > 920 %config /etc/pam.d/* -%endif /var/adm/fillup-templates/sysconfig.postfix /var/adm/fillup-templates/sysconfig.mail-postfix /sbin/conf.d/SuSEconfig.postfix @@ -490,7 +473,7 @@ fi %config(noreplace) /etc/postfix/canonical #%config(noreplace) /etc/postfix/cidr_table %config(noreplace) /etc/postfix/main.cf -/etc/postfix/main.cf.default +%config /etc/postfix/main.cf.default %config(noreplace) /etc/postfix/master.cf %config(noreplace) /etc/postfix/openssl_postfix.conf.in %config(noreplace) /etc/postfix/relocated @@ -505,19 +488,19 @@ fi %config(noreplace) /etc/postfix/header_checks %config(noreplace) /etc/postfix/bounce.cf.default %config(noreplace) /etc/postfix/dynamicmaps.cf -/etc/sysconfig/SuSEfirewall2.d/services/postfix +%config /etc/sysconfig/SuSEfirewall2.d/services/postfix %dir /etc/sasl2/ %config(noreplace) /etc/sasl2/smtpd.conf -/etc/postfix/LICENSE +%config /etc/postfix/LICENSE %if %{usetls} -/etc/postfix/TLS_LICENSE +%config /etc/postfix/TLS_LICENSE %endif -/etc/postfix/makedefs.out -/etc/postfix/postfix-script -/etc/postfix/post-install -/etc/postfix/postfix-files %config /etc/permissions.d/postfix %config /etc/permissions.d/postfix.paranoid +%attr(0755, root, root) /etc/postfix/makedefs.out +%attr(0755, root, root) /etc/postfix/postfix-script +%attr(0755, root, root) /etc/postfix/post-install +%attr(0755, root, root) /etc/postfix/postfix-files %config %attr(0755,root,root) /etc/init.d/postfix /usr/bin/mailq /usr/bin/newaliases @@ -583,6 +566,27 @@ Authors: Wietse Venema %changelog +* Thu Sep 11 2008 varkoly@suse.de +- (bnc#415216) - Postfix RPM Install Displays Multiple Warnings +- clean up spec file +* Tue Sep 09 2008 varkoly@suse.de +- Update to Version 2.5 patchlevel 5 + * Bugfix (introduced Postfix 2.4): epoll file descriptor leak. + With Postfix >= 2.4 on Linux >= 2.6, Postfix has an epoll + file descriptor leak when it executes non-Postfix commands + in, for example, user-controlled $HOME/.forward files. + * Security: some systems have changed their link() semantics, + and will hardlink a symlink, contrary to POSIX and XPG4. + Sebastian Krahmer, SuSE. File: util/safe_open.c. + The solution introduces the following incompatible change: + when the target of mail delivery is a symlink, the parent + directory of that symlink must now be writable by root only + (in addition to the already existing requirement that the + symlink itself is owned by root). This change will break + legitimate configurations that deliver mail to a symbolic + link in a directory with less restrictive permissions. + * Bugfix: dangling pointer in vstring_sprintf_prepend(). + File: util/vstring.c. * Mon Aug 25 2008 mt@suse.de - init script: copy LSB *-Start tags to *-Stop - spec file: removed obsolete rc.config update hooks