wok-6.x view squidclamav/receipt @ rev 23922
Add alieninvasion, spaceinvader, racer10k and javascript-racer
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 22 17:01:17 2020 +0000 (2020-08-22) |
parents | 5317a720eaa1 |
children | 46dcc80bef41 |
line source
1 # SliTaz package receipt.
3 PACKAGE="squidclamav"
4 VERSION="6.16"
5 CATEGORY="security"
6 SHORT_DESC="Antivirus redirector for Squid proxy."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://squidclamav.darold.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="c_icap clamav libcurl squid squidguard"
15 BUILD_DEPENDS="c_icap-dev curl-dev"
17 CONFIG_FILES="/etc/squidclamav.conf"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 mkdir -p $DESTDIR/etc
24 ./configure \
25 --prefix=/usr \
26 --libdir=/usr/lib \
27 --libexecdir=/var/www/cgi-bin \
28 --sysconfdir=/etc \
29 $CONFIGURE_ARGS &&
30 make &&
31 make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share
38 mkdir -p $fs/etc/squid/conf.d
40 cp -a $install/etc $fs
41 cp -a $install/usr/lib $fs/usr
42 cp -a $install/usr/share/c_icap $fs/usr/share
43 cp -a $install/var $fs
44 cp -a $stuff/icap-clamav.conf $fs/etc/squid/conf.d
46 # Customise configuration file
47 sed -i -e "s|^redirect.*|redirect http://localhost/cgi-bin/squidclamav/clwarn.cgi|" \
48 -e "s|^#squidguard.*|squidguard /usr/bin/squidGuard|" \
49 $fs/etc/c-icap/squidclamav.conf
51 rm -f $fs/usr/lib/c_icap/*.la
52 }
54 #Post install command
55 post_install()
56 {
57 echo 'Service squidclamav squidclamav.so' >> "$1/etc/c-icap/c-icap.conf"
58 [ "$1" ] ||
59 if ( ps | grep -q squid )
60 then
61 /etc/init.d/squid restart
62 fi
63 }
65 #Post remove command
66 post_remove()
67 {
68 sed -i -e "s/.*squidclamav.*//" "$1/etc/c-icap/c-icap.conf"
69 [ "$1" ] ||
70 if ( ps | grep -q squid )
71 then
72 /etc/init.d/squid restart
73 fi
74 [ "$1" ] ||
75 if ( ps | grep -q c-icap )
76 then
77 /etc/init.d/c-icapd restart
78 fi
79 }