SHA256
1
0
forked from pool/postfix

We always use tls

Make %post section exit status safer

OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=67
This commit is contained in:
Peter Varkoly
2011-05-02 08:40:39 +00:00
committed by Git OBS Bridge
parent 9c0b35a005
commit c5b649ec16

View File

@@ -17,8 +17,6 @@
# norootforbuild
%define usetls 1
Name: postfix
Summary: A fast, secure, and flexible mailer
Version: 2.8.2
@@ -181,12 +179,8 @@ export CCARGS="$CCARGS -DHAS_PGSQL -I/usr/include/pgsql"
export CCARGS="$CCARGS -DUSE_CYRUS_SASL"
export AUXLIBS="-lldap -llber -lpcre"
export AUXLIBS="$AUXLIBS -lsasl2"
%if %{usetls}
export AUXLIBS="$AUXLIBS -lssl -lcrypto"
%endif
%if %{usetls}
export CCARGS="$CCARGS -DUSE_TLS"
%endif
export CCARGS="$CCARGS $RPM_OPT_FLAGS -Wno-comments"
export PIE=-pie
make makefiles DEBUG=""
@@ -407,7 +401,7 @@ fi
# We never have to run suseconfig for postfix after installation
# We only start postfix own upgrade-configuration by update
if [ ${1:-0} -gt 1 ]; then
/usr/sbin/postfix upgrade-configuration
/usr/sbin/postfix upgrade-configuration || :
fi
%{fillup_and_insserv -y postfix}
%{fillup_only -an mail}
@@ -472,9 +466,7 @@ rm -rf $RPM_BUILD_ROOT
%dir /etc/sasl2/
%config(noreplace) /etc/sasl2/smtpd.conf
%config /etc/%{name}/LICENSE
%if %{usetls}
%config /etc/%{name}/TLS_LICENSE
%endif
%config /etc/permissions.d/%{name}
%config /etc/permissions.d/%{name}.paranoid
%attr(0644, root, root) %config /etc/%{name}/makedefs.out