wok rev 5652

Up: clamav (0.96.1)
author Paul Issott <paul@slitaz.org>
date Sat May 29 19:35:09 2010 +0000 (2010-05-29)
parents 6bd67d9f31ef
children 96860753daa4
files clamav/receipt
line diff
     1.1 --- a/clamav/receipt	Sat May 29 19:32:53 2010 +0000
     1.2 +++ b/clamav/receipt	Sat May 29 19:35:09 2010 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="clamav"
     1.7 -VERSION="0.96"
     1.8 +VERSION="0.96.1"
     1.9  CATEGORY="security"
    1.10  SHORT_DESC="Antivirus."
    1.11  MAINTAINER="paul@slitaz.org"
    1.12 @@ -51,15 +51,19 @@
    1.13  	# Enable freshclam update
    1.14  	echo -n "Enabling freshclam update..."
    1.15  	cd $1/etc/clamav
    1.16 -	sed 's/^Example/#Example/' < freshclam.conf > temp.file
    1.17 -	mv temp.file freshclam.conf
    1.18 +	sed -i 's/^Example/#Example/' freshclam.conf 
    1.19  	status
    1.20  
    1.21  	# Enable clamd configuration
    1.22  	echo -n "Enabling clamd daemon..."
    1.23  	cd $1/etc/clamav
    1.24 -	sed 's/^Example/#Example/; s/^#PidFile/PidFile/' < clamd.conf > temp.file
    1.25 -	mv temp.file clamd.conf
    1.26 +	sed -i 's/^Example/#Example/; s/^#PidFile/PidFile/' clamd.conf
    1.27 +	status
    1.28 +
    1.29 +	# Enable local socket
    1.30 +	echo -n "Enabling local socket..."
    1.31 +	cd $1/etc/clamav
    1.32 +	sed -i 's/^#LocalSocket /LocalSocket /' clamd.conf
    1.33  	status
    1.34  
    1.35  	# adduser clamav if needed