Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/utils
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29853
Modified Files:
clamav.info
Log Message:
Only use the pid file if it exists.
Index: clamav.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/utils/clamav.info,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- clamav.info 14 Apr 2009 14:18:06 -0000 1.35
+++ clamav.info 15 Apr 2009 08:24:57 -0000 1.36
@@ -1,7 +1,7 @@
Info3: <<
Package: clamav
Version: 0.95.1
-Revision: 11
+Revision: 12
Description: Clam Anti-Virus scanner
DescDetail: <<
@@ -160,7 +160,14 @@
PreRmScript: <<
# deamonic knows nothing about 'stop'
#/Library/StartupItems/daemonic-clamav/daemonic-clamav stop
- kill -s TERM `cat /var/run/clamd.pid`
+ # Location of pid file for clamav versions < 0.95-13
+ if [ -r %p/var/run/clamd.pid ]; then
+ kill -s TERM `cat %p/var/run/clamd.pid`
+ fi
+ # New location of pid file
+ if [ -r /var/run/clamd.pid ]; then
+ kill -s TERM `cat /var/run/clamd.pid`
+ fi
if [ $1 != "upgrade" ]; then
daemonic remove clamav
fi
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs