SPECS: dspam.spec - use %service

glen glen at pld-linux.org
Sun Apr 16 23:36:19 CEST 2006


Author: glen                         Date: Sun Apr 16 21:36:18 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service

---- Files affected:
SPECS:
   dspam.spec (1.55 -> 1.56) 

---- Diffs:

================================================================
Index: SPECS/dspam.spec
diff -u SPECS/dspam.spec:1.55 SPECS/dspam.spec:1.56
--- SPECS/dspam.spec:1.55	Sun Apr 16 23:35:10 2006
+++ SPECS/dspam.spec	Sun Apr 16 23:36:13 2006
@@ -33,6 +33,7 @@
 %{?with_mysql:BuildRequires:	mysql-devel}
 BuildRequires:	openldap-devel
 %{?with_pgsql:BuildRequires:	postgresql-devel}
+BuildRequires:	rpmbuild(macros) >= 1.268
 BuildRequires:	sed >= 4.0
 %{?with_sqlite:BuildRequires:	sqlite3-devel}
 BuildRequires:	zlib-devel
@@ -347,17 +348,11 @@
 
 %post
 /sbin/chkconfig --add dspam
-if [ -f /var/lock/subsys/dspam ]; then
-	/etc/rc.d/init.d/dspam restart 1>&2
-else
-	echo "Run \"/etc/rc.d/init.d/dspam start\" to start dspam daemon."
-fi
+%service dspam restart "dspam daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-	if [ -f /var/lock/subsys/dspam ]; then
-		/etc/rc.d/init.d/dspam stop 1>&2
-	fi
+	%service dspam stop
 	/sbin/chkconfig --del dspam
 fi
 
@@ -483,6 +478,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.56  2006/04/16 21:36:13  glen
+- use %service
+
 Revision 1.55  2006/04/16 21:35:10  glen
 - fix chkconfig, rc-scripts deps
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/dspam.spec?r1=1.55&r2=1.56&f=u



More information about the pld-cvs-commit mailing list