wok-6.x rev 14814

Up: squidquardmgr (1.12)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Jul 17 13:39:14 2013 +0200 (2013-07-17)
parents 8bc27fb245c6
children bbf96943be5b
files squidguardmgr/receipt
line diff
     1.1 --- a/squidguardmgr/receipt	Wed Jul 17 13:38:51 2013 +0200
     1.2 +++ b/squidguardmgr/receipt	Wed Jul 17 13:39:14 2013 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="squidguardmgr"
     1.7 -VERSION="1.6"
     1.8 +VERSION="1.12"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="Web GUI for squidGuard and SquidClamav administration."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -9,14 +9,14 @@
    1.13  WEB_SITE="http://squidguardmgr.sourceforge.net/"
    1.14  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.15  DEPENDS="squidguard squidclamav lighttpd"
    1.16 -BUILD_DEPENDS="perl squidguard squidclamav"
    1.17 +BUILD_DEPENDS="perl squidguard "
    1.18  CONFIG_FILES="/etc/squidguardmgr.conf"
    1.19  
    1.20  # Rules to configure and make the package.
    1.21  compile_rules()
    1.22  {
    1.23  	cd $src
    1.24 -	SQUIDUSR=99 SQUIDGRP=99 perl Makefile.PL << EOT &&
    1.25 +	SQUIDUSR=squid SQUIDGRP=squid perl Makefile.PL << EOT &&
    1.26  /etc/squidGuard/squidGuard.conf
    1.27  nobody
    1.28  EOT
    1.29 @@ -27,13 +27,17 @@
    1.30  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.31  genpkg_rules()
    1.32  {
    1.33 -	mkdir -p $fs/usr/share $fs/etc $fs/var/lib/squidGuard/log $fs/var/lib/squidGuard/db
    1.34 +	mkdir -p $fs/usr/share $fs/etc $fs/var/lib/squidGuard/log $fs/var/lib/squidGuard/db 
    1.35 +	
    1.36  	cp -a $_pkg/var/www/squidguardmgr $fs/usr/share
    1.37 -	( cd $fs ; patch -p0 ) < stuff/squidguardmgr.U
    1.38 -	mv $fs/usr/share/squidguardmgr/squidguardmgr.conf $fs/etc
    1.39 +	( cd $fs ; patch -p0 ) < $stuff/squidguardmgr.U
    1.40 +	mv $fs/usr/share/squidguardmgr/squidguardmgr.conf $fs/etc 
    1.41  	ln -s /etc/squidguardmgr.conf $fs/usr/share/squidguardmgr/squidguardmgr.conf
    1.42 -	sed -i 's|/var/www/squidguardmgr|/usr/share/squidguardmgr|' \
    1.43 -		$fs/etc/squidguardmgr.conf
    1.44 +	
    1.45 +	sed -i -e 's|/var/www/squidguardmgr|/usr/share/squidguardmgr|' \
    1.46 +		-e 's|SQUIDCLAMAV	off|SQUIDCLAMAV	on|' \
    1.47 +		-e 's|SC_CONF_FILE|SC_CONF_FILE	/etc/squidclamav.conf|' \
    1.48 +		-e 's|C_ICAP_SOCKET|C_ICAP_SOCKET	/var/run/c-icap/c-icap.ctl|' $fs/etc/squidguardmgr.conf
    1.49  }
    1.50  
    1.51  post_install()