packages: arcavir/arcavir.spec - scriptlets for daemon

baggins baggins at pld-linux.org
Fri Aug 20 10:19:10 CEST 2010


Author: baggins                      Date: Fri Aug 20 08:19:10 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- scriptlets for daemon

---- Files affected:
packages/arcavir:
   arcavir.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: packages/arcavir/arcavir.spec
diff -u packages/arcavir/arcavir.spec:1.12 packages/arcavir/arcavir.spec:1.13
--- packages/arcavir/arcavir.spec:1.12	Fri Aug 20 10:12:56 2010
+++ packages/arcavir/arcavir.spec	Fri Aug 20 10:19:05 2010
@@ -13,7 +13,7 @@
 Summary(pl.UTF-8):	Narzędzie antywirusowe dla Uniksów
 Name:		arcavir
 Version:	2010
-Release:	0.2
+Release:	0.4
 License:	restricted or commercial (see URL)
 Group:		Applications
 Source0:	http://bugtraq.arcabit.com/arcavir2010/%{name}%{version}-linux-i386.tar.gz
@@ -131,9 +131,18 @@
 
 %pre
 %groupadd -g 238 arcabit
-%useradd -u 238 -d /var/lib/arcavir -s /bin/false -c "Arcavir Anti Virus Checker" -g arcabit arcabit
+%useradd -u 238 -d /var/lib/arcavir -s /bin/false -c "ArcaBit Anti Virus Checker" -g arcabit arcabit
 
-%post   -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+/sbin/chkconfig --add arcad
+%service arcad restart "ArcaBit Antivirus daemon"
+
+%preun
+if [ "$1" = "0" ]; then
+	%service arcad stop
+	/sbin/chkconfig --del arcad
+fi
 
 %postun
 /sbin/ldconfig
@@ -183,6 +192,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2010/08/20 08:19:05  baggins
+- scriptlets for daemon
+
 Revision 1.12  2010/08/20 08:12:56  baggins
 - added triggers for adding arcabit user to amavis group
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/arcavir/arcavir.spec?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list