wok-6.x diff squidguard/receipt @ rev 1324
Add php-imap, php-mhash
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 29 07:59:39 2008 +0000 (2008-08-29) |
parents | |
children | bd6010223726 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/squidguard/receipt Fri Aug 29 07:59:39 2008 +0000 1.3 @@ -0,0 +1,60 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="squidguard" 1.7 +VERSION="1.3" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Web filter." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +SOURCE="squidGuard" 1.12 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://www.squidguard.org/" 1.14 +WGET_URL="${WEB_SITE}Downloads/$TARBALL" 1.15 +DEPENDS="squid libdb" 1.16 +BUILD_DEPENDS="db-dev" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + ./configure --prefix=/usr --infodir=/usr/share/info \ 1.23 + --sysconfdir=/etc --with-sg-config=/etc/squid/squidGuard.conf \ 1.24 + --with-sg-logdir=/var/lib/squidGuard/log \ 1.25 + --with-sg-dbhome=/var/lib/squidGuard/db \ 1.26 + --mandir=/usr/share/man $CONFIGURE_ARGS 1.27 + make 1.28 + sed -e 's|^prefix =.*|prefix = _pkg/usr|' \ 1.29 + -e 's|^logdir =.*|logdir = _pkg/var/lib/squidGuard/log|' \ 1.30 + -e 's|^configfile =.*|configfile = _pkg/etc/squid/squidGuard.conf|' \ 1.31 + -e 's|^dbhomedir =.*|dbhomedir = _pkg/var/lib/squidGuard/db|' \ 1.32 + -e 's|^SQUIDUSER =.*|SQUIDUSER = root|' \ 1.33 + < Makefile > Makefile.slitaz-install 1.34 + mkdir -p _pkg/etc/squid 1.35 + make -f Makefile.slitaz-install install 1.36 +} 1.37 + 1.38 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.39 +genpkg_rules() 1.40 +{ 1.41 + cp -a $_pkg/* $fs/ 1.42 +} 1.43 + 1.44 +# Pre and post install commands for Tazpkg. 1.45 +post_install() 1.46 +{ 1.47 + ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \ 1.48 + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOF 1.49 +etc/squid/squidGuard.conf 1.50 +EOF 1.51 + chown -R nobody /var/lib/squidGuard/* /usr/squidGuard 1.52 + if ! grep ^redirect_program $1/etc/squid/squid.conf ; then 1.53 + echo "Updating /etc/squid/squid.conf" 1.54 + cat >> $1/etc/squid/squid.conf <<EOF 1.55 +redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf 1.56 +EOF 1.57 + fi 1.58 +} 1.59 + 1.60 +repack_cleanup() 1.61 +{ 1.62 + zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) 1.63 +}