rpms/postfix/devel .cvsignore, 1.30, 1.31 postfix-etc-init.d-postfix, 1.11, 1.12 postfix.spec, 1.69, 1.70 sources, 1.30, 1.31
Miroslav Lichvar
mlichvar at fedoraproject.org
Thu Jan 22 15:54:15 UTC 2009
Author: mlichvar
Update of /cvs/pkgs/rpms/postfix/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9110
Modified Files:
.cvsignore postfix-etc-init.d-postfix postfix.spec sources
Log Message:
- update to 2.5.6 (#479108)
- rebuild /etc/aliases.db only when necessary (#327651)
- convert doc files to UTF-8
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/postfix/devel/.cvsignore,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- .cvsignore 20 Nov 2008 14:06:07 -0000 1.30
+++ .cvsignore 22 Jan 2009 15:53:45 -0000 1.31
@@ -1,2 +1,2 @@
pflogsumm-1.1.1.tar.gz
-postfix-2.5.5.tar.gz
+postfix-2.5.6.tar.gz
Index: postfix-etc-init.d-postfix
===================================================================
RCS file: /cvs/pkgs/rpms/postfix/devel/postfix-etc-init.d-postfix,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- postfix-etc-init.d-postfix 4 Oct 2007 13:39:00 -0000 1.11
+++ postfix-etc-init.d-postfix 22 Jan 2009 15:53:45 -0000 1.12
@@ -34,6 +34,8 @@
RETVAL=0
prog="postfix"
+ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp
+
status master >/dev/null 2>&1
running=$?
@@ -43,13 +45,28 @@
[ -d /var/spool/postfix ] || exit 5
}
+make_aliasesdb() {
+ if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
+ then
+ # /etc/aliases.db may be used by other MTA, make sure nothing
+ # has touched it since our last newaliases call
+ [ /etc/aliases -nt /etc/aliases.db ] ||
+ [ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
+ [ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
+ /usr/bin/newaliases
+ touch -r /etc/aliases.db "$ALIASESDB_STAMP"
+ else
+ /usr/bin/newaliases
+ fi
+}
+
start() {
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 1
conf_check
# Start daemons.
echo -n $"Starting postfix: "
- /usr/bin/newaliases >/dev/null 2>&1
+ make_aliasesdb >/dev/null 2>&1
/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/postfix
Index: postfix.spec
===================================================================
RCS file: /cvs/pkgs/rpms/postfix/devel/postfix.spec,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- postfix.spec 20 Nov 2008 14:06:08 -0000 1.69
+++ postfix.spec 22 Jan 2009 15:53:45 -0000 1.70
@@ -39,8 +39,8 @@
Name: postfix
Summary: Postfix Mail Transport Agent
-Version: 2.5.5
-Release: 2%{?dist}
+Version: 2.5.6
+Release: 1%{?dist}
Epoch: 2
Group: System Environment/Daemons
URL: http://www.postfix.org
@@ -166,6 +166,11 @@
gzip -dc %{SOURCE53} | tar xf -
%endif
+for f in README_FILES/TLS_{LEGACY_,}README; do
+ iconv -f iso8859-1 -t utf8 -o ${f}{_,} &&
+ touch -r ${f}{,_} && mv -f ${f}{_,}
+done
+
%build
CCARGS=-fPIC
AUXLIBS=
@@ -255,8 +260,8 @@
readme_directory=%{postfix_readme_dir} || exit 1
# This installs into the /etc/rc.d/init.d directory
-/bin/mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
-install -c %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postfix
+mkdir -p $RPM_BUILD_ROOT%{_initrddir}
+install -c %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/postfix
install -c auxiliary/rmail/rmail $RPM_BUILD_ROOT%{_bindir}/rmail.postfix
@@ -324,6 +329,9 @@
inet_protocols = all
EOF
+mkdir -p $RPM_BUILD_ROOT%{_var}/lib/misc
+touch $RPM_BUILD_ROOT%{_var}/lib/misc/postfix.aliasesdb-stamp
+
%post
/sbin/chkconfig --add postfix
@@ -396,7 +404,7 @@
%config(noreplace) %{sasl_v2_lib_dir}/smtpd.conf
%endif
%config(noreplace) %{_sysconfdir}/pam.d/smtp.postfix
-%attr(0755, root, root) /etc/rc.d/init.d/postfix
+%attr(0755, root, root) %{_initrddir}/postfix
# Misc files
@@ -470,6 +478,7 @@
%attr(0755, root, root) %{_bindir}/mailq.postfix
%attr(0755, root, root) %{_bindir}/newaliases.postfix
%attr(0755, root, root) %{_sbindir}/sendmail.postfix
+%ghost %attr(0644, root, root) %{_var}/lib/misc/postfix.aliasesdb-stamp
%files perl-scripts
%defattr(-, root, root)
@@ -482,6 +491,11 @@
%endif
%changelog
+* Thu Jan 22 2009 Miroslav Lichvar <mlichvar at redhat.com> 2:2.5.6-1
+- update to 2.5.6 (#479108)
+- rebuild /etc/aliases.db only when necessary (#327651)
+- convert doc files to UTF-8
+
* Thu Nov 20 2008 Miroslav Lichvar <mlichvar at redhat.com> 2:2.5.5-2
- enable Large file support on 32-bit archs (#428996)
- fix mailq(1) and newaliases(1) man pages (#429501)
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/postfix/devel/sources,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- sources 20 Nov 2008 14:06:08 -0000 1.30
+++ sources 22 Jan 2009 15:53:45 -0000 1.31
@@ -1,2 +1,2 @@
2f570477b2e205f9dfc1df13f00b5c0d pflogsumm-1.1.1.tar.gz
-6b4b848bdd2239dddfc9d385e57e19ef postfix-2.5.5.tar.gz
+ec2cb63b53f5f36c3ca91da8f3bc9407 postfix-2.5.6.tar.gz
More information about the fedora-extras-commits
mailing list