[netatalk/f18] Scriptlets replaced with new systemd macros
Lukáš Nykrýn
lnykryn at fedoraproject.org
Thu Aug 23 11:09:23 UTC 2012
commit 39e3953a75aeeda738039845b0e827e805ca0114
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Thu Aug 23 13:07:42 2012 +0200
Scriptlets replaced with new systemd macros
netatalk.spec | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/netatalk.spec b/netatalk.spec
index 3691133..c03d9c5 100644
--- a/netatalk.spec
+++ b/netatalk.spec
@@ -1,7 +1,7 @@
Summary: Daemon which provides POSIX-compliant *NIX/*BSD systems with the ability to share files and printers with Apple Macintosh
Name: netatalk
Version: 2.2.3
-Release: 5%{?dist}
+Release: 6%{?dist}
Epoch: 4
License: GPLv2+
Group: System Environment/Daemons
@@ -15,8 +15,9 @@ Patch4: netatalk-2.2.3-libdb4.patch
Url: http://netatalk.sourceforge.net/
Requires: pam
-Requires(post): /sbin/chkconfig
-Requires(preun): /sbin/chkconfig
+Requires(post): systemd-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
BuildRequires: cracklib-devel openssl-devel pam quota-devel libtool automake
BuildRequires: autoconf db4-devel pam-devel tcp_wrappers-devel libgcrypt-devel
BuildRequires: avahi-devel libacl-devel openldap-devel
@@ -119,16 +120,13 @@ find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;
rm -rf $RPM_BUILD_ROOT
%post
-/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+%systemd_post netatalk.service
%preun
-if [ "$1" = "0" ] ; then
- /bin/systemctl disable netatalk.service > /dev/null 2>&1 || :
- /bin/systemctl stop netatalk.service > /dev/null 2>&1 || :
-fi
+%systemd_preun netatalk.service
%postun
-/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+%systemd_postun_with_restart netatalk.service
%files
%defattr(-,root,root)
@@ -167,6 +165,9 @@ fi
%{_mandir}/man*/netatalk-config.1*
%changelog
+* Thu Aug 23 2012 Lukáš Nykrýn <lnykryn at redhat.com> - 4:2.2.3-6
+- Scriptlets replaced with new systemd macros
+
* Fri Jul 27 2012 Lukáš Nykrýn <lnykryn at redhat.com> - 4:2.2.3-5
- fixed build issue on f18
More information about the scm-commits
mailing list