From 342228c4327b114e7d07f8bd975ecbeb100ac2a27c14526eed076d5065221908 Mon Sep 17 00:00:00 2001 From: Peter Varkoly Date: Tue, 13 Dec 2011 14:51:10 +0000 Subject: [PATCH] - Move the post map rebuild script into the start script OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=113 --- postfix-SuSE.tar.gz | 4 ++-- postfix.changes | 5 +++++ postfix.spec | 16 ++++++---------- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/postfix-SuSE.tar.gz b/postfix-SuSE.tar.gz index 36567bf..f45839d 100644 --- a/postfix-SuSE.tar.gz +++ b/postfix-SuSE.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e9fd8cd14fe07e7937e9a32335030cee07d6233b42d79a948825a84cad0fcbbc -size 24456 +oid sha256:709f3538c1c2ddb71d987f648a46cdd60e39d5fcd7b97d115c511771eea133b5 +size 24717 diff --git a/postfix.changes b/postfix.changes index 78ffcc6..e8946aa 100644 --- a/postfix.changes +++ b/postfix.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 13 14:50:45 UTC 2011 - varkoly@suse.com + +- Move the post map rebuild script into the start script + ------------------------------------------------------------------- Tue Dec 6 11:04:12 UTC 2011 - varkoly@suse.com diff --git a/postfix.spec b/postfix.spec index 4ff5f69..a18143d 100644 --- a/postfix.spec +++ b/postfix.spec @@ -301,10 +301,11 @@ cp -a auxiliary/ $RPM_BUILD_ROOT%{pf_docdir}/ %if 0%{?suse_version} >= 1140 mkdir -p %{buildroot}/lib/systemd/system mkdir -p %{buildroot}/etc/postfix/system -install -m 0644 %{name}-SuSE/postfix.service %{buildroot}/lib/systemd/system/ -install -m 0755 %{name}-SuSE/update_chroot.systemd %{buildroot}/etc/postfix/system/update_chroot -install -m 0755 %{name}-SuSE/wait_qmgr.systemd %{buildroot}/etc/postfix/system/wait_qmgr -install -m 0755 %{name}-SuSE/cond_slp.systemd %{buildroot}/etc/postfix/system/cond_slp +install -m 0644 %{name}-SuSE/postfix.service %{buildroot}/lib/systemd/system/ +install -m 0755 %{name}-SuSE/update_chroot.systemd %{buildroot}/etc/postfix/system/update_chroot +install -m 0755 %{name}-SuSE/rebuild_tables.systemd %{buildroot}/etc/postfix/system/rebuild_tables +install -m 0755 %{name}-SuSE/wait_qmgr.systemd %{buildroot}/etc/postfix/system/wait_qmgr +install -m 0755 %{name}-SuSE/cond_slp.systemd %{buildroot}/etc/postfix/system/cond_slp %endif %if 0%{?suse_version} >= 1100 %fdupes $RPM_BUILD_ROOT%{pf_docdir} @@ -402,12 +403,6 @@ else ln -s /usr/sbin/SuSEconfig.postfix /sbin/conf.d/SuSEconfig.postfix fi fi -for i in /etc/postfix/*db; -do - test -e "$i" || continue; - b=$( basename $i .db ); - postmap /etc/postfix/$b; -done # before fillup we need to fix something [ \! -f %{_sysconfdir}/sysconfig/%{name} ] || %{__sed} -i \ -e "s/POSTFIX_SMTPD_SENDERNT_RESTRICTIONS/POSTFIX_SMTPD_SENDER_RESTRICTIONS/" \ @@ -491,6 +486,7 @@ rm -rf $RPM_BUILD_ROOT %if 0%{?suse_version} >= 1140 %dir /etc/postfix/system %config %attr(0755,root,root) /etc/postfix/system/update_chroot +%config %attr(0755,root,root) /etc/postfix/system/rebuild_tables %config %attr(0755,root,root) /etc/postfix/system/wait_qmgr %config %attr(0755,root,root) /etc/postfix/system/cond_slp %config /lib/systemd/system/postfix.service