]> git.pld-linux.org Git - packages/bootp.git/commitdiff
- unified rc-inetd usage (via %service), adapterized
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 14 Mar 2006 01:24:26 +0000 (01:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bootp.spec -> 1.31

bootp.spec

index 48bde07eec8463464220aac375c466cd7530b9c3..765149e59876b3a1628046f3204511f8a7781b01 100644 (file)
@@ -17,6 +17,7 @@ Patch2:               %{name}-2.4.3-glibc.patch
 Patch3:                %{name}-2.4.3-pathfix.patch
 Patch4:                %{name}-tmprace.patch
 Patch5:                %{name}-errno.patch
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      inetdaemon
 Requires:      rc-inetd
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -90,15 +91,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/bootp
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/rc-inetd ]; then
-       /etc/rc.d/init.d/rc-inetd reload 1>&2
-else
-       echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
-fi
+%service -q rc-inetd reload
 
 %postun
-if [ -f /var/lock/subsys/rc-inetd ]; then
-       /etc/rc.d/init.d/rc-inetd reload 1>&2
+if [ "$1" = 0 ]; then
+       %service -q rc-inetd reload
 fi
 
 %files
This page took 0.110168 seconds and 4 git commands to generate.