]> git.pld-linux.org Git - packages/comsat.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:
    comsat.spec -> 1.26

comsat.spec

index 5c6c3ee80e96557e3d2d19a4e6837944d6caf1c5..a424df0a71180ec38a404417fc3dba80878d0122 100644 (file)
@@ -14,11 +14,12 @@ Group:              Networking/Daemons
 Source0:       ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/biff+%{name}-%{version}.tar.gz
 # Source0-md5: 0e366384b0ffc7d4f748713a6359e089
 Source1:       %{name}.inetd
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      rc-inetd
 Provides:      biff
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     biff
 Obsoletes:     biff+comsat
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 The biff client and comsat server are an antiquated method of
@@ -108,15 +109,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/comsat
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/rc-inetd ]; then
-       /etc/rc.d/init.d/rc-inetd restart 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 restart
+if [ "$1" = 0 ]; then
+       %service -q rc-inetd reload
 fi
 
 %files
This page took 0.0981 seconds and 4 git commands to generate.