SPECS: portsentry.spec - use %service, rel 11

glen glen at pld-linux.org
Sun Mar 12 21:18:04 CET 2006


Author: glen                         Date: Sun Mar 12 20:18:04 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service, rel 11

---- Files affected:
SPECS:
   portsentry.spec (1.37 -> 1.38) 

---- Diffs:

================================================================
Index: SPECS/portsentry.spec
diff -u SPECS/portsentry.spec:1.37 SPECS/portsentry.spec:1.38
--- SPECS/portsentry.spec:1.37	Sun Mar 12 21:16:35 2006
+++ SPECS/portsentry.spec	Sun Mar 12 21:17:59 2006
@@ -3,7 +3,7 @@
 Summary(pl):	Program wykrywający skanowanie portów i umożliwiający obronę
 Name:		portsentry
 Version:	1.1
-Release:	10.1
+Release:	11
 License:	distributable (see LICENSE)
 Group:		Applications/Networking
 Source0:	http://www.psionic.com/downloads/%{name}-%{version}.tar.gz
@@ -14,6 +14,7 @@
 Patch1:		%{name}-ignore.csh.patch
 Patch2:		%{name}-libwrap.patch
 URL:		http://www.psionic.com/products/
+BuildRequires:	rpmbuild(macros) >= 1.268
 Requires(post,preun):	/sbin/chkconfig
 Requires(post,preun):	fileutils
 Requires:	awk
@@ -68,19 +69,11 @@
 %post
 %{_sbindir}/portsentry-ignore
 /sbin/chkconfig --add portsentry
-ls --color=none /var/lock/subsys/portsentry* >/dev/null 2>&1
-if [ $? -eq "0" ]; then
-	/etc/rc.d/init.d/portsentry restart >&2
-else
-	echo "Run \"/etc/rc.d/init.d/portsentry start\" to start portsentry daemon."
-fi
+%service portsentry restart "portsentry daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-	ls --color=none /var/lock/subsys/portsentry* >/dev/null 2>&1
-	if [ $? -eq "0" ]; then
-		/etc/rc.d/init.d/portsentry stop >&2
-	fi
+	%service portsentry stop
 	/sbin/chkconfig --del portsentry
 fi
 
@@ -102,6 +95,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.38  2006/03/12 20:17:59  glen
+- use %service, rel 11
+
 Revision 1.37  2006/03/12 20:16:35  glen
 - libwrap patch added
 - programs moved to sbindir (needs root to run anyway)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/portsentry.spec?r1=1.37&r2=1.38&f=u



More information about the pld-cvs-commit mailing list