diff options
author | cy <cy@FreeBSD.org> | 2002-04-08 09:51:57 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2002-04-08 09:51:57 +0800 |
commit | 1961987a14cdc7563861d72f383890be1280186e (patch) | |
tree | a4e38e450600ccb399538ceac30327d5d0c1d314 /www/dansguardian-devel | |
parent | ee6e33e01f1a8c310e4e11ad96d8ef9887cfa296 (diff) | |
download | freebsd-ports-gnome-1961987a14cdc7563861d72f383890be1280186e.tar.gz freebsd-ports-gnome-1961987a14cdc7563861d72f383890be1280186e.tar.zst freebsd-ports-gnome-1961987a14cdc7563861d72f383890be1280186e.zip |
Add dansguardian-devel 2.4.2.1, a fast, simple web content filter
for Squid proxy servers.
PR: 36676
Submitted by: Freddie Cash <fcash@bigfoot.com>
Diffstat (limited to 'www/dansguardian-devel')
-rw-r--r-- | www/dansguardian-devel/Makefile | 46 | ||||
-rw-r--r-- | www/dansguardian-devel/distinfo | 1 | ||||
-rw-r--r-- | www/dansguardian-devel/files/patch-autoconf::fbsd.in | 78 | ||||
-rw-r--r-- | www/dansguardian-devel/files/patch-configure | 11 | ||||
-rw-r--r-- | www/dansguardian-devel/files/patch-dansguardian.8 | 11 | ||||
-rw-r--r-- | www/dansguardian-devel/pkg-comment | 1 | ||||
-rw-r--r-- | www/dansguardian-devel/pkg-descr | 18 | ||||
-rw-r--r-- | www/dansguardian-devel/pkg-message | 7 | ||||
-rw-r--r-- | www/dansguardian-devel/pkg-plist | 24 |
9 files changed, 197 insertions, 0 deletions
diff --git a/www/dansguardian-devel/Makefile b/www/dansguardian-devel/Makefile new file mode 100644 index 000000000000..e1f5cfbfded4 --- /dev/null +++ b/www/dansguardian-devel/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: dansguardian +# Date created: April 02, 2002 +# Whom: Freddie Cash <fcash@bigfoot.com> +# +# $FreeBSD$ +# + +PORTNAME= dansguardian +PORTVERSION= 2.4.2.1 +CATEGORIES= www +MASTER_SITES= # empty, see below +DISTNAME= DansGuardian-2.4.2-1.source + +MAINTAINER= fcash@bigfoot.com + +RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid24:install \ + ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13:install + +WRKSRC= ${WRKDIR}/DansGuardian-2.4.2 +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --prefix=${PREFIX} \ + --bindir=/sbin/ \ + --sysconfdir=/etc/dansguardian/ \ + --sysvdir=/etc/rc.d/ \ + --mandir=/man/ \ + --logdir=/var/log/ \ + --cgidir=/www/cgi-bin/ \ + --piddir=/var/run/ + +DG_URL= http://dansguardian.org/index.php?page=copyright2 + +MAN8= dansguardian.8 + +NO_CDROM= "Commercial download is restricted. Check ${DG_URL} for more info" +NO_PACKAGE= "Redistribution is restricted. Check ${DG_URL} for more info" + +.include <bsd.port.pre.mk> + +.if !(exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})) +FORBIDDEN="Commercial source download is restricted. Please visit and read ${DG_URL} and download ${DISTNAME}${EXTRACT_SUFX} into ${DISTDIR} before running make" +.endif + +post-install: + @${CAT} pkg-message + +.include <bsd.port.post.mk> diff --git a/www/dansguardian-devel/distinfo b/www/dansguardian-devel/distinfo new file mode 100644 index 000000000000..6f751fb15816 --- /dev/null +++ b/www/dansguardian-devel/distinfo @@ -0,0 +1 @@ +MD5 (DansGuardian-2.4.2-1.source.tar.gz) = eaa18fb257362d4b505ee7deb6402f28 diff --git a/www/dansguardian-devel/files/patch-autoconf::fbsd.in b/www/dansguardian-devel/files/patch-autoconf::fbsd.in new file mode 100644 index 000000000000..25f14a14ee3b --- /dev/null +++ b/www/dansguardian-devel/files/patch-autoconf::fbsd.in @@ -0,0 +1,78 @@ +--- autoconf/fbsd.in.orig Sat Apr 6 09:54:21 2002 ++++ autoconf/fbsd.in Sat Apr 6 09:58:55 2002 +@@ -18,7 +18,7 @@ + dansguardian.conf config.cache Makefile logrotation + + PASSVARS = -DPROXYUSER=\"${PROXYUSER}\" +-PASSVARS += -DLOGLOCATION=\"${LOGLOCATION}access.log\" ++PASSVARS += -DLOGLOCATION=\"${LOGLOCATION}dansguardian.log\" + PASSVARS += -DCONFFILELOCATION=\"${CONFFILELOCATION}dansguardian.conf\" + PASSVARS += -DPIDDIR=\"${PIDDIR}\" + +@@ -43,41 +43,37 @@ + @test -d $(CONFFILELOCATION) || install -d $(CONFFILELOCATION) + @test -d $(CGIBINLOCATION) || install -d $(CGIBINLOCATION) + @test -d $(MANUALFILES)man8/ || install -d $(MANUALFILES)man8/ +- @test -d $(LOGLOCATION) || install -d $(LOGLOCATION) +- @test -d $(BINARYLOCATION) || /usr/sbin/install -d $(BINARYLOCATION) +- cp -f ./dansguardian $(BINARYLOCATION)dansguardian +- cp -f ./dansguardian.conf $(CONFFILELOCATION)dansguardian.conf +- cp -f ./bannedphraselist $(CONFFILELOCATION)bannedphraselist +- cp -f ./exceptionphraselist $(CONFFILELOCATION)exceptionphraselist +- cp -f ./weightedphraselist $(CONFFILELOCATION)weightedphraselist +- cp -f ./bannediplist $(CONFFILELOCATION)bannediplist +- cp -f ./banneduserlist $(CONFFILELOCATION)banneduserlist +- cp -f ./bannedextensionlist $(CONFFILELOCATION)bannedextensionlist +- cp -f ./bannedmimetypelist $(CONFFILELOCATION)bannedmimetypelist +- cp -f ./bannedurllist $(CONFFILELOCATION)bannedurllist +- cp -f ./bannedregexpurllist $(CONFFILELOCATION)bannedregexpurllist +- cp -f ./bannedsitelist $(CONFFILELOCATION)bannedsitelist +- cp -f ./exceptionsitelist $(CONFFILELOCATION)exceptionsitelist +- cp -f ./exceptionurllist $(CONFFILELOCATION)exceptionurllist +- cp -f ./exceptionuserlist $(CONFFILELOCATION)exceptionuserlist +- cp -f ./exceptioniplist $(CONFFILELOCATION)exceptioniplist +- cp -f ./pics $(CONFFILELOCATION)pics +- cp -f ./template.html $(CONFFILELOCATION)template.html +- cp -f ./logrotation $(CONFFILELOCATION)logrotation +- cp -f ./dansguardian.bsdv $(SYSVLOCATION)dansguardian.sh +- cp -f ./dansguardian.pl $(CGIBINLOCATION)dansguardian.pl +- chmod o+x $(CGIBINLOCATION)dansguardian.pl +- cp -f ./dansguardian.8.gz $(MANUALFILES)man8/dansguardian.8.gz +- chown -R $(PROXYUSER).$(PROXYGROUP) $(LOGLOCATION) +- chmod -R u+wr $(LOGLOCATION) +- chmod u+wrx $(LOGLOCATION) ++ @test -d $(BINARYLOCATION) || install -d $(BINARYLOCATION) ++ @install -m 755 -o root -g wheel ./dansguardian $(BINARYLOCATION)dansguardian ++ @install -m 644 -o root -g wheel ./dansguardian.conf $(CONFFILELOCATION)dansguardian.conf ++ @install -m 644 -o root -g wheel ./bannedphraselist $(CONFFILELOCATION)bannedphraselist ++ @install -m 644 -o root -g wheel ./exceptionphraselist $(CONFFILELOCATION)exceptionphraselist ++ @install -m 644 -o root -g wheel ./weightedphraselist $(CONFFILELOCATION)weightedphraselist ++ @install -m 644 -o root -g wheel ./bannediplist $(CONFFILELOCATION)bannediplist ++ @install -m 644 -o root -g wheel ./banneduserlist $(CONFFILELOCATION)banneduserlist ++ @install -m 644 -o root -g wheel ./bannedextensionlist $(CONFFILELOCATION)bannedextensionlist ++ @install -m 644 -o root -g wheel ./bannedmimetypelist $(CONFFILELOCATION)bannedmimetypelist ++ @install -m 644 -o root -g wheel ./bannedurllist $(CONFFILELOCATION)bannedurllist ++ @install -m 644 -o root -g wheel ./bannedregexpurllist $(CONFFILELOCATION)bannedregexpurllist ++ @install -m 644 -o root -g wheel ./bannedsitelist $(CONFFILELOCATION)bannedsitelist ++ @install -m 644 -o root -g wheel ./exceptionsitelist $(CONFFILELOCATION)exceptionsitelist ++ @install -m 644 -o root -g wheel ./exceptionurllist $(CONFFILELOCATION)exceptionurllist ++ @install -m 644 -o root -g wheel ./exceptionuserlist $(CONFFILELOCATION)exceptionuserlist ++ @install -m 644 -o root -g wheel ./exceptioniplist $(CONFFILELOCATION)exceptioniplist ++ @install -m 644 -o root -g wheel ./pics $(CONFFILELOCATION)pics ++ @install -m 644 -o root -g wheel ./template.html $(CONFFILELOCATION)template.html ++ @install -m 755 -o root -g wheel ./dansguardian.bsdv $(SYSVLOCATION)dansguardian.sh ++ @install -m 755 -o root -g wheel ./dansguardian.pl $(CGIBINLOCATION)dansguardian.pl ++ @install -m 644 -o root -g wheel ./dansguardian.8 $(MANUALFILES)man8/dansguardian.8 ++ @touch $(LOGLOCATION)dansguardian.log ++ @chown $(PROXYUSER):$(PROXYGROUP) $(LOGLOCATION)dansguardian.log + + uninstall: + rm -f $(BINARYLOCATION)dansguardian + rm -f $(SYSVLOCATION)dansguardian + rm -f $(CGIBINLOCATION)dansguardian.pl + rm -f $(MANUALFILES)man8/dansguardian.8.gz +- rm -fr $(CONFFILELOCATION) ++ rm -f $(CONFFILELOCATION)dansguardian.log + rm -fr $(LOGLOCATION) + + clean: diff --git a/www/dansguardian-devel/files/patch-configure b/www/dansguardian-devel/files/patch-configure new file mode 100644 index 000000000000..a2468bfdf6e0 --- /dev/null +++ b/www/dansguardian-devel/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig Tue Apr 2 12:45:16 2002 ++++ configure Tue Apr 2 12:46:34 2002 +@@ -2663,7 +2663,7 @@ + $extendedecho "SYSVLOCATION = \${PREFIX}$sysvdir" >>Makefile + $extendedecho "CGIBINLOCATION = \${PREFIX}$cgidir" >>Makefile + $extendedecho "MANUALFILES = \${PREFIX}$mandir" >>Makefile +-$extendedecho "LOGLOCATION = \${PREFIX}$logdir" >>Makefile ++$extendedecho "LOGLOCATION = $logdir" >>Makefile + echo "PROXYUSER = $runas_usr" >>Makefile + echo "PROXYGROUP = $runas_grp" >>Makefile + echo "PIDDIR = $piddir" >>Makefile diff --git a/www/dansguardian-devel/files/patch-dansguardian.8 b/www/dansguardian-devel/files/patch-dansguardian.8 new file mode 100644 index 000000000000..757d264c0962 --- /dev/null +++ b/www/dansguardian-devel/files/patch-dansguardian.8 @@ -0,0 +1,11 @@ +--- dansguardian.8.orig Tue Apr 2 12:38:51 2002 ++++ dansguardian.8 Tue Apr 2 12:39:12 2002 +@@ -3,7 +3,7 @@ + .SH NAME + DansGuardian 2 + .SH SYNOPSIS +-/etc/rc.d/init.d/dansguardian [stop|start|status|restart] ++/usr/local/etc/rc.d/dansguardian [stop|start|restart] + .SH DESCRIPTION + A Introduction + diff --git a/www/dansguardian-devel/pkg-comment b/www/dansguardian-devel/pkg-comment new file mode 100644 index 000000000000..20dd2dfe4b92 --- /dev/null +++ b/www/dansguardian-devel/pkg-comment @@ -0,0 +1 @@ +A fast, simple web content filter for Squid proxy servers diff --git a/www/dansguardian-devel/pkg-descr b/www/dansguardian-devel/pkg-descr new file mode 100644 index 000000000000..5157af6dd12e --- /dev/null +++ b/www/dansguardian-devel/pkg-descr @@ -0,0 +1,18 @@ +DansGuardian is a web content filtering proxy for Linux, FreeBSD, OpenBSD, +and Solaris. It relies on a proxy server, such as Squid, for all fetching; +however, DansGuardian should work with any proxy server. + +It filters using multiple methods, including: + - URL and domain filtering + - content phrase filtering + - PICS filtering + - MIME filtering + - file extension filtering + - POST filtering + - user and source IP filtering + +WWW: http://dansguardian.org +WWW: http://backup.dansguardian.org + +- Freddie Cash +fcash@bigfoot.com diff --git a/www/dansguardian-devel/pkg-message b/www/dansguardian-devel/pkg-message new file mode 100644 index 000000000000..dfe9bbec8902 --- /dev/null +++ b/www/dansguardian-devel/pkg-message @@ -0,0 +1,7 @@ +===> Please Note: + +******************************************************************************* + This port has placed a log file in /var/log/ named dansguardian.log + This log file can get quite large. Please read the newsyslog(8) man + page for instructions on setting up log rotation and compression. +******************************************************************************* diff --git a/www/dansguardian-devel/pkg-plist b/www/dansguardian-devel/pkg-plist new file mode 100644 index 000000000000..7abf13118ef3 --- /dev/null +++ b/www/dansguardian-devel/pkg-plist @@ -0,0 +1,24 @@ +@exec mkdir -p etc/dansguardian +etc/dansguardian/bannedextensionlist +etc/dansguardian/bannediplist +etc/dansguardian/bannedmimetypelist +etc/dansguardian/bannedphraselist +etc/dansguardian/bannedregexpurllist +etc/dansguardian/bannedsitelist +etc/dansguardian/bannedurllist +etc/dansguardian/banneduserlist +etc/dansguardian/dansguardian.conf +etc/dansguardian/exceptioniplist +etc/dansguardian/exceptionphraselist +etc/dansguardian/exceptionsitelist +etc/dansguardian/exceptionurllist +etc/dansguardian/exceptionuserlist +etc/dansguardian/pics +etc/dansguardian/template.html +etc/dansguardian/weightedphraselist +etc/rc.d/dansguardian.sh +sbin/dansguardian +www/cgi-bin/dansguardian.pl +@dirrm etc/dansguardian +@cwd / +var/log/dansguardian.log |