wok-current rev 23665

updated squidclamav (6.10 -> 6.16)
author Hans-G?nter Theisgen
date Fri Apr 24 08:33:32 2020 +0100 (2020-04-24)
parents 9b0edb3905d0
children b1dfdca68c6d
files squidclamav/receipt
line diff
     1.1 --- a/squidclamav/receipt	Fri Apr 24 07:57:17 2020 +0100
     1.2 +++ b/squidclamav/receipt	Fri Apr 24 08:33:32 2020 +0100
     1.3 @@ -1,59 +1,62 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="squidclamav"
     1.7 -VERSION="6.10"
     1.8 +VERSION="6.16"
     1.9  CATEGORY="security"
    1.10  SHORT_DESC="Antivirus redirector for Squid proxy."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="GPL3"
    1.13 +WEB_SITE="http://squidclamav.darold.net/"
    1.14 +
    1.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 -WEB_SITE="http://squidclamav.darold.net/"
    1.17  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.18 +
    1.19 +DEPENDS="c_icap clamav libcurl squid squidguard"
    1.20 +BUILD_DEPENDS="c_icap-dev curl-dev"
    1.21 +
    1.22  CONFIG_FILES="/etc/squidclamav.conf"
    1.23  
    1.24 -DEPENDS="squid libcurl clamav c_icap squidguard"
    1.25 -BUILD_DEPENDS="curl-dev c_icap-dev"
    1.26 -
    1.27  # Rules to configure and make the package.
    1.28  compile_rules()
    1.29  {
    1.30 -	cd $src
    1.31  	mkdir -p $DESTDIR/etc
    1.32 -	./configure \
    1.33 -		--prefix=/usr \
    1.34 -		--libdir=/usr/lib \
    1.35 -		--libexecdir=/var/www/cgi-bin \
    1.36 -		--sysconfdir=/etc \
    1.37 +
    1.38 +	./configure				\
    1.39 +		--prefix=/usr			\
    1.40 +		--libdir=/usr/lib		\
    1.41 +		--libexecdir=/var/www/cgi-bin	\
    1.42 +		--sysconfdir=/etc		\
    1.43  		$CONFIGURE_ARGS &&
    1.44 -	make && make install
    1.45 +	make &&
    1.46 +	make install
    1.47  }
    1.48  
    1.49  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.50  genpkg_rules()
    1.51  {
    1.52 -	mkdir -p $fs/usr \
    1.53 -		$fs/etc/squid/conf.d
    1.54 -	
    1.55 -	cp -a $install/etc $fs
    1.56 -	cp -a $install/usr/lib $fs/usr
    1.57 -	cp -a $install/var $fs/
    1.58 -	cp -a $stuff/icap-clamav.conf $fs/etc/squid/conf.d
    1.59 -	
    1.60 -	# Customise config file
    1.61 -	sed -i -e "s|^redirect.*|redirect http://localhost/cgi-bin/squidclamav/clwarn.cgi|" \
    1.62 +	mkdir -p $fs/usr
    1.63 +	mkdir -p $fs/etc/squid/conf.d
    1.64 +
    1.65 +	cp -a $install/etc		$fs
    1.66 +	cp -a $install/usr/lib		$fs/usr
    1.67 +	cp -a $install/var		$fs
    1.68 +	cp -a $stuff/icap-clamav.conf	$fs/etc/squid/conf.d
    1.69 +
    1.70 +	# Customise configuration file
    1.71 +	sed -i	-e "s|^redirect.*|redirect http://localhost/cgi-bin/squidclamav/clwarn.cgi|" \
    1.72  		-e "s|^#squidguard.*|squidguard /usr/bin/squidGuard|" \
    1.73  		$fs/etc/squidclamav.conf
    1.74  		
    1.75 -	rm -f $fs/usr/lib/c_icap/*.la		
    1.76 -
    1.77 -
    1.78 +	rm -f				$fs/usr/lib/c_icap/*.la
    1.79  }
    1.80  
    1.81  #Post install command
    1.82  post_install()
    1.83  {
    1.84  	echo 'Service squidclamav squidclamav.so' >> "$1/etc/c-icap/c-icap.conf"
    1.85 -	[ "$1" ] || if ( ps | grep -q squid ); then
    1.86 +	[ "$1" ] ||
    1.87 +	if ( ps | grep -q squid )
    1.88 +	  then
    1.89  		/etc/init.d/squid restart
    1.90  	fi
    1.91  }
    1.92 @@ -62,10 +65,14 @@
    1.93  post_remove()
    1.94  {
    1.95  	sed -i -e "s/.*squidclamav.*//" "$1/etc/c-icap/c-icap.conf"
    1.96 -	[ "$1" ] || if ( ps | grep -q squid ); then
    1.97 +	[ "$1" ] ||
    1.98 +	if ( ps | grep -q squid )
    1.99 +	  then
   1.100  		/etc/init.d/squid restart
   1.101  	fi
   1.102 -	[ "$1" ] || if ( ps | grep -q c-icap ); then
   1.103 +	[ "$1" ] ||
   1.104 +	if ( ps | grep -q c-icap )
   1.105 +	  then
   1.106  		/etc/init.d/c-icapd restart
   1.107  	fi
   1.108  }