summaryrefslogtreecommitdiff
path: root/www/dansguardian
diff options
context:
space:
mode:
authorsborrill <sborrill@pkgsrc.org>2008-02-22 17:13:29 +0000
committersborrill <sborrill@pkgsrc.org>2008-02-22 17:13:29 +0000
commitf54adc018dd6d92d2ddf70ad939562d1a9e0ffb4 (patch)
tree3011e41fcdc097d791ed2767c8cf94b97f9a55ce /www/dansguardian
parentfd0712a4c900e0d8aafbdbd9eed307a1f5f5c065 (diff)
downloadpkgsrc-f54adc018dd6d92d2ddf70ad939562d1a9e0ffb4.tar.gz
DansGuardian is a web content filtering proxy for Linux, FreeBSD, OpenBSD,
and Solaris. It relies on a proxy server, for all fetching. The preferred proxy is Squid, however, DansGuardian should work with any proxy server.
Diffstat (limited to 'www/dansguardian')
-rw-r--r--www/dansguardian/DESCR14
-rw-r--r--www/dansguardian/MESSAGE20
-rw-r--r--www/dansguardian/Makefile206
-rw-r--r--www/dansguardian/PLIST176
-rw-r--r--www/dansguardian/distinfo5
-rw-r--r--www/dansguardian/files/dansguardian.sh19
6 files changed, 440 insertions, 0 deletions
diff --git a/www/dansguardian/DESCR b/www/dansguardian/DESCR
new file mode 100644
index 00000000000..6a0f27a1652
--- /dev/null
+++ b/www/dansguardian/DESCR
@@ -0,0 +1,14 @@
+DansGuardian is a web content filtering proxy for Linux, FreeBSD, OpenBSD,
+and Solaris. It relies on a proxy server, for all fetching. The preferred
+proxy is Squid, however, DansGuardian should work with any proxy server.
+
+It filters using multiple methods, including:
+ - URL and domain filtering
+ - textual content filtering
+ - PICS filtering
+ - MIME-type filtering
+ - file extension filtering
+ - POST filtering
+ - user filtering
+ - client IP filtering
+ - exception lists for most of the above
diff --git a/www/dansguardian/MESSAGE b/www/dansguardian/MESSAGE
new file mode 100644
index 00000000000..73a4c7da101
--- /dev/null
+++ b/www/dansguardian/MESSAGE
@@ -0,0 +1,20 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2008/02/22 17:13:29 sborrill Exp $
+
+Please read the copyright and licensing notice for DansGuardian at
+http://dansguardian.org/?page=copyright2
+
+DansGuardian 2 is:
+- licensed under the GPL version 2
+- Open Source
+- Free Software where 'Free' means Freedom
+- freely (no cost) downloadable from the main DG site for non-commercial use
+- freely (no cost) downloadable from the main DG site for general purpose unix
+ distributions like FreeBSD, Debian, Fedora, Ubuntu, etc
+- not freely downloadable from the main DG site for installation by 3rd parties
+ charging for installation or support
+- not freely downloadable from the main DG site for commercial use
+- a registered trade mark of Daniel Barron
+- copyright Daniel Barron
+
+===========================================================================
diff --git a/www/dansguardian/Makefile b/www/dansguardian/Makefile
new file mode 100644
index 00000000000..7d5aea3efa0
--- /dev/null
+++ b/www/dansguardian/Makefile
@@ -0,0 +1,206 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/02/22 17:13:29 sborrill Exp $
+
+DISTNAME= dansguardian-2.8.0.6.source
+PKGNAME= dansguardian-2.8.0.6
+CATEGORIES= www
+MASTER_SITES= http://dansguardian.org/downloads/2/Stable/
+
+MAINTAINER= sborrill@NetBSD.org
+HOMEPAGE= http://dansguardian.org/
+COMMENT= Fast, featureful web content filter for Squid proxy servers
+
+WRKSRC= ${WRKDIR}/dansguardian-2.8.0.6
+HAS_CONFIGURE= yes
+MANCOMPRESSED= yes
+RCD_SCRIPTS+= dansguardian
+
+EGDIR= ${PREFIX}/share/examples/dansguardian
+
+SUBST_CLASSES+= egconfpath
+SUBST_STAGE.egconfpath= pre-configure
+SUBST_MESSAGE.egconfpath= Setting example configuration path
+SUBST_FILES.egconfpath= autoconf/*.in
+SUBST_SED.egconfpath= -e 's,\$$(CONFFILELOCATION),${EGDIR}/,g'
+SUBST_SED.egconfpath+= -e '/SYSVLOCATION/d'
+SUBST_SED.egconfpath+= -e '/chmod.*dansguardian.pl/s,o\+x,+x,'
+
+SUBST_CLASSES+= perlpath
+SUBST_STAGE.perlpath= pre-configure
+SUBST_MESSAGE.perlpath= Fixing path to perl executable
+SUBST_FILES.perlpath= *.pl
+SUBST_SED.perlpath= -e 's,/usr/bin,${PREFIX}/bin,g'
+
+CONFIGURE_ARGS= --prefix=${PREFIX:Q} \
+ --cgidir=/libexec/cgi-bin/ \
+ --sysconfdir=/etc/dansguardian/ \
+ --bindir=/sbin/ \
+ --mandir=/man/ \
+ --logdir=/var/log/
+
+DEPENDS+= squid>=2.5:../../www/squid
+
+.for f in logrotation pics transparent1x1.gif \
+ dansguardian.conf \
+ dansguardianf1.conf \
+ bannedextensionlist \
+ bannediplist \
+ bannedmimetypelist \
+ bannedphraselist \
+ bannedregexpurllist \
+ bannedsitelist \
+ bannedurllist \
+ banneduserlist \
+ contentregexplist \
+ exceptioniplist \
+ exceptionphraselist \
+ exceptionsitelist \
+ exceptionurllist \
+ exceptionuserlist \
+ filtergroupslist \
+ greysitelist \
+ greyurllist \
+ weightedphraselist \
+ phraselists/badwords/weighted_dutch \
+ phraselists/badwords/weighted_french \
+ phraselists/badwords/weighted_german \
+ phraselists/badwords/weighted_portuguese \
+ phraselists/badwords/weighted_spanish \
+ phraselists/chat/weighted \
+ phraselists/chat/weighted_italian \
+ phraselists/drugadvocacy/weighted \
+ phraselists/gambling/banned \
+ phraselists/gambling/banned_portuguese \
+ phraselists/gambling/weighted \
+ phraselists/gambling/weighted_portuguese \
+ phraselists/games/weighted \
+ phraselists/goodphrases/exception \
+ phraselists/goodphrases/exception_email \
+ phraselists/goodphrases/weighted_general \
+ phraselists/goodphrases/weighted_general_danish \
+ phraselists/goodphrases/weighted_general_portuguese \
+ phraselists/goodphrases/weighted_news \
+ phraselists/googlesearches/banned \
+ phraselists/gore/weighted \
+ phraselists/gore/weighted_portuguese \
+ phraselists/illegaldrugs/banned \
+ phraselists/illegaldrugs/banned_portuguese \
+ phraselists/illegaldrugs/weighted \
+ phraselists/illegaldrugs/weighted_portuguese \
+ phraselists/intolerance/banned_portuguese \
+ phraselists/intolerance/weighted \
+ phraselists/intolerance/weighted_portuguese \
+ phraselists/legaldrugs/weighted \
+ phraselists/malware/weighted \
+ phraselists/news/weighted \
+ phraselists/nudism/weighted \
+ phraselists/peer2peer/weighted \
+ phraselists/personals/weighted \
+ phraselists/personals/weighted_portuguese \
+ phraselists/pornography/banned \
+ phraselists/pornography/banned_portuguese \
+ phraselists/pornography/weighted \
+ phraselists/pornography/weighted_danish \
+ phraselists/pornography/weighted_dutch \
+ phraselists/pornography/weighted_french \
+ phraselists/pornography/weighted_german \
+ phraselists/pornography/weighted_italian \
+ phraselists/pornography/weighted_portuguese \
+ phraselists/pornography/weighted_spanish \
+ phraselists/proxies/weighted \
+ phraselists/sport/weighted \
+ phraselists/violence/weighted \
+ phraselists/violence/weighted_portuguese \
+ phraselists/warezhacking/weighted \
+ phraselists/weapons/weighted \
+ phraselists/weapons/weighted_portuguese \
+ phraselists/webmail/weighted \
+ languages/ReadMe \
+ languages/arspanish/messages \
+ languages/arspanish/template.html \
+ languages/bulgarian/messages \
+ languages/bulgarian/template.html \
+ languages/chinesebig5/messages \
+ languages/chinesebig5/template.html \
+ languages/chinesegb2312/messages \
+ languages/chinesegb2312/template.html \
+ languages/czech/messages \
+ languages/czech/template.html \
+ languages/danish/messages \
+ languages/danish/template.html \
+ languages/dutch/messages \
+ languages/dutch/template.html \
+ languages/french/messages \
+ languages/french/template.html \
+ languages/german/messages \
+ languages/german/template.html \
+ languages/hebrew/messages \
+ languages/hebrew/template.html \
+ languages/indonesian/messages \
+ languages/indonesian/template.html \
+ languages/italian/messages \
+ languages/italian/template.html \
+ languages/lithuanian/messages \
+ languages/lithuanian/template.html \
+ languages/mxspanish/messages \
+ languages/mxspanish/template.html \
+ languages/polish/messages \
+ languages/polish/template.html \
+ languages/portuguese/messages \
+ languages/portuguese/messagesaccents \
+ languages/portuguese/template.html \
+ languages/russian-1251/messages \
+ languages/russian-1251/template.html \
+ languages/slovak/messages \
+ languages/slovak/template.html \
+ languages/spanish/messages \
+ languages/spanish/template.html \
+ languages/swedish/messages \
+ languages/swedish/template.html \
+ languages/turkish/messages \
+ languages/turkish/template.html \
+ languages/ukenglish/messages \
+ languages/ukenglish/template.html
+CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/dansguardian/${f}
+.endfor
+
+pre-install:
+ ${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/dansguardian; \
+ for dir in badwords chat drugadvocacy gambling games \
+ goodphrases googlesearches gore illegaldrugs \
+ intolerance legaldrugs malware news nudism \
+ peer2peer personals pornography proxies sport \
+ violence warezhacking weapons webmail; \
+ do \
+ ${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/dansguardian/phraselists/$${dir}; \
+ done; \
+ for dir in arspanish bulgarian chinesebig5 chinesegb2312 \
+ czech danish dutch french german hebrew \
+ indonesian italian lithuanian mxspanish polish \
+ portuguese russian-1251 slovak spanish \
+ swedish turkish ukenglish; \
+ do \
+ ${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/dansguardian/languages/$${dir}; \
+ done
+
+show-conffiles:
+ cd ${WRKSRC}; \
+ for file in *.conf *list; \
+ do \
+ ${PRINTF} "\\t$${file}\\t\\\\\\n"; \
+ done; \
+ for dir in phraselists/* languages/*; \
+ do \
+ if [ -d $${dir} ]; then \
+ for file in $${dir}/*; \
+ do \
+ ${PRINTF} "\\t$${file}\\t\\\\\\n"; \
+ done; \
+ else \
+ ${PRINTF} "\\t$${dir}\\t\\\\\\n"; \
+ fi; \
+ done
+
+USE_LANGUAGES= c c++
+
+.include "../../lang/perl5/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/dansguardian/PLIST b/www/dansguardian/PLIST
new file mode 100644
index 00000000000..41b3f01109e
--- /dev/null
+++ b/www/dansguardian/PLIST
@@ -0,0 +1,176 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/02/22 17:13:29 sborrill Exp $
+libexec/cgi-bin/dansguardian.pl
+man/man8/dansguardian.8
+sbin/dansguardian
+share/examples/dansguardian/bannedextensionlist
+share/examples/dansguardian/bannediplist
+share/examples/dansguardian/bannedmimetypelist
+share/examples/dansguardian/bannedphraselist
+share/examples/dansguardian/bannedregexpurllist
+share/examples/dansguardian/bannedsitelist
+share/examples/dansguardian/bannedurllist
+share/examples/dansguardian/banneduserlist
+share/examples/dansguardian/contentregexplist
+share/examples/dansguardian/dansguardian.conf
+share/examples/dansguardian/dansguardianf1.conf
+share/examples/dansguardian/exceptioniplist
+share/examples/dansguardian/exceptionphraselist
+share/examples/dansguardian/exceptionsitelist
+share/examples/dansguardian/exceptionurllist
+share/examples/dansguardian/exceptionuserlist
+share/examples/dansguardian/filtergroupslist
+share/examples/dansguardian/greysitelist
+share/examples/dansguardian/greyurllist
+share/examples/dansguardian/languages/ReadMe
+share/examples/dansguardian/languages/arspanish/messages
+share/examples/dansguardian/languages/arspanish/template.html
+share/examples/dansguardian/languages/bulgarian/messages
+share/examples/dansguardian/languages/bulgarian/template.html
+share/examples/dansguardian/languages/chinesebig5/messages
+share/examples/dansguardian/languages/chinesebig5/template.html
+share/examples/dansguardian/languages/chinesegb2312/messages
+share/examples/dansguardian/languages/chinesegb2312/template.html
+share/examples/dansguardian/languages/czech/messages
+share/examples/dansguardian/languages/czech/template.html
+share/examples/dansguardian/languages/danish/messages
+share/examples/dansguardian/languages/danish/template.html
+share/examples/dansguardian/languages/dutch/messages
+share/examples/dansguardian/languages/dutch/template.html
+share/examples/dansguardian/languages/french/messages
+share/examples/dansguardian/languages/french/template.html
+share/examples/dansguardian/languages/german/messages
+share/examples/dansguardian/languages/german/template.html
+share/examples/dansguardian/languages/hebrew/messages
+share/examples/dansguardian/languages/hebrew/template.html
+share/examples/dansguardian/languages/indonesian/messages
+share/examples/dansguardian/languages/indonesian/template.html
+share/examples/dansguardian/languages/italian/messages
+share/examples/dansguardian/languages/italian/template.html
+share/examples/dansguardian/languages/lithuanian/messages
+share/examples/dansguardian/languages/lithuanian/template.html
+share/examples/dansguardian/languages/mxspanish/messages
+share/examples/dansguardian/languages/mxspanish/template.html
+share/examples/dansguardian/languages/polish/messages
+share/examples/dansguardian/languages/polish/template.html
+share/examples/dansguardian/languages/portuguese/messages
+share/examples/dansguardian/languages/portuguese/messagesaccents
+share/examples/dansguardian/languages/portuguese/template.html
+share/examples/dansguardian/languages/russian-1251/messages
+share/examples/dansguardian/languages/russian-1251/template.html
+share/examples/dansguardian/languages/slovak/messages
+share/examples/dansguardian/languages/slovak/template.html
+share/examples/dansguardian/languages/spanish/messages
+share/examples/dansguardian/languages/spanish/template.html
+share/examples/dansguardian/languages/swedish/messages
+share/examples/dansguardian/languages/swedish/template.html
+share/examples/dansguardian/languages/turkish/messages
+share/examples/dansguardian/languages/turkish/template.html
+share/examples/dansguardian/languages/ukenglish/messages
+share/examples/dansguardian/languages/ukenglish/template.html
+share/examples/dansguardian/logrotation
+share/examples/dansguardian/phraselists/badwords/weighted_dutch
+share/examples/dansguardian/phraselists/badwords/weighted_french
+share/examples/dansguardian/phraselists/badwords/weighted_german
+share/examples/dansguardian/phraselists/badwords/weighted_portuguese
+share/examples/dansguardian/phraselists/badwords/weighted_spanish
+share/examples/dansguardian/phraselists/chat/weighted
+share/examples/dansguardian/phraselists/chat/weighted_italian
+share/examples/dansguardian/phraselists/drugadvocacy/weighted
+share/examples/dansguardian/phraselists/gambling/banned
+share/examples/dansguardian/phraselists/gambling/banned_portuguese
+share/examples/dansguardian/phraselists/gambling/weighted
+share/examples/dansguardian/phraselists/gambling/weighted_portuguese
+share/examples/dansguardian/phraselists/games/weighted
+share/examples/dansguardian/phraselists/goodphrases/exception
+share/examples/dansguardian/phraselists/goodphrases/exception_email
+share/examples/dansguardian/phraselists/goodphrases/weighted_general
+share/examples/dansguardian/phraselists/goodphrases/weighted_general_danish
+share/examples/dansguardian/phraselists/goodphrases/weighted_general_portuguese
+share/examples/dansguardian/phraselists/goodphrases/weighted_news
+share/examples/dansguardian/phraselists/googlesearches/banned
+share/examples/dansguardian/phraselists/gore/weighted
+share/examples/dansguardian/phraselists/gore/weighted_portuguese
+share/examples/dansguardian/phraselists/illegaldrugs/banned
+share/examples/dansguardian/phraselists/illegaldrugs/banned_portuguese
+share/examples/dansguardian/phraselists/illegaldrugs/weighted
+share/examples/dansguardian/phraselists/illegaldrugs/weighted_portuguese
+share/examples/dansguardian/phraselists/intolerance/banned_portuguese
+share/examples/dansguardian/phraselists/intolerance/weighted
+share/examples/dansguardian/phraselists/intolerance/weighted_portuguese
+share/examples/dansguardian/phraselists/legaldrugs/weighted
+share/examples/dansguardian/phraselists/malware/weighted
+share/examples/dansguardian/phraselists/news/weighted
+share/examples/dansguardian/phraselists/nudism/weighted
+share/examples/dansguardian/phraselists/peer2peer/weighted
+share/examples/dansguardian/phraselists/personals/weighted
+share/examples/dansguardian/phraselists/personals/weighted_portuguese
+share/examples/dansguardian/phraselists/pornography/banned
+share/examples/dansguardian/phraselists/pornography/banned_portuguese
+share/examples/dansguardian/phraselists/pornography/weighted
+share/examples/dansguardian/phraselists/pornography/weighted_danish
+share/examples/dansguardian/phraselists/pornography/weighted_dutch
+share/examples/dansguardian/phraselists/pornography/weighted_french
+share/examples/dansguardian/phraselists/pornography/weighted_german
+share/examples/dansguardian/phraselists/pornography/weighted_italian
+share/examples/dansguardian/phraselists/pornography/weighted_portuguese
+share/examples/dansguardian/phraselists/pornography/weighted_spanish
+share/examples/dansguardian/phraselists/proxies/weighted
+share/examples/dansguardian/phraselists/sport/weighted
+share/examples/dansguardian/phraselists/violence/weighted
+share/examples/dansguardian/phraselists/violence/weighted_portuguese
+share/examples/dansguardian/phraselists/warezhacking/weighted
+share/examples/dansguardian/phraselists/weapons/weighted
+share/examples/dansguardian/phraselists/weapons/weighted_portuguese
+share/examples/dansguardian/phraselists/webmail/weighted
+share/examples/dansguardian/pics
+share/examples/dansguardian/transparent1x1.gif
+share/examples/dansguardian/weightedphraselist
+share/examples/rc.d/dansguardian
+@dirrm share/examples/dansguardian/phraselists/webmail
+@dirrm share/examples/dansguardian/phraselists/weapons
+@dirrm share/examples/dansguardian/phraselists/warezhacking
+@dirrm share/examples/dansguardian/phraselists/violence
+@dirrm share/examples/dansguardian/phraselists/sport
+@dirrm share/examples/dansguardian/phraselists/proxies
+@dirrm share/examples/dansguardian/phraselists/pornography
+@dirrm share/examples/dansguardian/phraselists/personals
+@dirrm share/examples/dansguardian/phraselists/peer2peer
+@dirrm share/examples/dansguardian/phraselists/nudism
+@dirrm share/examples/dansguardian/phraselists/news
+@dirrm share/examples/dansguardian/phraselists/malware
+@dirrm share/examples/dansguardian/phraselists/legaldrugs
+@dirrm share/examples/dansguardian/phraselists/intolerance
+@dirrm share/examples/dansguardian/phraselists/illegaldrugs
+@dirrm share/examples/dansguardian/phraselists/gore
+@dirrm share/examples/dansguardian/phraselists/googlesearches
+@dirrm share/examples/dansguardian/phraselists/goodphrases
+@dirrm share/examples/dansguardian/phraselists/games
+@dirrm share/examples/dansguardian/phraselists/gambling
+@dirrm share/examples/dansguardian/phraselists/drugadvocacy
+@dirrm share/examples/dansguardian/phraselists/chat
+@dirrm share/examples/dansguardian/phraselists/badwords
+@dirrm share/examples/dansguardian/phraselists
+@dirrm share/examples/dansguardian/languages/ukenglish
+@dirrm share/examples/dansguardian/languages/turkish
+@dirrm share/examples/dansguardian/languages/swedish
+@dirrm share/examples/dansguardian/languages/spanish
+@dirrm share/examples/dansguardian/languages/slovak
+@dirrm share/examples/dansguardian/languages/russian-1251
+@dirrm share/examples/dansguardian/languages/portuguese
+@dirrm share/examples/dansguardian/languages/polish
+@dirrm share/examples/dansguardian/languages/mxspanish
+@dirrm share/examples/dansguardian/languages/lithuanian
+@dirrm share/examples/dansguardian/languages/italian
+@dirrm share/examples/dansguardian/languages/indonesian
+@dirrm share/examples/dansguardian/languages/hebrew
+@dirrm share/examples/dansguardian/languages/german
+@dirrm share/examples/dansguardian/languages/french
+@dirrm share/examples/dansguardian/languages/dutch
+@dirrm share/examples/dansguardian/languages/danish
+@dirrm share/examples/dansguardian/languages/czech
+@dirrm share/examples/dansguardian/languages/chinesegb2312
+@dirrm share/examples/dansguardian/languages/chinesebig5
+@dirrm share/examples/dansguardian/languages/bulgarian
+@dirrm share/examples/dansguardian/languages/arspanish
+@dirrm share/examples/dansguardian/languages
+@dirrm share/examples/dansguardian
diff --git a/www/dansguardian/distinfo b/www/dansguardian/distinfo
new file mode 100644
index 00000000000..293d95cc985
--- /dev/null
+++ b/www/dansguardian/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/02/22 17:13:29 sborrill Exp $
+
+SHA1 (dansguardian-2.8.0.6.source.tar.gz) = 6d82eed13536a64a2f6711fa221756fa0bfe19f0
+RMD160 (dansguardian-2.8.0.6.source.tar.gz) = cf3493b26b4fcd5b366a6fe472e3c6c9e3cfe6d3
+Size (dansguardian-2.8.0.6.source.tar.gz) = 212737 bytes
diff --git a/www/dansguardian/files/dansguardian.sh b/www/dansguardian/files/dansguardian.sh
new file mode 100644
index 00000000000..9aa18dbd29b
--- /dev/null
+++ b/www/dansguardian/files/dansguardian.sh
@@ -0,0 +1,19 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: dansguardian.sh,v 1.1.1.1 2008/02/22 17:13:29 sborrill Exp $
+#
+# PROVIDE: dansguardian
+# REQUIRE: DAEMON LOGIN
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="dansguardian"
+rcvar=$name
+command="/usr/pkg/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+required_files="@PKG_SYSCONFDIR@/${name}/${name}.conf"
+extra_commands="reload"
+
+load_rc_config $name
+run_rc_command "$1"