SPECS: scandetd.spec - use %service, fix chkconfig deps

glen glen at pld-linux.org
Thu Apr 20 19:37:53 CEST 2006


Author: glen                         Date: Thu Apr 20 17:37:52 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service, fix chkconfig deps

---- Files affected:
SPECS:
   scandetd.spec (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: SPECS/scandetd.spec
diff -u SPECS/scandetd.spec:1.11 SPECS/scandetd.spec:1.12
--- SPECS/scandetd.spec:1.11	Mon Dec  5 00:37:15 2005
+++ SPECS/scandetd.spec	Thu Apr 20 19:37:47 2006
@@ -5,14 +5,16 @@
 Version:	1.2.0
 Release:	2.2
 License:	GPL
-Vendor:		Michal Suszycki <mike at wizard.ae.krakow.pl>
 Group:		Networking/Daemons
 Source0:	http://wizard.ae.krakow.pl/~mike/download/%{name}-%{version}.tar.gz
 # Source0-md5:	187335bb6a3cf59cca38019f2559e1cb
 Source1:	%{name}.init
 Source2:	%{name}.conf
 URL:		http://wizard.ae.krakow.pl/~mike/
+BuildRequires:	rpmbuild(macros) >= 1.268
+Requires(post,preun):	/sbin/chkconfig
 Requires:	/usr/sbin/sendmail
+Requires:	rc-scripts
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -62,13 +64,11 @@
 
 %post
 /sbin/chkconfig --add scandetd
-	echo "Run \"/etc/rc.d/init.d/scandetd start\" to start scandetd daemons."
+echo "Run \"/sbin/service scandetd start\" to start scandetd daemons."
 
 %preun
 if [ "$1" = "0" ]; then
-	if [ -f /var/lock/subsys/scandetd ]; then
-		/etc/rc.d/init.d/scandetd stop >&2
-	fi
+	%service scandetd stop
 	/sbin/chkconfig --del scandetd
 fi
 
@@ -85,6 +85,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.12  2006/04/20 17:37:47  glen
+- use %service, fix chkconfig deps
+
 Revision 1.11  2005/12/04 23:37:15  glen
 - adapterized (sorted %verify flags)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/scandetd.spec?r1=1.11&r2=1.12&f=u



More information about the pld-cvs-commit mailing list