wok-6.x view squidguard/receipt @ rev 17164
Add qtpanel
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Thu Sep 18 23:48:17 2014 +0200 (2014-09-18) |
parents | 051931e905b0 |
children | 2f33548ee20c |
line source
1 # SliTaz package receipt.
3 PACKAGE="squidguard"
4 VERSION="1.4"
5 CATEGORY="network"
6 SHORT_DESC="Web filter."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 SOURCE="squidGuard"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.squidguard.org/"
12 WGET_URL="${WEB_SITE}Downloads/$TARBALL"
13 DEPENDS="squid libdb"
14 BUILD_DEPENDS="db-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
21 # Security patches
22 while read patch_file; do
23 echo "Apply $patch_file"
24 tar xvzf $stuff/$patch_file || return 1
25 cp -a $(basename $patch_file .tar.gz)/* src
26 done <<EOT
27 squidGuard-1.4-patch-20091015.tar.gz
28 squidGuard-1.4-patch-20091019.tar.gz
29 EOT
30 # Add support for squid 3.4
31 patch -p1 < $stuff/squidGuard-1.4_upgrade.patch
32 patch -p1 < $stuff/squidGuard-1.4-dnsbl.patch
34 ./configure --prefix=/usr --infodir=/usr/share/info \
35 --sysconfdir=/etc --with-sg-config=/etc/squidGuard/squidGuard.conf \
36 --with-sg-logdir=/var/lib/squidGuard/log \
37 --with-sg-dbhome=/var/lib/squidGuard/db \
38 --mandir=/usr/share/man $CONFIGURE_ARGS
40 make
41 sed -e "s|^prefix =.*|prefix = $DESTDIR/usr|" \
42 -e "s|^logdir =.*|logdir = $DESTDIR/var/lib/squidGuard/log|" \
43 -e "s|^configfile =.*|configfile = $DESTDIR/etc/squidGuard/squidGuard.conf|" \
44 -e "s|^dbhomedir =.*|dbhomedir = $DESTDIR/var/lib/squidGuard/db|" \
45 -e "s|^SQUIDUSER =.*|SQUIDUSER = nobody|" \
46 < Makefile > Makefile.slitaz-install
47 mkdir -p $DESTDIR/etc/squidGuard
48 make -f Makefile.slitaz-install install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/etc/squid/conf.d
56 cp -a $install/* $fs/
57 cp -pa $stuff/squidguard.conf $fs/etc/squid/conf.d
59 # Cleanup.
60 rmdir $fs/usr/squidGuard
62 }
64 # Pre and post install commands for Tazpkg.
65 post_install()
66 {
67 chown -R nobody $1/var/lib/squidGuard/*
68 # Recharge squid config
69 [ -x $(which squid) ] && $(which squid) -k reconfigure 2> /dev/null
70 }
72 post_remove()
73 {
74 # Recharge squid config
75 [ -x $(which squid) ] && $(which squid) -k reconfigure 2> /dev/null
76 }