wok-stable view squidclamav/receipt @ rev 11920

gftp removed extension from desktop file
author Samuel Trassare <samuel_trassare@yahoo.com>
date Wed Feb 29 14:57:29 2012 -0800 (2012-02-29)
parents b71d9a5eaa48
children 7ee3b751dc0d
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 --libexecdir=/usr/lib \
24 --sysconfdir=/etc \
25 $CONFIGURE_ARGS &&
26 make && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr \
33 $fs/var/www/cgi-bin \
34 $fs/etc/squid/conf.d
36 cp -a $install/etc $fs
37 cp -a $install/usr/lib $fs/usr
38 cp -a $stuff/icap-clamav.conf $fs/etc/squid/conf.d
40 # Customise config file
41 sed -i -e "s|^redirect.*|redirect http://localhost/cgi-bin/clwarn.cgi|" \
42 -e "s|^#squidguard.*|squidguard /usr/bin/squidGuard|" \
43 $fs/etc/squidclamav.conf
45 }
47 #Post install command
48 post_install()
49 {
50 if ( ps | grep -q squid ); then
51 /etc/init.d/squid restart
52 fi
53 }
55 #Post remove command
56 post_remove()
57 {
58 if ( ps | grep -q squid ); then
59 /etc/init.d/squid restart
60 fi
61 }