diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/dansguardian |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/dansguardian')
-rw-r--r-- | extra/dansguardian/PKGBUILD | 148 | ||||
-rw-r--r-- | extra/dansguardian/dansguardian | 36 | ||||
-rw-r--r-- | extra/dansguardian/dansguardian.install | 8 | ||||
-rw-r--r-- | extra/dansguardian/dg2.10.1.1-missing.stdio.patch | 10 |
4 files changed, 202 insertions, 0 deletions
diff --git a/extra/dansguardian/PKGBUILD b/extra/dansguardian/PKGBUILD new file mode 100644 index 000000000..6d943cc2a --- /dev/null +++ b/extra/dansguardian/PKGBUILD @@ -0,0 +1,148 @@ +# $Id: PKGBUILD 70467 2010-02-26 21:24:54Z dgriffiths $ +# Maintainer: Kevin Piche <kevin@archlinux.org> +# Contributor: Manolis Tzanidakis + +pkgname=dansguardian +pkgver=2.10.1.1 +pkgrel=2 +pkgdesc="Squid plugin for web content filtering." +url="http://dansguardian.org" +arch=('i686' 'x86_64') +license=('GPL2') +depends=('squid' 'pcre' 'zlib') +install=${pkgname}.install +source=(http://dansguardian.org/downloads/2/Stable/${pkgname}-${pkgver}.tar.gz +dansguardian dg2.10.1.1-missing.stdio.patch) +md5sums=('0987a1c9bfbdf398118386f10279611a' 'a65a2cb6309670ad8978f1544907d290' + '3444718c00cc17337cba711ceaa1c0e5') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + patch -Np0 -i ${srcdir}/dg2.10.1.1-missing.stdio.patch + ./configure --prefix="/usr" --with-proxyuser=proxy --with-proxygroup=proxy \ + --sysconfdir=/etc --localstatedir=/var --enable-email + make || return 1 + make DESTDIR=${pkgdir} install + + install -D data/scripts/dansguardian ${pkgdir}/etc/logrotate.d/dansguardian + install -D -m755 ${srcdir}/dansguardian ${pkgdir}/etc/rc.d/dansguardian +} + +backup=(etc/dansguardian/dansguardian.conf +etc/dansguardian/dansguardianf1.conf +etc/dansguardian/downloadmanagers/default.conf +etc/dansguardian/downloadmanagers/fancy.conf +etc/dansguardian/authplugins/proxy-digest.conf +etc/dansguardian/authplugins/proxy-basic.conf +etc/dansguardian/authplugins/ident.conf +etc/dansguardian/authplugins/ip.conf +etc/dansguardian/lists/weightedphraselist +etc/dansguardian/lists/contentregexplist +etc/dansguardian/lists/exceptionfileurllist +etc/dansguardian/lists/exceptionextensionlist +etc/dansguardian/lists/bannedextensionlist +etc/dansguardian/lists/exceptionmimetypelist +etc/dansguardian/lists/blacklists/ads/urls +etc/dansguardian/lists/blacklists/ads/domains +etc/dansguardian/lists/exceptionregexpurllist +etc/dansguardian/lists/authplugins/ipgroups +etc/dansguardian/lists/bannedregexpheaderlist +etc/dansguardian/lists/phraselists/rta/banned +etc/dansguardian/lists/phraselists/sport/weighted +etc/dansguardian/lists/phraselists/proxies/weighted +etc/dansguardian/lists/phraselists/safelabel/banned +etc/dansguardian/lists/phraselists/peer2peer/weighted +etc/dansguardian/lists/phraselists/drugadvocacy/weighted +etc/dansguardian/lists/phraselists/googlesearches/banned +etc/dansguardian/lists/phraselists/conspiracy/weighted +etc/dansguardian/lists/phraselists/secretsocieties/weighted +etc/dansguardian/lists/phraselists/idtheft/weighted +etc/dansguardian/lists/phraselists/illegaldrugs/banned +etc/dansguardian/lists/phraselists/illegaldrugs/weighted_portuguese +etc/dansguardian/lists/phraselists/illegaldrugs/weighted +etc/dansguardian/lists/phraselists/violence/weighted_portuguese +etc/dansguardian/lists/phraselists/violence/weighted +etc/dansguardian/lists/phraselists/domainsforsale/weighted +etc/dansguardian/lists/phraselists/music/weighted +etc/dansguardian/lists/phraselists/upstreamfilter/weighted +etc/dansguardian/lists/phraselists/games/weighted +etc/dansguardian/lists/phraselists/weapons/weighted_portuguese +etc/dansguardian/lists/phraselists/weapons/weighted +etc/dansguardian/lists/phraselists/legaldrugs/weighted +etc/dansguardian/lists/phraselists/gore/weighted_portuguese +etc/dansguardian/lists/phraselists/gore/weighted +etc/dansguardian/lists/phraselists/warezhacking/weighted +etc/dansguardian/lists/phraselists/pornography/weighted_chinese +etc/dansguardian/lists/phraselists/pornography/weighted_malay +etc/dansguardian/lists/phraselists/pornography/weighted_german +etc/dansguardian/lists/phraselists/pornography/weighted_dutch +etc/dansguardian/lists/phraselists/pornography/banned_portuguese +etc/dansguardian/lists/phraselists/pornography/weighted_french +etc/dansguardian/lists/phraselists/pornography/weighted_polish +etc/dansguardian/lists/phraselists/pornography/banned +etc/dansguardian/lists/phraselists/pornography/weighted_danish +etc/dansguardian/lists/phraselists/pornography/weighted_japanese +etc/dansguardian/lists/phraselists/pornography/weighted_portuguese +etc/dansguardian/lists/phraselists/pornography/weighted_russian +etc/dansguardian/lists/phraselists/pornography/weighted_italian +etc/dansguardian/lists/phraselists/pornography/weighted_swedish +etc/dansguardian/lists/phraselists/pornography/weighted +etc/dansguardian/lists/phraselists/pornography/weighted_norwegian +etc/dansguardian/lists/phraselists/pornography/weighted_spanish +etc/dansguardian/lists/phraselists/personals/weighted_portuguese +etc/dansguardian/lists/phraselists/personals/weighted +etc/dansguardian/lists/phraselists/nudism/weighted +etc/dansguardian/lists/phraselists/malware/weighted +etc/dansguardian/lists/phraselists/goodphrases/weighted_general_polish +etc/dansguardian/lists/phraselists/goodphrases/weighted_general_swedish +etc/dansguardian/lists/phraselists/goodphrases/exception_email +etc/dansguardian/lists/phraselists/goodphrases/exception +etc/dansguardian/lists/phraselists/goodphrases/weighted_general +etc/dansguardian/lists/phraselists/goodphrases/weighted_general_danish +etc/dansguardian/lists/phraselists/goodphrases/weighted_general_malay +etc/dansguardian/lists/phraselists/goodphrases/weighted_general_dutch +etc/dansguardian/lists/phraselists/goodphrases/weighted_general_portuguese +etc/dansguardian/lists/phraselists/goodphrases/weighted_news +etc/dansguardian/lists/phraselists/translation/weighted +etc/dansguardian/lists/phraselists/chat/weighted_italian +etc/dansguardian/lists/phraselists/chat/weighted +etc/dansguardian/lists/phraselists/news/weighted +etc/dansguardian/lists/phraselists/badwords/weighted_german +etc/dansguardian/lists/phraselists/badwords/weighted_dutch +etc/dansguardian/lists/phraselists/badwords/weighted_french +etc/dansguardian/lists/phraselists/badwords/weighted_portuguese +etc/dansguardian/lists/phraselists/badwords/weighted_spanish +etc/dansguardian/lists/phraselists/webmail/weighted +etc/dansguardian/lists/phraselists/travel/weighted +etc/dansguardian/lists/phraselists/gambling/banned_portuguese +etc/dansguardian/lists/phraselists/gambling/banned +etc/dansguardian/lists/phraselists/gambling/weighted_portuguese +etc/dansguardian/lists/phraselists/gambling/weighted +etc/dansguardian/lists/phraselists/forums/weighted +etc/dansguardian/lists/phraselists/intolerance/banned_portuguese +etc/dansguardian/lists/phraselists/intolerance/weighted_portuguese +etc/dansguardian/lists/phraselists/intolerance/weighted +etc/dansguardian/lists/logsitelist +etc/dansguardian/lists/logregexpurllist +etc/dansguardian/lists/greysitelist +etc/dansguardian/lists/filtergroupslist +etc/dansguardian/lists/downloadmanagers/managedmimetypelist +etc/dansguardian/lists/downloadmanagers/managedextensionlist +etc/dansguardian/lists/exceptionfilesitelist +etc/dansguardian/lists/bannedmimetypelist +etc/dansguardian/lists/pics +etc/dansguardian/lists/exceptionurllist +etc/dansguardian/lists/logurllist +etc/dansguardian/lists/exceptionphraselist +etc/dansguardian/lists/bannedurllist +etc/dansguardian/lists/headerregexplist +etc/dansguardian/lists/bannediplist +etc/dansguardian/lists/exceptionsitelist +etc/dansguardian/lists/bannedphraselist +etc/dansguardian/lists/exceptioniplist +etc/dansguardian/lists/bannedregexpurllist +etc/dansguardian/lists/bannedsitelist +etc/dansguardian/lists/urlregexplist +etc/dansguardian/lists/greyurllist) + +# vim: ts=2 sw=2 et ft=sh diff --git a/extra/dansguardian/dansguardian b/extra/dansguardian/dansguardian new file mode 100644 index 000000000..c537da8bd --- /dev/null +++ b/extra/dansguardian/dansguardian @@ -0,0 +1,36 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pidof -o %PPID /usr/sbin/dansguardian` +case "$1" in + start) + stat_busy "Starting DansGuardian" + [ -z "$PID" ] && /usr/sbin/dansguardian + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon dansguardian + stat_done + fi + ;; + stop) + stat_busy "Stopping DansGuardian" + [ ! -z "$PID" ] && /usr/sbin/dansguardian -q &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon dansguardian + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/extra/dansguardian/dansguardian.install b/extra/dansguardian/dansguardian.install new file mode 100644 index 000000000..05a72ad80 --- /dev/null +++ b/extra/dansguardian/dansguardian.install @@ -0,0 +1,8 @@ +post_install() { + echo "--------------------------------------------------" + echo "NOTE: DansGuardian is NOT free for commercial use." + echo " See http://dansguardian.org for details on" + echo " setup, configuration, and licensing." + echo "--------------------------------------------------" + chown -R proxy.proxy var/log/dansguardian +} diff --git a/extra/dansguardian/dg2.10.1.1-missing.stdio.patch b/extra/dansguardian/dg2.10.1.1-missing.stdio.patch new file mode 100644 index 000000000..b92aef008 --- /dev/null +++ b/extra/dansguardian/dg2.10.1.1-missing.stdio.patch @@ -0,0 +1,10 @@ +--- src/downloadmanagers/fancy.cpp.orig 2009-09-13 18:37:56.000000000 -0400 ++++ src/downloadmanagers/fancy.cpp 2009-09-13 18:38:14.000000000 -0400 +@@ -32,6 +32,7 @@ + #include <unistd.h> + #include <iostream> + #include <math.h> ++#include <cstdio> + + + // GLOBALS |