pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/dansguardian DansGuardian is a web content filteri...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/92c48e999568
branches:  trunk
changeset: 538988:92c48e999568
user:      sborrill <sborrill%pkgsrc.org@localhost>
date:      Fri Feb 22 17:13:29 2008 +0000

description:
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:

 www/dansguardian/DESCR                 |   14 ++
 www/dansguardian/MESSAGE               |   20 +++
 www/dansguardian/Makefile              |  206 +++++++++++++++++++++++++++++++++
 www/dansguardian/PLIST                 |  176 ++++++++++++++++++++++++++++
 www/dansguardian/distinfo              |    5 +
 www/dansguardian/files/dansguardian.sh |   19 +++
 6 files changed, 440 insertions(+), 0 deletions(-)

diffs (truncated from 464 to 300 lines):

diff -r fb3a51ba45ef -r 92c48e999568 www/dansguardian/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/dansguardian/DESCR    Fri Feb 22 17:13:29 2008 +0000
@@ -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 -r fb3a51ba45ef -r 92c48e999568 www/dansguardian/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/dansguardian/MESSAGE  Fri Feb 22 17:13:29 2008 +0000
@@ -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 -r fb3a51ba45ef -r 92c48e999568 www/dansguardian/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/dansguardian/Makefile Fri Feb 22 17:13:29 2008 +0000
@@ -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@localhost
+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 -r fb3a51ba45ef -r 92c48e999568 www/dansguardian/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/dansguardian/PLIST    Fri Feb 22 17:13:29 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index