]> git.pld-linux.org Git - packages/arcavir.git/commitdiff
- scriptlets for daemon
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 20 Aug 2010 08:19:05 +0000 (08:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    arcavir.spec -> 1.13

arcavir.spec

index 82074537eac524fd672496744a5eb5773ce0597b..e025a1a8ac25ef7268838c1a33f0fee4b45dcfed 100644 (file)
@@ -12,7 +12,7 @@ Summary:      An anti-virus utility for Unix
 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
@@ -130,9 +130,18 @@ rm -rf $RPM_BUILD_ROOT
 
 %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
This page took 0.169347 seconds and 4 git commands to generate.