wok view squidguard/receipt @ rev 2301

udev + pcmciautils: fix path in udev rules
author Christophe Lincoln <pankso@slitaz.org>
date Mon Feb 23 14:02:39 2009 +0100 (2009-02-23)
parents 4784eb863cc5
children 37522640c730
line source
1 # SliTaz package receipt.
3 PACKAGE="squidguard"
4 VERSION="1.3"
5 CATEGORY="network"
6 SHORT_DESC="Web filter."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="squidGuard"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.squidguard.org/"
11 WGET_URL="${WEB_SITE}Downloads/$TARBALL"
12 DEPENDS="squid libdb"
13 BUILD_DEPENDS="db-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --prefix=/usr --infodir=/usr/share/info \
20 --sysconfdir=/etc --with-sg-config=/etc/squid/squidGuard.conf \
21 --with-sg-logdir=/var/lib/squidGuard/log \
22 --with-sg-dbhome=/var/lib/squidGuard/db \
23 --mandir=/usr/share/man $CONFIGURE_ARGS
24 make
25 sed -e 's|^prefix =.*|prefix = _pkg/usr|' \
26 -e 's|^logdir =.*|logdir = _pkg/var/lib/squidGuard/log|' \
27 -e 's|^configfile =.*|configfile = _pkg/etc/squid/squidGuard.conf|' \
28 -e 's|^dbhomedir =.*|dbhomedir = _pkg/var/lib/squidGuard/db|' \
29 -e 's|^SQUIDUSER =.*|SQUIDUSER = root|' \
30 < Makefile > Makefile.slitaz-install
31 mkdir -p _pkg/etc/squid
32 make -f Makefile.slitaz-install install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $_pkg/* $fs/
39 }
41 # Pre and post install commands for Tazpkg.
42 post_install()
43 {
44 chown -R nobody /var/lib/squidGuard/* /usr/squidGuard
45 if ! grep ^redirect_program $1/etc/squid/squid.conf ; then
46 echo "Updating /etc/squid/squid.conf"
47 cat >> $1/etc/squid/squid.conf <<EOF
48 redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
49 EOF
50 fi
51 }