SPECS: inetd.spec - use %service - weird dep dropped (there's only...

glen glen at pld-linux.org
Tue Feb 28 20:29:01 CET 2006


Author: glen                         Date: Tue Feb 28 19:29:01 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service
- weird dep dropped (there's only one rc-inetd package)
- fixed preun (don't stop services this package doesn't own)
- rel 11

---- Files affected:
SPECS:
   inetd.spec (1.40 -> 1.41) 

---- Diffs:

================================================================
Index: SPECS/inetd.spec
diff -u SPECS/inetd.spec:1.40 SPECS/inetd.spec:1.41
--- SPECS/inetd.spec:1.40	Wed Aug 18 23:31:51 2004
+++ SPECS/inetd.spec	Tue Feb 28 20:28:56 2006
@@ -6,7 +6,7 @@
 Summary(tr):	inetd programlarýný içerir
 Name:		inetd
 Version:	0.17
-Release:	10
+Release:	11
 License:	BSD
 Group:		Daemons
 Source0:	ftp://ftp.linux.org.uk/pub/linux/Networking/netkit/netkit-base-%{version}.tar.gz
@@ -16,9 +16,9 @@
 Source3:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
 # Source3-md5:	6e7cdb6277c4333a9c0d1e3e2231f29f
 Patch0:		netkit-base-configure.patch
-PreReq:		rc-scripts
+BuildRequires:	rpmbuild(macros) >= 1.268
 Requires:	rc-inetd >= 0.8.1
-Requires:	/etc/rc.d/init.d/rc-inetd
+Requires:	rc-scripts
 Requires:	tcp_wrappers
 Provides:	inetdaemon
 Obsoletes:	inetdaemon
@@ -76,15 +76,11 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/rc-inetd ]; then
-	/etc/rc.d/init.d/rc-inetd restart &>/dev/null
-else
-	echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inetd" 1>&2
-fi
+%service -q rc-inetd restart
 
 %preun
-if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
-	/etc/rc.d/init.d/rc-inetd stop 1>&2
+if [ "$1" = "0" ]; then
+	%service -q rc-inetd restart
 fi
 
 %files
@@ -103,6 +99,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.41  2006/02/28 19:28:56  glen
+- use %service
+- weird dep dropped (there's only one rc-inetd package)
+- fixed preun (don't stop services this package doesn't own)
+- rel 11
+
 Revision 1.40  2004/08/18 21:31:51  undefine
 - release 10
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/inetd.spec?r1=1.40&r2=1.41&f=u



More information about the pld-cvs-commit mailing list