]> git.pld-linux.org Git - packages/arpd.git/blobdiff - arpd.spec
- use %service
[packages/arpd.git] / arpd.spec
index 74355fa486ebbbaf8174e1b7b9b6150f8ee33dcb..6464e129e5a91fb27246fc001c6b7b566324e8dc 100644 (file)
--- a/arpd.spec
+++ b/arpd.spec
@@ -2,7 +2,7 @@ Summary:        User-space arp daemon
 Summary(pl):   Demon arpd
 Name:          arpd
 Version:       1.0.2
-Release:       9
+Release:       11
 License:       GPL
 Group:         Daemons
 # origin, but 404
@@ -19,10 +19,11 @@ Patch2:             %{name}-makefile-patch
 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:      fileutils
+Requires:      rc-scripts >= 0.2.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -70,17 +71,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %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
-       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
 
This page took 0.094414 seconds and 4 git commands to generate.