SHA256
1
0
forked from pool/postfix

Accepting request 90051 from server:mail

- Use the systemd macros in the spec file

OBS-URL: https://build.opensuse.org/request/show/90051
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/postfix?expand=0&rev=81
This commit is contained in:
Stephan Kulow 2011-11-05 10:22:55 +00:00 committed by Git OBS Bridge
commit dbfe16d50f
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Nov 3 15:56:23 UTC 2011 - varkoly@suse.com
- Use the systemd macros in the spec file
-------------------------------------------------------------------
Fri Oct 14 16:43:02 CEST 2011 - mhrusecky@suse.cz

View File

@ -57,6 +57,11 @@ BuildRequires: pwdutils
%if 0%{?suse_version} >= 1100
BuildRequires: fdupes
%endif
%if 0%{?suse_version} > 1140
BuildRequires: systemd
%{?systemd_requires}
%endif
#
Conflicts: sendmail exim
Provides: smtp_daemon
@ -309,6 +314,10 @@ install -m 0755 %{name}-SuSE/cond_slp.systemd %{buildroot}/etc/postfix/syst
install -m 755 %{SOURCE11} $RPM_BUILD_ROOT/usr/sbin/
%pre
%if %suse_version > 1140
%service_add_pre %{name}.service
%endif
VERSIONTEST=$(test -x usr/sbin/postconf && usr/sbin/postconf proxy_read_maps 2>/dev/null)
if [ -z "$VERSIONTEST" -a -f %{pf_queue_directory}/pid/master.pid ]; then
if checkproc -p %{pf_queue_directory}/pid/master.pid usr/lib/%{name}/master; then
@ -339,6 +348,9 @@ fi
%preun
%stop_on_removal %{name}
%if %suse_version > 1140
%service_del_preun %{name}.service
%endif
# ---------------------------------------------------------------------------
%preun mysql
@ -396,6 +408,9 @@ fi
%{_sysconfdir}/sysconfig/%{name}
%{fillup_and_insserv -y postfix}
%{fillup_only -an mail}
%if %suse_version > 1140
%service_add_post %{name}.service
%endif
/sbin/ldconfig
# ---------------------------------------------------------------------------
@ -403,6 +418,10 @@ fi
%restart_on_update %{name}
%insserv_cleanup
/sbin/ldconfig
%if %suse_version > 1140
%service_del_postun %{name}.service
%endif
# ---------------------------------------------------------------------------
%post postgresql