]> git.pld-linux.org Git - packages/bootp.git/blobdiff - bootp.spec
- unified rc-inetd usage (via %service), adapterized
[packages/bootp.git] / 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.071985 seconds and 4 git commands to generate.