
Receipt for package "squidguard"
# 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 <<EOT squidGuard-1.4-patch-20091015.tar.gz squidGuard-1.4-patch-20091019.tar.gz EOT ./configure --prefix=/usr --infodir=/usr/share/info \ --sysconfdir=/etc --with-sg-config=/etc/squidGuard/squidGuard.conf \ --with-sg-logdir=/var/lib/squidGuard/log \ --with-sg-dbhome=/var/lib/squidGuard/db \ --mandir=/usr/share/man $CONFIGURE_ARGS make sed -e 's|^prefix =.*|prefix = _pkg/usr|' \ -e 's|^logdir =.*|logdir = _pkg/var/lib/squidGuard/log|' \ -e 's|^configfile =.*|configfile = _pkg/etc/squidGuard/squidGuard.conf|' \ -e 's|^dbhomedir =.*|dbhomedir = _pkg/var/lib/squidGuard/db|' \ -e 's|^SQUIDUSER =.*|SQUIDUSER = nobody|' \ < Makefile > 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 }
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)