# SliTaz package receipt. PACKAGE="squidguard" VERSION="1.4" CATEGORY="network" SHORT_DESC="Web filter." MAINTAINER="pascal.bellard@slitaz.org" SOURCE="squidGuard" TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="http://www.squidguard.org/" WGET_URL="${WEB_SITE}Downloads/$TARBALL" DEPENDS="squid libdb" BUILD_DEPENDS="db-dev" # Rules to configure and make the package. compile_rules() { cd $src # Security patches while read patch_file; do echo "Apply $patch_file" tar xvzf $stuff/$patch_file || return 1 cp -a $(basename $patch_file .tar.gz)/* src done < Makefile.slitaz-install mkdir -p _pkg/etc/squidGuard make -f Makefile.slitaz-install install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/etc/squid/conf.d cp -a $install/* $fs/ cp -pa $stuff/squidguard.conf $fs/etc/squid/conf.d # Cleanup. rmdir $fs/usr/squidGuard } # Pre and post install commands for Tazpkg. post_install() { chown -R nobody $1/var/lib/squidGuard/* # Recharge squid config [ -x $(which squid) ] && $(which squid) -k reconfigure 2> /dev/null } post_remove() { # Recharge squid config [ -x $(which squid) ] && $(which squid) -k reconfigure 2> /dev/null }