diff options
author | edwin <edwin@FreeBSD.org> | 2005-12-28 07:02:10 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2005-12-28 07:02:10 +0800 |
commit | 23307558a9c1d41a73eaec4a76d79dca0c6873f8 (patch) | |
tree | 2fa44851b9e2d5e073ad61f1a3fc55b6ec1d8960 /www | |
parent | 632f94365edef3a477d775f673f62d4d376aacb5 (diff) | |
download | freebsd-ports-gnome-23307558a9c1d41a73eaec4a76d79dca0c6873f8.tar.gz freebsd-ports-gnome-23307558a9c1d41a73eaec4a76d79dca0c6873f8.tar.zst freebsd-ports-gnome-23307558a9c1d41a73eaec4a76d79dca0c6873f8.zip |
port-update: www/dansguardian-devel to 2.9.3.2
Update to the latest development version of DansGuardian.
Clean up the port Makefile, add Apache as an optional
dependency, and use the new RCng rcorder framework. Tested
on the two systems listed above. Compiles, installs,
uninstalls, and runs correctly, although I am not able to
test all the new auth plugins.
PR: ports/90827
Submitted by: Freddie Cash <fcash@sd73.bc.ca>
Diffstat (limited to 'www')
-rw-r--r-- | www/dansguardian-devel/Makefile | 58 | ||||
-rw-r--r-- | www/dansguardian-devel/distinfo | 5 | ||||
-rw-r--r-- | www/dansguardian-devel/files/dansguardian.sh.in (renamed from www/dansguardian-devel/files/dansguardian.sh) | 12 | ||||
-rw-r--r-- | www/dansguardian-devel/files/patch-Makefile.in | 17 | ||||
-rw-r--r-- | www/dansguardian-devel/files/patch-doc::dansguardian.8 | 20 | ||||
-rw-r--r-- | www/dansguardian-devel/pkg-plist | 63 |
6 files changed, 114 insertions, 61 deletions
diff --git a/www/dansguardian-devel/Makefile b/www/dansguardian-devel/Makefile index 13c7bcc65856..e8457d8ef93b 100644 --- a/www/dansguardian-devel/Makefile +++ b/www/dansguardian-devel/Makefile @@ -6,7 +6,7 @@ # PORTNAME= dansguardian -PORTVERSION= 2.9.0.1 +PORTVERSION= 2.9.3.2 CATEGORIES= www MASTER_SITES= # empty, see below DISTNAME= ${PORTNAME}-${PORTVERSION} @@ -14,16 +14,14 @@ DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= fcash@sd73.bc.ca COMMENT= A fast, feature-rich web content filter for Squid proxy servers -LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre -RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid \ - ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13 - -#IGNORE= "currently at lower revision than www/dansguardian" +LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre \ + iconv.3:${PORTSDIR}/converters/libiconv + +RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid USE_GCC= 3.4+ -USE_RC_SUBR= yes -RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} +USE_RC_SUBR= dansguardian.sh CONFLICTS= dansguardian-2.[678]* LATEST_LINK= dansguardian-devel @@ -35,29 +33,29 @@ CONFIGURE_ARGS= --localstatedir=/var \ MAN8= dansguardian.8 -OPTIONS= DG_CLAMAV "Enable ClamAV support (libclamav)" off \ - DG_CLAMD "Enable ClamAV daemon support (clamd)" off \ - DG_ICAP "Enable ICAP AV content scanner support" off \ - DG_KASP "Enable Kaspersky AV support" off \ - DG_DMGR "Enable the fancy download manager" off -# DG_PHRASELISTS "Install new phraselists. (Overwrites existing.)" off +OPTIONS= DG_APACHE "Enable Apache support" on \ + DG_CLAMAV "Enable ClamAV support (libclamav)" off \ + DG_CLAMD "Enable ClamAV daemon support (clamd)" off \ + DG_ICAP "Enable ICAP AV content scanner support" off \ + DG_KASP "Enable Kaspersky AV support" off \ + DG_DMGR "Enable the fancy download manager" off DG_URL= http://dansguardian.org/index.php?page=copyright2 CONFDIR= ${PREFIX}/etc/dansguardian NO_CDROM= "Commercial download is restricted. Check ${DG_URL} for more info" NO_PACKAGE= "Redistribution is restricted. Check ${DG_URL} for more info" -RESTRICTED= ${NO_PACKAGE} +RESTRICTED= "${NO_PACKAGE}" .include <bsd.port.pre.mk> -.if defined(WITH_DG_CLAMAV) && defined(WITH_DG_CLAMD) -BROKEN= "You have select both ClamAV integration options, which is known to cause issues. Please select only one of the ClamAV options. Run make config to change the options" +.if defined(WITH_DG_APACHE) +USE_APACHE= 1.3+ .endif .if defined(WITH_DG_CLAMAV) CONFIGURE_ARGS+= --enable-clamav=yes -LIB_DEPENDS= clamav.1:${PORTSDIR}/security/clamav:install +LIB_DEPENDS+= clamav.1:${PORTSDIR}/security/clamav:install .endif .if defined(WITH_DG_CLAMD) @@ -82,31 +80,7 @@ CONFIGURE_ARGS+= --enable-fancydm IGNORE="Commercial source download is restricted. Please visit and read ${DG_URL} and download ${DISTNAME}${EXTRACT_SUFX} into ${DISTDIR} before running make" .endif -post-extract: - @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ - ${FILESDIR}/dansguardian.sh > ${WRKSRC}/dansguardian.sh - -pre-install: -# Configure pkg-plist based on whether phraselists are to be installed or not -.if defined(WITH_DG_PHRASELISTS) -PLIST_SUB= PHRASELISTS="" -.else -PLIST_SUB= PHRASELISTS="@comment " -.endif - post-install: -# Check whether to install default phraselists -.if defined(WITH_DG_PHRASELISTS) - @${ECHO_MSG} "===> Installing default phraselists into ${CONFDIR}/phraselists" - @${CP} -R ${WRKSRC}/phraselists ${CONFDIR} -.else - @${ECHO_MSG} "===> Skipping installation of phraselists." -.endif - -# Install startup script - @${ECHO_MSG} "===> Installing startup script into ${PREFIX}/etc/rc.d" - @${INSTALL_SCRIPT} ${WRKSRC}/dansguardian.sh ${PREFIX}/etc/rc.d/start-dg.sh - # Display post-install message @${CAT} pkg-message diff --git a/www/dansguardian-devel/distinfo b/www/dansguardian-devel/distinfo index 1f5b2b3662b2..8eff9a5ad583 100644 --- a/www/dansguardian-devel/distinfo +++ b/www/dansguardian-devel/distinfo @@ -1,2 +1,3 @@ -MD5 (dansguardian-2.9.0.1.tar.gz) = 116546bd776adf18cbf148b29037b903 -SIZE (dansguardian-2.9.0.1.tar.gz) = 338417 +MD5 (dansguardian-2.9.3.2.tar.gz) = 9683eab32ee99f270213c394713de171 +SHA256 (dansguardian-2.9.3.2.tar.gz) = c6ac384e9a9205d37f350c1a803cc8c04594e486868b40ebcd8d36405aaef605 +SIZE (dansguardian-2.9.3.2.tar.gz) = 402793 diff --git a/www/dansguardian-devel/files/dansguardian.sh b/www/dansguardian-devel/files/dansguardian.sh.in index f0c7c4473faf..8cf3060b3155 100644 --- a/www/dansguardian-devel/files/dansguardian.sh +++ b/www/dansguardian-devel/files/dansguardian.sh.in @@ -1,9 +1,9 @@ #!/bin/sh -# $FreeBSD$ +# $FreeBSD: /tmp/pcvs/ports/www/dansguardian-devel/files/Attic/dansguardian.sh.in,v 1.1 2005-12-27 23:02:10 edwin Exp $ # PROVIDE: dansguardian -# REQUIRE: DAEMON squid -# BEFORE: LOGIN +# REQUIRE: NETWORKING SERVERS squid +# BEFORE: DAEMON # KEYWORD: FreeBSD shutdown # Define these dansguardian_* variables in one of these files: @@ -13,9 +13,9 @@ # # DO NOT CHANGE THESE DEFAULT VALUES HERE # -dansguardian_enable="NO" -dansguardian_flags="" -dansguardian_pidfile="/var/run/dansguardian.pid" +dansguardian_enable=${dansguardian_enable:-"NO"} +dansguardian_flags=${dansguardian_flags:-""} +dansguardian_pidfile=${dansguardian_pidfile:-"/var/run/dansguardian.pid"} . %%RC_SUBR%% diff --git a/www/dansguardian-devel/files/patch-Makefile.in b/www/dansguardian-devel/files/patch-Makefile.in new file mode 100644 index 000000000000..620abcd36f09 --- /dev/null +++ b/www/dansguardian-devel/files/patch-Makefile.in @@ -0,0 +1,17 @@ +--- Makefile.in.orig Fri Dec 16 09:25:29 2005 ++++ Makefile.in Fri Dec 16 09:25:46 2005 +@@ -615,10 +615,10 @@ + + + install-data-local: +- if ! test -d "$(DESTDIR)$(DGLOGLOCATION)"; then \ +- $(mkinstalldirs) $(DESTDIR)$(DGLOGLOCATION) && \ +- chown -R $(DGPROXYUSER):$(DGPROXYGROUP) $(DESTDIR)$(DGLOGLOCATION); \ +- fi ++# if ! test -d "$(DESTDIR)$(DGLOGLOCATION)"; then \ ++# $(mkinstalldirs) $(DESTDIR)$(DGLOGLOCATION) && \ ++# chown -R $(DGPROXYUSER):$(DGPROXYGROUP) $(DESTDIR)$(DGLOGLOCATION); \ ++# fi + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/www/dansguardian-devel/files/patch-doc::dansguardian.8 b/www/dansguardian-devel/files/patch-doc::dansguardian.8 new file mode 100644 index 000000000000..8b25c37f758c --- /dev/null +++ b/www/dansguardian-devel/files/patch-doc::dansguardian.8 @@ -0,0 +1,20 @@ +--- doc/dansguardian.8.orig Tue Dec 20 16:21:10 2005 ++++ doc/dansguardian.8 Tue Dec 20 16:21:37 2005 +@@ -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.sh [stop|start|status|restart] + .SH DESCRIPTION + A Introduction + +@@ -14,7 +14,7 @@ + The configurable logging produces a log in an easy to read format which has the option to only log the text-based pages, thus significantly reducing redundant information such as every image on a page. + DansGuardian is under continuous development and so it is best to visit the web site for the latest information. + +-(1) Technically DansGuardian is more of a filtering pass-through than a true proxy - but don't let that worry you! ++(1) Technically, DansGuardian is more of a filtering pass-through than a true proxy - but don't let that worry you! + + (2) DansGuardian should work with any proxy, not just Squid. For example, it is known to work with Oops. + diff --git a/www/dansguardian-devel/pkg-plist b/www/dansguardian-devel/pkg-plist index 1ccadaeac9dc..b45fdca20c30 100644 --- a/www/dansguardian-devel/pkg-plist +++ b/www/dansguardian-devel/pkg-plist @@ -1,7 +1,11 @@ @exec mkdir -p etc/dansguardian +@exec mkdir -p etc/dansguardian/authplugins @exec mkdir -p etc/dansguardian/contentscanners @exec mkdir -p etc/dansguardian/downloadmanagers @exec mkdir -p etc/dansguardian/lists +@exec mkdir -p etc/dansguardian/lists/authplugins +@exec mkdir -p etc/dansguardian/lists/blacklists +@exec mkdir -p etc/dansguardian/lists/blacklists/ads @exec mkdir -p etc/dansguardian/lists/contentscanners @exec mkdir -p etc/dansguardian/lists/phraselists @exec mkdir -p etc/dansguardian/lists/phraselists/badwords @@ -29,7 +33,6 @@ @exec mkdir -p etc/dansguardian/lists/phraselists/webmail @exec mkdir -p %%DATADIR%% @exec mkdir -p %%DATADIR%%/languages -@exec mkdir -p %%DATADIR%%/languages/arspanish @exec mkdir -p %%DATADIR%%/languages/bulgarian @exec mkdir -p %%DATADIR%%/languages/chinesebig5 @exec mkdir -p %%DATADIR%%/languages/chinesegb2312 @@ -39,63 +42,90 @@ @exec mkdir -p %%DATADIR%%/languages/french @exec mkdir -p %%DATADIR%%/languages/german @exec mkdir -p %%DATADIR%%/languages/hebrew +@exec mkdir -p %%DATADIR%%/languages/hungarian @exec mkdir -p %%DATADIR%%/languages/indonesian @exec mkdir -p %%DATADIR%%/languages/italian @exec mkdir -p %%DATADIR%%/languages/lithuanian -@exec mkdir -p %%DATADIR%%/languages/mxspanish @exec mkdir -p %%DATADIR%%/languages/polish @exec mkdir -p %%DATADIR%%/languages/portuguese +@exec mkdir -p %%DATADIR%%/languages/ptbrazilian @exec mkdir -p %%DATADIR%%/languages/russian-1251 @exec mkdir -p %%DATADIR%%/languages/russian-koi8-r @exec mkdir -p %%DATADIR%%/languages/slovak +@exec mkdir -p %%DATADIR%%/languages/spanish @exec mkdir -p %%DATADIR%%/languages/swedish @exec mkdir -p %%DATADIR%%/languages/turkish @exec mkdir -p %%DATADIR%%/languages/ukenglish @exec mkdir -p %%DATADIR%%/scripts sbin/dansguardian -%%DATADIR%%/languages/arspanish/messages -%%DATADIR%%/languages/arspanish/template.html +%%DATADIR%%/languages/spanish/messages +%%DATADIR%%/languages/spanish/fancydmtemplate.html +%%DATADIR%%/languages/spanish/template.html %%DATADIR%%/languages/czech/messages +%%DATADIR%%/languages/czech/fancydmtemplate.html %%DATADIR%%/languages/czech/template.html +%%DATADIR%%/languages/hungarian/messages +%%DATADIR%%/languages/hungarian/fancydmtemplate.html +%%DATADIR%%/languages/hungarian/template.html +%%DATADIR%%/languages/ptbrazilian/messages +%%DATADIR%%/languages/ptbrazilian/fancydmtemplate.html +%%DATADIR%%/languages/ptbrazilian/template.html %%DATADIR%%/languages/hebrew/messages +%%DATADIR%%/languages/hebrew/fancydmtemplate.html %%DATADIR%%/languages/hebrew/template.html %%DATADIR%%/languages/turkish/messages +%%DATADIR%%/languages/turkish/fancydmtemplate.html %%DATADIR%%/languages/turkish/template.html %%DATADIR%%/languages/bulgarian/messages +%%DATADIR%%/languages/bulgarian/fancydmtemplate.html %%DATADIR%%/languages/bulgarian/template.html %%DATADIR%%/languages/danish/messages +%%DATADIR%%/languages/danish/fancydmtemplate.html %%DATADIR%%/languages/danish/template.html %%DATADIR%%/languages/indonesian/messages +%%DATADIR%%/languages/indonesian/fancydmtemplate.html %%DATADIR%%/languages/indonesian/template.html %%DATADIR%%/languages/russian-1251/messages +%%DATADIR%%/languages/russian-1251/fancydmtemplate.html %%DATADIR%%/languages/russian-1251/template.html %%DATADIR%%/languages/ukenglish/messages +%%DATADIR%%/languages/ukenglish/fancydmtemplate.html %%DATADIR%%/languages/ukenglish/template.html %%DATADIR%%/languages/chinesebig5/messages +%%DATADIR%%/languages/chinesebig5/fancydmtemplate.html %%DATADIR%%/languages/chinesebig5/template.html %%DATADIR%%/languages/dutch/messages +%%DATADIR%%/languages/dutch/fancydmtemplate.html %%DATADIR%%/languages/dutch/template.html %%DATADIR%%/languages/italian/messages +%%DATADIR%%/languages/italian/fancydmtemplate.html %%DATADIR%%/languages/italian/template.html -%%DATADIR%%/languages/mxspanish/messages -%%DATADIR%%/languages/mxspanish/template.html %%DATADIR%%/languages/russian-koi8-r/messages +%%DATADIR%%/languages/russian-koi8-r/fancydmtemplate.html %%DATADIR%%/languages/russian-koi8-r/template.html %%DATADIR%%/languages/chinesegb2312/messages +%%DATADIR%%/languages/chinesegb2312/fancydmtemplate.html %%DATADIR%%/languages/chinesegb2312/template.html %%DATADIR%%/languages/french/messages +%%DATADIR%%/languages/french/fancydmtemplate.html %%DATADIR%%/languages/french/template.html %%DATADIR%%/languages/lithuanian/messages +%%DATADIR%%/languages/lithuanian/fancydmtemplate.html %%DATADIR%%/languages/lithuanian/template.html %%DATADIR%%/languages/polish/messages +%%DATADIR%%/languages/polish/fancydmtemplate.html %%DATADIR%%/languages/polish/template.html %%DATADIR%%/languages/slovak/messages +%%DATADIR%%/languages/slovak/fancydmtemplate.html %%DATADIR%%/languages/slovak/template.html %%DATADIR%%/languages/german/messages +%%DATADIR%%/languages/german/fancydmtemplate.html %%DATADIR%%/languages/german/template.html %%DATADIR%%/languages/portuguese/messages +%%DATADIR%%/languages/portuguese/fancydmtemplate.html %%DATADIR%%/languages/portuguese/template.html %%DATADIR%%/languages/swedish/messages +%%DATADIR%%/languages/swedish/fancydmtemplate.html %%DATADIR%%/languages/swedish/template.html %%DATADIR%%/transparent1x1.gif %%DATADIR%%/dansguardian.pl @@ -104,6 +134,13 @@ sbin/dansguardian %%DATADIR%%/scripts/bsd-init %%DATADIR%%/scripts/solaris-init %%DATADIR%%/scripts/systemv-init +etc/dansguardian/authplugins/ident.conf +etc/dansguardian/authplugins/ip.conf +etc/dansguardian/authplugins/ntlm.conf +etc/dansguardian/authplugins/proxy.conf +etc/dansguardian/lists/authplugins/ipgroups +etc/dansguardian/lists/blacklists/ads/domains +etc/dansguardian/lists/blacklists/ads/urls etc/dansguardian/lists/phraselists/badwords/weighted_dutch etc/dansguardian/lists/phraselists/badwords/weighted_french etc/dansguardian/lists/phraselists/badwords/weighted_german @@ -119,6 +156,7 @@ etc/dansguardian/lists/phraselists/gambling/banned_portuguese etc/dansguardian/lists/phraselists/games/weighted etc/dansguardian/lists/phraselists/goodphrases/weighted_general etc/dansguardian/lists/phraselists/goodphrases/weighted_general_danish +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/goodphrases/exception @@ -146,6 +184,7 @@ etc/dansguardian/lists/phraselists/pornography/weighted_french etc/dansguardian/lists/phraselists/pornography/weighted_german etc/dansguardian/lists/phraselists/pornography/weighted_italian etc/dansguardian/lists/phraselists/pornography/weighted_portuguese +etc/dansguardian/lists/phraselists/pornography/weighted_russian etc/dansguardian/lists/phraselists/pornography/weighted_spanish etc/dansguardian/lists/phraselists/pornography/banned etc/dansguardian/lists/phraselists/pornography/banned_portuguese @@ -163,12 +202,10 @@ etc/dansguardian/lists/bannedmimetypelist etc/dansguardian/lists/bannedregexpurllist etc/dansguardian/lists/bannedsitelist etc/dansguardian/lists/bannedurllist -etc/dansguardian/lists/banneduserlist etc/dansguardian/lists/contentregexplist etc/dansguardian/lists/exceptioniplist etc/dansguardian/lists/exceptionsitelist etc/dansguardian/lists/exceptionurllist -etc/dansguardian/lists/exceptionuserlist etc/dansguardian/lists/filtergroupslist etc/dansguardian/lists/greysitelist etc/dansguardian/lists/greyurllist @@ -191,9 +228,7 @@ etc/dansguardian/contentscanners/kavav.conf etc/dansguardian/contentscanners/kavdscan.conf etc/dansguardian/dansguardian.conf etc/dansguardian/dansguardianf1.conf -etc/rc.d/start-dg.sh @dirrm %%DATADIR%%/scripts -@dirrm %%DATADIR%%/languages/arspanish @dirrm %%DATADIR%%/languages/bulgarian @dirrm %%DATADIR%%/languages/chinesebig5 @dirrm %%DATADIR%%/languages/chinesegb2312 @@ -203,15 +238,17 @@ etc/rc.d/start-dg.sh @dirrm %%DATADIR%%/languages/french @dirrm %%DATADIR%%/languages/german @dirrm %%DATADIR%%/languages/hebrew +@dirrm %%DATADIR%%/languages/hungarian @dirrm %%DATADIR%%/languages/indonesian @dirrm %%DATADIR%%/languages/italian @dirrm %%DATADIR%%/languages/lithuanian -@dirrm %%DATADIR%%/languages/mxspanish @dirrm %%DATADIR%%/languages/polish @dirrm %%DATADIR%%/languages/portuguese +@dirrm %%DATADIR%%/languages/ptbrazilian @dirrm %%DATADIR%%/languages/russian-1251 @dirrm %%DATADIR%%/languages/russian-koi8-r @dirrm %%DATADIR%%/languages/slovak +@dirrm %%DATADIR%%/languages/spanish @dirrm %%DATADIR%%/languages/swedish @dirrm %%DATADIR%%/languages/turkish @dirrm %%DATADIR%%/languages/ukenglish @@ -242,9 +279,13 @@ etc/rc.d/start-dg.sh @dirrm etc/dansguardian/lists/phraselists/weapons @dirrm etc/dansguardian/lists/phraselists/webmail @dirrm etc/dansguardian/lists/phraselists +@dirrm etc/dansguardian/lists/blacklists/ads +@dirrm etc/dansguardian/lists/blacklists +@dirrm etc/dansguardian/lists/authplugins @dirrm etc/dansguardian/lists @dirrm etc/dansguardian/downloadmanagers @dirrm etc/dansguardian/contentscanners +@dirrm etc/dansguardian/authplugins @dirrm etc/dansguardian @unexec echo If permanently deleting this package, /var/log/dansguardian.log must be removed manually @unexec echo If permanently deleting this package, custom configuration files must be removed manually |