
Receipt for package "squidguardmgr"
# SliTaz package receipt. PACKAGE="squidguardmgr" VERSION="1.14" CATEGORY="system-tools" SHORT_DESC="Web GUI for squidGuard and SquidClamav administration." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL3" WEB_SITE="https://sourceforge.net/projects/squidguardmgr/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="squidguard squidclamav lighttpd" BUILD_DEPENDS="perl squidguard " CONFIG_FILES="/etc/squidguardmgr.conf" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed '/tar.gz/!d;s|.*mgr-||;s|.tar.*||' } # Rules to configure and make the package. compile_rules() { SQUIDUSR=squid SQUIDGRP=squid perl Makefile.PL << EOT && /etc/squidGuard/squidGuard.conf nobody EOT mkdir -p $DESTDIR/var/www/squidguardmgr/ && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share mkdir -p $fs/etc mkdir -p $fs/var/lib/squidGuard/log mkdir -p $fs/var/lib/squidGuard/db cp -a $install/var/www/squidguardmgr $fs/usr/share # 1.14 unsuitable # ( cd $fs ; patch -p0 ) < $stuff/squidguardmgr.U mv $fs/usr/share/squidguardmgr/squidguardmgr.conf $fs/etc ln -s /etc/squidguardmgr.conf $fs/usr/share/squidguardmgr/squidguardmgr.conf sed -i -e 's|/var/www/squidguardmgr|/usr/share/squidguardmgr|' \ -e 's|SQUIDCLAMAV off|SQUIDCLAMAV on|' \ -e 's|SC_CONF_FILE|SC_CONF_FILE /etc/squidclamav.conf|' \ -e 's|C_ICAP_SOCKET|C_ICAP_SOCKET /var/run/c-icap/c-icap.ctl|' \ $fs/etc/squidguardmgr.conf } post_install() { # squidguardmgr configuration chown root.www "$1/etc/squidGuard/squidGuard.conf" chmod 664 "$1/etc/squidGuard/squidGuard.conf" chown nobody.nogroup "$1"/usr/share/squidguardmgr/lang/* chown nobody.nogroup "$1/usr/share/squidguardmgr/lang" chown nobody.nogroup "$1/usr/share/squidguardmgr" # Configure lighttpd server if [ -f "$1/etc/lighttpd/lighttpd.conf" ] then if ! grep -q /usr/share/squidguardmgr/ "$1/etc/lighttpd/lighttpd.conf" then sed -i -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/squidguardmgr/" => "/usr/share/squidguardmgr/",|g' \ "$1/etc/lighttpd/lighttpd.conf" if [ -z "$1" ] then # Start Web server. /etc/init.d/lighttpd stop /etc/init.d/lighttpd start fi fi fi # Configure apache server if [ -f "$1/etc/apache/httpd.conf" ] then if [ ! -f "$1/etc/apache/conf.d/squidguardmgr" ] then cat > "$1/etc/apache/conf.d/squidguardmgr" <<EOT <IfModule mod_alias.c> Alias /squidguardmgr /usr/share/squidguardmgr </IfModule> <DirectoryMatch /usr/share/squidguardmgr/> Options +ExecCGI AddHandler cgi-script .cgi DirectoryIndex squidguardmgr.cgi Order allow,deny Allow from all </DirectoryMatch> EOT if [ -z "$1" ] then # Start Web server. /etc/init.d/apache stop /etc/init.d/apache start fi fi fi }
6093 packages and 258600 files in current database (Wed Apr 23 16:49:15 2025)