]> git.pld-linux.org Git - packages/cfingerd.git/commitdiff
- "Prereq: rc-inetd >= 0.8.1" instead "Requires: rc-inetd",
authorkloczek <kloczek@pld-linux.org>
Tue, 11 Jan 2000 15:30:25 +0000 (15:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added %post, %postun scripts with reloading on upgrade and stopping on
  removing service.

Changed files:
    cfingerd.spec -> 1.7

cfingerd.spec

index 4a21cf38317a748e70316c85a190673f0de3e037..760c3babee856fa544df8917da0864a8a6a23c01 100644 (file)
@@ -14,7 +14,7 @@ Source2:      %{name}.inetd
 Patch0:                http://www.misiek.eu.org/ipv6/cfingerd-1.4.3-ipv6-12121999.patch.gz
 Patch1:                %{name}-config.patch
 Requires:      inetdaemon
-Requires:      rc-inetd
+Prereq:                rc-inetd >= 0.8.1
 Provides:      fingerd
 Obsoletes:     cfingerd-nobody
 Obsoletes:     cfingerd-noroot
@@ -66,6 +66,18 @@ gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
 %clean
 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 sever" 1>&2
+fi
+
+%postun
+if [ -f /var/lock/subsys/rc-inetd ]; then
+       /etc/rc.d/init.d/rc-inetd reload
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc *.gz
This page took 0.098667 seconds and 4 git commands to generate.