- update to 2.5.6 (#479108)
- rebuild /etc/aliases.db only when necessary (#327651) - convert doc files to UTF-8
This commit is contained in:
parent
47efd56ae6
commit
ea779f148c
@ -1,2 +1,2 @@
|
|||||||
pflogsumm-1.1.1.tar.gz
|
pflogsumm-1.1.1.tar.gz
|
||||||
postfix-2.5.5.tar.gz
|
postfix-2.5.6.tar.gz
|
||||||
|
@ -34,6 +34,8 @@
|
|||||||
RETVAL=0
|
RETVAL=0
|
||||||
prog="postfix"
|
prog="postfix"
|
||||||
|
|
||||||
|
ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp
|
||||||
|
|
||||||
status master >/dev/null 2>&1
|
status master >/dev/null 2>&1
|
||||||
running=$?
|
running=$?
|
||||||
|
|
||||||
@ -43,13 +45,28 @@ conf_check() {
|
|||||||
[ -d /var/spool/postfix ] || exit 5
|
[ -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() {
|
start() {
|
||||||
# Check that networking is up.
|
# Check that networking is up.
|
||||||
[ ${NETWORKING} = "no" ] && exit 1
|
[ ${NETWORKING} = "no" ] && exit 1
|
||||||
conf_check
|
conf_check
|
||||||
# Start daemons.
|
# Start daemons.
|
||||||
echo -n $"Starting postfix: "
|
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"
|
/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/postfix
|
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/postfix
|
||||||
|
24
postfix.spec
24
postfix.spec
@ -39,8 +39,8 @@
|
|||||||
|
|
||||||
Name: postfix
|
Name: postfix
|
||||||
Summary: Postfix Mail Transport Agent
|
Summary: Postfix Mail Transport Agent
|
||||||
Version: 2.5.5
|
Version: 2.5.6
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://www.postfix.org
|
URL: http://www.postfix.org
|
||||||
@ -166,6 +166,11 @@ perl -pi -e "s/makedefs.out/makedefs.out-%{_arch}/g" conf/postfix-files Makefile
|
|||||||
gzip -dc %{SOURCE53} | tar xf -
|
gzip -dc %{SOURCE53} | tar xf -
|
||||||
%endif
|
%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
|
%build
|
||||||
CCARGS=-fPIC
|
CCARGS=-fPIC
|
||||||
AUXLIBS=
|
AUXLIBS=
|
||||||
@ -255,8 +260,8 @@ sh postfix-install -non-interactive \
|
|||||||
readme_directory=%{postfix_readme_dir} || exit 1
|
readme_directory=%{postfix_readme_dir} || exit 1
|
||||||
|
|
||||||
# This installs into the /etc/rc.d/init.d directory
|
# This installs into the /etc/rc.d/init.d directory
|
||||||
/bin/mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
mkdir -p $RPM_BUILD_ROOT%{_initrddir}
|
||||||
install -c %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postfix
|
install -c %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/postfix
|
||||||
|
|
||||||
install -c auxiliary/rmail/rmail $RPM_BUILD_ROOT%{_bindir}/rmail.postfix
|
install -c auxiliary/rmail/rmail $RPM_BUILD_ROOT%{_bindir}/rmail.postfix
|
||||||
|
|
||||||
@ -324,6 +329,9 @@ cat >> $RPM_BUILD_ROOT%{postfix_config_dir}/main.cf <<EOF
|
|||||||
inet_protocols = all
|
inet_protocols = all
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_var}/lib/misc
|
||||||
|
touch $RPM_BUILD_ROOT%{_var}/lib/misc/postfix.aliasesdb-stamp
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/chkconfig --add postfix
|
/sbin/chkconfig --add postfix
|
||||||
|
|
||||||
@ -396,7 +404,7 @@ exit 0
|
|||||||
%config(noreplace) %{sasl_v2_lib_dir}/smtpd.conf
|
%config(noreplace) %{sasl_v2_lib_dir}/smtpd.conf
|
||||||
%endif
|
%endif
|
||||||
%config(noreplace) %{_sysconfdir}/pam.d/smtp.postfix
|
%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
|
# Misc files
|
||||||
|
|
||||||
@ -470,6 +478,7 @@ exit 0
|
|||||||
%attr(0755, root, root) %{_bindir}/mailq.postfix
|
%attr(0755, root, root) %{_bindir}/mailq.postfix
|
||||||
%attr(0755, root, root) %{_bindir}/newaliases.postfix
|
%attr(0755, root, root) %{_bindir}/newaliases.postfix
|
||||||
%attr(0755, root, root) %{_sbindir}/sendmail.postfix
|
%attr(0755, root, root) %{_sbindir}/sendmail.postfix
|
||||||
|
%ghost %attr(0644, root, root) %{_var}/lib/misc/postfix.aliasesdb-stamp
|
||||||
|
|
||||||
%files perl-scripts
|
%files perl-scripts
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
@ -482,6 +491,11 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 22 2009 Miroslav Lichvar <mlichvar@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@redhat.com> 2:2.5.5-2
|
* Thu Nov 20 2008 Miroslav Lichvar <mlichvar@redhat.com> 2:2.5.5-2
|
||||||
- enable Large file support on 32-bit archs (#428996)
|
- enable Large file support on 32-bit archs (#428996)
|
||||||
- fix mailq(1) and newaliases(1) man pages (#429501)
|
- fix mailq(1) and newaliases(1) man pages (#429501)
|
||||||
|
Loading…
Reference in New Issue
Block a user