wok view squidclamav/receipt @ rev 11949

Up: cookutils (1.6.3) - Bug fix
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 01 12:18:12 2012 +0100 (2012-03-01)
parents 61855e8d38b8
children cb60d8d42bfd
line source
1 # SliTaz package receipt.
3 PACKAGE="squidclamav"
4 VERSION="6.5"
5 CATEGORY="security"
6 SHORT_DESC="Antivirus redirector for Squid proxy."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://squidclamav.darold.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
11 CONFIG_FILES="/etc/squidclamav.conf"
13 DEPENDS="squid libcurl clamav c_icap squidguard"
14 BUILD_DEPENDS="curl-dev c_icap-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 mkdir -p $DESTDIR/etc
21 ./configure \
22 --prefix=/usr \
23 --libdir=/usr/lib \
24 --libexecdir=/var/www/cgi-bin \
25 --sysconfdir=/etc \
26 $CONFIGURE_ARGS &&
27 make && make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr \
34 $fs/etc/squid/conf.d
36 cp -a $install/etc $fs
37 cp -a $install/usr/lib $fs/usr
38 cp -a $install/var $fs/
39 cp -a $stuff/icap-clamav.conf $fs/etc/squid/conf.d
41 # Customise config file
42 sed -i -e "s|^redirect.*|redirect http://localhost/cgi-bin/squidclamav/clwarn.cgi|" \
43 -e "s|^#squidguard.*|squidguard /usr/bin/squidGuard|" \
44 $fs/etc/squidclamav.conf
46 }
48 #Post install command
49 post_install()
50 {
51 if ( ps | grep -q squid ); then
52 /etc/init.d/squid restart
53 fi
54 }
56 #Post remove command
57 post_remove()
58 {
59 if ( ps | grep -q squid ); then
60 /etc/init.d/squid restart
61 fi
62 }