]> git.pld-linux.org Git - packages/am-utils.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 23 Mar 2006 19:37:37 +0000 (19:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    am-utils.spec -> 1.40

am-utils.spec

index 66a639a05d7a0eab26873a3c6c7116468ef484b6..e2f59785120bf5c342dbd7f8c8b6623f614eb196 100644 (file)
@@ -17,10 +17,12 @@ Patch0:             %{name}-6.0a16-linux.patch
 Patch1:                %{name}-6.0a16-alpha.patch
 URL:           http://www.am-utils.org/
 BuildRequires: autoconf
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,postun): /sbin/ldconfig
 Requires:      /sbin/chkconfig
 Requires:      portmap
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     amd
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Am-utils includes an updated version of Amd, the popular BSD
@@ -103,17 +105,11 @@ rm -rf $RPM_BUILD_ROOT
 /sbin/ldconfig
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 /sbin/chkconfig --add amd
-if [ -f /var/lock/subsys/drbd ]; then
-       /etc/rc.d/init.d/amd restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/amd start\" to start amd service." >&2
-fi
+%service amd restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/amd ]; then
-               /etc/rc.d/init.d/amd stop
-       fi
+       %service amd stop
        /sbin/chkconfig --del amd
 fi
 
This page took 0.068973 seconds and 4 git commands to generate.