forked from pool/postfix
This commit is contained in:
parent
cd1959ea70
commit
9a5f0949d7
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -21,3 +21,5 @@
|
|||||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
*.zst 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
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:4f8f933dd437fd9c29b2b53795cb16a20d6ca73bccf445101aeb5e05068a3a43
|
|
||||||
size 3156942
|
|
3
postfix-2.5.5.tar.bz
Normal file
3
postfix-2.5.5.tar.bz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0129b9a9b19f41ef42daeb7bb955f51656511d7c2348afbd6e453101c44bc6ba
|
||||||
|
size 2306658
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:3527f4d416bb553a8c6b2b3d3c52259f5e05b3ccc6637abb41ff02ca815a443e
|
oid sha256:d640713d280e484610a4c6df8d0de85c1a98e3c969a2fcbe6b03d137c1eeb6d1
|
||||||
size 17768
|
size 17682
|
||||||
|
@ -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
|
Mon Aug 25 18:45:03 CEST 2008 - mt@suse.de
|
||||||
|
|
||||||
|
96
postfix.spec
96
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.
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -31,9 +31,9 @@ Provides: smtp_daemon
|
|||||||
Conflicts: sendmail exim
|
Conflicts: sendmail exim
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Summary: A fast, secure, and flexible mailer
|
Summary: A fast, secure, and flexible mailer
|
||||||
Version: 2.5.3
|
Version: 2.5.5
|
||||||
Release: 4
|
Release: 1
|
||||||
Source: postfix-%{version}.tar.gz
|
Source: postfix-%{version}.tar.bz
|
||||||
Source1: postfix-SuSE.tar.gz
|
Source1: postfix-SuSE.tar.gz
|
||||||
Patch: dynamic_maps.patch
|
Patch: dynamic_maps.patch
|
||||||
Patch1: dynamic_maps_pie.patch
|
Patch1: dynamic_maps_pie.patch
|
||||||
@ -45,7 +45,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
|
|
||||||
%package mysql
|
%package mysql
|
||||||
License: IBM Public License
|
License: IBM Public License
|
||||||
Summary: postfix plugin to support MySQL maps
|
Summary: Postfix plugin to support MySQL maps
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Group: Productivity/Networking/Email/Servers
|
Group: Productivity/Networking/Email/Servers
|
||||||
PreReq: %{name} = %{version}
|
PreReq: %{name} = %{version}
|
||||||
@ -53,7 +53,7 @@ PreReq: %{name} = %{version}
|
|||||||
|
|
||||||
%package postgresql
|
%package postgresql
|
||||||
License: IBM Public License
|
License: IBM Public License
|
||||||
Summary: postfix plugin to support PostgreSQL maps
|
Summary: Postfix plugin to support PostgreSQL maps
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Group: Productivity/Networking/Email/Servers
|
Group: Productivity/Networking/Email/Servers
|
||||||
PreReq: %{name} = %{version}
|
PreReq: %{name} = %{version}
|
||||||
@ -61,7 +61,7 @@ PreReq: %{name} = %{version}
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
License: IBM Public License
|
License: IBM Public License
|
||||||
Summary: Development headers for the postfix package.
|
Summary: Development headers for the postfix package
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Group: Productivity/Networking/Email/Servers
|
Group: Productivity/Networking/Email/Servers
|
||||||
PreReq: %{name} = %{version}
|
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 -DHAS_PGSQL -I/usr/include/pgsql"
|
||||||
export CCARGS="$CCARGS -DUSE_CYRUS_SASL"
|
export CCARGS="$CCARGS -DUSE_CYRUS_SASL"
|
||||||
export AUXLIBS="-lldap -llber -lpcre"
|
export AUXLIBS="-lldap -llber -lpcre"
|
||||||
%if %suse_version > 810
|
|
||||||
export AUXLIBS="$AUXLIBS -lsasl2"
|
export AUXLIBS="$AUXLIBS -lsasl2"
|
||||||
%else
|
|
||||||
export AUXLIBS="$AUXLIBS -lsasl"
|
|
||||||
%endif
|
|
||||||
%if %{usetls}
|
%if %{usetls}
|
||||||
export AUXLIBS="$AUXLIBS -lssl -lcrypto"
|
export AUXLIBS="$AUXLIBS -lssl -lcrypto"
|
||||||
%endif
|
%endif
|
||||||
@ -117,9 +113,7 @@ export AUXLIBS="$AUXLIBS -lssl -lcrypto"
|
|||||||
export CCARGS="$CCARGS -DUSE_TLS"
|
export CCARGS="$CCARGS -DUSE_TLS"
|
||||||
%endif
|
%endif
|
||||||
export CCARGS="$CCARGS $RPM_OPT_FLAGS -Wno-comments"
|
export CCARGS="$CCARGS $RPM_OPT_FLAGS -Wno-comments"
|
||||||
%if %suse_version > 930
|
|
||||||
export PIE=-pie
|
export PIE=-pie
|
||||||
%endif
|
|
||||||
make makefiles DEBUG=""
|
make makefiles DEBUG=""
|
||||||
cd lib
|
cd lib
|
||||||
for i in dns global master tls util milter; do
|
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/%{conf_backup_dir}
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{pf_sample_directory}
|
mkdir -p $RPM_BUILD_ROOT/%{pf_sample_directory}
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/include/postfix
|
mkdir -p $RPM_BUILD_ROOT/usr/include/postfix
|
||||||
%if %suse_version > 920
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/pam.d
|
mkdir -p $RPM_BUILD_ROOT/etc/pam.d
|
||||||
install -m 644 postfix-SuSE/smtp $RPM_BUILD_ROOT/etc/pam.d/smtp
|
install -m 644 postfix-SuSE/smtp $RPM_BUILD_ROOT/etc/pam.d/smtp
|
||||||
%endif
|
|
||||||
#mkdir samples
|
#mkdir samples
|
||||||
install -m 755 postfix-SuSE/rc.postfix $RPM_BUILD_ROOT/etc/init.d/postfix
|
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
|
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 %{postfix_gid} -o -r postfix 2> /dev/null || :
|
||||||
/usr/sbin/groupadd -g %{maildrop_gid} -o -r maildrop 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 || :
|
/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
|
%preun
|
||||||
%stop_on_removal postfix
|
%stop_on_removal postfix
|
||||||
%endif
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
# Remember whether we had an older version of postfix installed before
|
# Remember whether we had an older version of postfix installed before
|
||||||
@ -347,13 +337,20 @@ fi
|
|||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
# updating main.cf
|
# updating main.cf
|
||||||
echo "Updating postfix configuration files"
|
|
||||||
MAINCF=etc/postfix/main.cf
|
MAINCF=etc/postfix/main.cf
|
||||||
MASTERCF=etc/postfix/master.cf
|
MASTERCF=etc/postfix/master.cf
|
||||||
TMPMAIN=etc/postfix/main.cf.tmp.$$
|
TMPMAIN=etc/postfix/main.cf.tmp.$$
|
||||||
TMPMASTER=etc/postfix/master.cf.tmp.$$
|
TMPMASTER=etc/postfix/master.cf.tmp.$$
|
||||||
BAKSUFFIX=$(date +%Y-%m-%d)
|
BAKSUFFIX=$(date +%Y-%m-%d)
|
||||||
MD5DIR=var/adm/SuSEconfig/md5
|
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
|
mkdir -p $MD5DIR/etc/postfix
|
||||||
cp --remove-destination $MAINCF $TMPMAIN
|
cp --remove-destination $MAINCF $TMPMAIN
|
||||||
cp --remove-destination $MASTERCF $TMPMASTER
|
cp --remove-destination $MASTERCF $TMPMASTER
|
||||||
@ -366,19 +363,6 @@ fi
|
|||||||
#This is a new feature in 2.3.2
|
#This is a new feature in 2.3.2
|
||||||
grep -ql "^scache" $MASTERCF || \
|
grep -ql "^scache" $MASTERCF || \
|
||||||
perl -pi -e 's/(^anvil.*anvil)/$1\nscache unix - - n - 1 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)
|
NEWMD5MAINCF=$(cat $MAINCF | grep -v "^#" | md5sum)
|
||||||
NEWMD5MASTERCF=$(cat $MASTERCF | grep -v "^#" | md5sum)
|
NEWMD5MASTERCF=$(cat $MASTERCF | grep -v "^#" | md5sum)
|
||||||
if [ -n "$OLDMD5MAINCF" ]; then
|
if [ -n "$OLDMD5MAINCF" ]; then
|
||||||
@ -404,15 +388,16 @@ if [ -n "$OLDMD5MASTERCF" ]; then
|
|||||||
else
|
else
|
||||||
echo "$NEWMD5MASTERCF" > $MD5DIR/$MASTERCF
|
echo "$NEWMD5MASTERCF" > $MD5DIR/$MASTERCF
|
||||||
fi
|
fi
|
||||||
rm -f $TMPMAIN $TMPMASTER
|
|
||||||
%if %suse_version > 900
|
|
||||||
%run_suseconfig -m postfix
|
%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
|
%postun
|
||||||
%if %suse_version >= 900
|
|
||||||
%restart_on_update postfix
|
%restart_on_update postfix
|
||||||
%endif
|
|
||||||
%insserv_cleanup
|
%insserv_cleanup
|
||||||
ldconfig
|
ldconfig
|
||||||
|
|
||||||
@ -477,9 +462,7 @@ fi
|
|||||||
|
|
||||||
%files -f %{postfixfiles}
|
%files -f %{postfixfiles}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%if %suse_version > 920
|
|
||||||
%config /etc/pam.d/*
|
%config /etc/pam.d/*
|
||||||
%endif
|
|
||||||
/var/adm/fillup-templates/sysconfig.postfix
|
/var/adm/fillup-templates/sysconfig.postfix
|
||||||
/var/adm/fillup-templates/sysconfig.mail-postfix
|
/var/adm/fillup-templates/sysconfig.mail-postfix
|
||||||
/sbin/conf.d/SuSEconfig.postfix
|
/sbin/conf.d/SuSEconfig.postfix
|
||||||
@ -490,7 +473,7 @@ fi
|
|||||||
%config(noreplace) /etc/postfix/canonical
|
%config(noreplace) /etc/postfix/canonical
|
||||||
#%config(noreplace) /etc/postfix/cidr_table
|
#%config(noreplace) /etc/postfix/cidr_table
|
||||||
%config(noreplace) /etc/postfix/main.cf
|
%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/master.cf
|
||||||
%config(noreplace) /etc/postfix/openssl_postfix.conf.in
|
%config(noreplace) /etc/postfix/openssl_postfix.conf.in
|
||||||
%config(noreplace) /etc/postfix/relocated
|
%config(noreplace) /etc/postfix/relocated
|
||||||
@ -505,19 +488,19 @@ fi
|
|||||||
%config(noreplace) /etc/postfix/header_checks
|
%config(noreplace) /etc/postfix/header_checks
|
||||||
%config(noreplace) /etc/postfix/bounce.cf.default
|
%config(noreplace) /etc/postfix/bounce.cf.default
|
||||||
%config(noreplace) /etc/postfix/dynamicmaps.cf
|
%config(noreplace) /etc/postfix/dynamicmaps.cf
|
||||||
/etc/sysconfig/SuSEfirewall2.d/services/postfix
|
%config /etc/sysconfig/SuSEfirewall2.d/services/postfix
|
||||||
%dir /etc/sasl2/
|
%dir /etc/sasl2/
|
||||||
%config(noreplace) /etc/sasl2/smtpd.conf
|
%config(noreplace) /etc/sasl2/smtpd.conf
|
||||||
/etc/postfix/LICENSE
|
%config /etc/postfix/LICENSE
|
||||||
%if %{usetls}
|
%if %{usetls}
|
||||||
/etc/postfix/TLS_LICENSE
|
%config /etc/postfix/TLS_LICENSE
|
||||||
%endif
|
%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
|
||||||
%config /etc/permissions.d/postfix.paranoid
|
%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
|
%config %attr(0755,root,root) /etc/init.d/postfix
|
||||||
/usr/bin/mailq
|
/usr/bin/mailq
|
||||||
/usr/bin/newaliases
|
/usr/bin/newaliases
|
||||||
@ -583,6 +566,27 @@ Authors:
|
|||||||
Wietse Venema <wietse@porcupine.org>
|
Wietse Venema <wietse@porcupine.org>
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Aug 25 2008 mt@suse.de
|
||||||
- init script: copy LSB *-Start tags to *-Stop
|
- init script: copy LSB *-Start tags to *-Stop
|
||||||
- spec file: removed obsolete rc.config update hooks
|
- spec file: removed obsolete rc.config update hooks
|
||||||
|
Loading…
Reference in New Issue
Block a user