]> git.pld-linux.org Git - packages/arpd.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 24 Feb 2006 15:20:04 +0000 (15:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    arpd.spec -> 1.31

arpd.spec

index 1e8a4ff21aec820da7d9ec02fc09abd03125eff4..6464e129e5a91fb27246fc001c6b7b566324e8dc 100644 (file)
--- a/arpd.spec
+++ b/arpd.spec
@@ -19,10 +19,11 @@ Patch2:             %{name}-makefile-patch
 Patch3:                %{name}-more_tables.patch
 Patch4:                %{name}-uid.patch
 #URL:          http://www.loran.com/~layes/arpd/
 Patch3:                %{name}-more_tables.patch
 Patch4:                %{name}-uid.patch
 #URL:          http://www.loran.com/~layes/arpd/
-Prereq:                fileutils
-Prereq:                rc-scripts >= 0.2.0
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
 Requires:      dev >= 2.8.0-4
 Requires(post,preun):  /sbin/chkconfig
 Requires:      dev >= 2.8.0-4
+Requires:      fileutils
+Requires:      rc-scripts >= 0.2.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -70,17 +71,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add arpd
 
 %post
 /sbin/chkconfig --add arpd
-if [ -f /var/lock/subsys/arpd ]; then
-       /etc/rc.d/init.d/arpd restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/arpd start\" to start arpd daemon."
-fi
+%service arpd restart "arpd daemon"
 
 %preun
 if [ "$1" = "0" ]; then
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/arpd ]; then
-               /etc/rc.d/init.d/arpd stop 1>&2
-       fi
+       %service aprd stop
        /sbin/chkconfig --del arpd
 fi
 
        /sbin/chkconfig --del arpd
 fi
 
This page took 0.06021 seconds and 4 git commands to generate.