From owner-freebsd-ports Mon Feb 11 10:30:21 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2F87237B402 for ; Mon, 11 Feb 2002 10:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1BIU1m48371; Mon, 11 Feb 2002 10:30:01 -0800 (PST) (envelope-from gnats) Received: from lug.kamloops.net (lug2.kamloops.net [209.52.173.193]) by hub.freebsd.org (Postfix) with ESMTP id C766C37B404 for ; Mon, 11 Feb 2002 10:20:53 -0800 (PST) Received: from fcash by lug.kamloops.net with local (Exim 3.16 #1) id 16aNLo-0002m9-00 for FreeBSD-gnats-submit@freebsd.org; Mon, 11 Feb 2002 12:47:00 -0800 Message-Id: Date: Mon, 11 Feb 2002 12:47:00 -0800 From: fcash@lug.kamloops.net To: FreeBSD-gnats-submit@freebsd.org Subject: ports/34840: New port: DansGuardian -- fast web content filter for Squid proxy servers Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34840 >Category: ports >Synopsis: New port: DansGuardian -- fast web content filter for Squid proxy servers. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Feb 11 10:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Freddie Cash >Release: FreeBSD 4.5-RELEASE i386 >Organization: PhoenxiTek Consulting >Environment: System: FreeBSD phoenix.xtest.sd73.bc.ca 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Fri Feb 8 08:21:38 PST 2002 root@phoenix.sd73.bc.ca:/usr/src/sys/compile/PHOENIX-I i386 >Description: DansGuardian is a true web content filter that uses multiple layers of filtering. HTTP requests are filtered based on: URL and/or domain, phrases and/or keywords, MIME-type, file extension, PICS Ratings, and username. Requires Squid to perform the actual page fetchin. WWW: http://dansguardian.org >How-To-Repeat: >Fix: --- dansguardian.port begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /ports/www/dansguardian/ # /ports/www/dansguardian/Makefile # /ports/www/dansguardian/pkg-comment # /ports/www/dansguardian/pkg-descr # /ports/www/dansguardian/distinfo # /ports/www/dansguardian/files # /ports/www/dansguardian/files/access.log # /ports/www/dansguardian/files/Makefile-patch # /ports/www/dansguardian/files/conf-patch # /ports/www/dansguardian/files/script-patch # /ports/www/dansguardian/files/man-patch # /ports/www/dansguardian/files/logrotation # /ports/www/dansguardian/pkg-plist # echo c - /ports/www/dansguardian/ mkdir -p /ports/www/dansguardian/ > /dev/null 2>&1 echo x - /ports/www/dansguardian/Makefile sed 's/^X//' >/ports/www/dansguardian/Makefile << 'END-of-/ports/www/dansguardian/Makefile' X# New ports collection makefile for: dansguardian X# Date created: February 08, 2002 X# Whom: Freddie Cash X# X# $FreeBSD$ X# X XPORTNAME= dansguardian XPORTVERSION= 2.2.4 XCATEGORIES= www XMASTER_SITES= http://backup.dansguardian.org/downloads/2/Stable/ \ X http://dansguardian.org/downloads/2/Stable/ XDISTNAME= DansGuardian-2.2.4-0.source X#EXTRACT_SUFX= .tar.gz X XMAINTAINER= fcash@bigfoot.com X XRUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid24:install \ X ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13:install X XWRKSRC= ${WRKDIR}/DansGuardian-2.2.4 XGNU_CONFIGURE= yes XCONFIGURE_ARGS+= --bindir=${PREFIX}/sbin/ --sysconfdir=${PREFIX}/etc/dansguardian/ --sysvdir=${PREFIX}/etc/rc.d/ --mandir=${PREFIX}/man/ --logdir=${PREFIX}/var/log/dansguardian/ --cgidir=${PREFIX}/www/cgi-bin.default/ --piddir=/var/run/ X XMAN8= dansguardian.8 XMANDIRS= ${PREFIX}/man XMANCOMPRESSED= yes X XRESTRICTED= "Commercial download is restricted. Check http://dansguardian.org/?page=copyright2 for more info." X X.include X X.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) XIGNORE="You must manually download ${DISTNAME}${EXTRACT_SUFX} from one of ${MASTER_SITES} and place it in ${DISTDIR} before you can run make to install." X.endif X Xpost-configure: X cd ${WRKSRC}/autoconf ; ${CAT} platform.h | ${SED} "s/\/usr\/local\/usr\/local/\/usr\/local/" > platform.h X cd ${WRKSRC} ; ${PATCH} < ${PATCHDIR}/Makefile-patch X cd ${WRKSRC} ; ${PATCH} < ${PATCHDIR}/conf-patch X cd ${WRKSRC} ; ${PATCH} < ${PATCHDIR}/man-patch X cd ${WRKSRC} ; ${PATCH} < ${PATCHDIR}/script-patch X ${CP} -f ${PATCHDIR}/logrotation ${PATCHDIR}/access.log ${WRKSRC}/ Xpost-install: X strip ${PREFIX}/sbin/dansguardian X X.include END-of-/ports/www/dansguardian/Makefile echo x - /ports/www/dansguardian/pkg-comment sed 's/^X//' >/ports/www/dansguardian/pkg-comment << 'END-of-/ports/www/dansguardian/pkg-comment' XA fast, simple web content filter for Squid proxy servers END-of-/ports/www/dansguardian/pkg-comment echo x - /ports/www/dansguardian/pkg-descr sed 's/^X//' >/ports/www/dansguardian/pkg-descr << 'END-of-/ports/www/dansguardian/pkg-descr' XDansGuardian is a web content filtering proxy pass-through Xfor Linux, FreeBSD, OpenBSD, and Solaris. It relies on a proxy Xserver for all fetching (currenly uses Squid). It filters using Xmultiple methods: URL and domain filtering, content Xphrase filtering, PICS filtering, MIME filtering, file Xextension filtering, and POST filtering. X XFor more info, check the DansGuardian website: XWWW: http://www.dansguardian.org X X- Freddie Cash Xfcash@bigfoot.com END-of-/ports/www/dansguardian/pkg-descr echo x - /ports/www/dansguardian/distinfo sed 's/^X//' >/ports/www/dansguardian/distinfo << 'END-of-/ports/www/dansguardian/distinfo' XMD5 (DansGuardian-2.2.4-0.source.tar.gz) = d06615be1f08404273222a245d45b108 END-of-/ports/www/dansguardian/distinfo echo c - /ports/www/dansguardian/files mkdir -p /ports/www/dansguardian/files > /dev/null 2>&1 echo x - /ports/www/dansguardian/files/access.log sed 's/^X//' >/ports/www/dansguardian/files/access.log << 'END-of-/ports/www/dansguardian/files/access.log' END-of-/ports/www/dansguardian/files/access.log echo x - /ports/www/dansguardian/files/Makefile-patch sed 's/^X//' >/ports/www/dansguardian/files/Makefile-patch << 'END-of-/ports/www/dansguardian/files/Makefile-patch' X--- work/DansGuardian-2.2.4/Makefile Sat Feb 9 20:02:32 2002 X+++ files/Makefile Sat Feb 9 19:57:36 2002 X@@ -4,13 +4,12 @@ X #particular distribution or if I have got anything wrong. X #Don't forget the trailing / X X-PREFIX = /usr/local X-CONFFILELOCATION = ${PREFIX}/usr/local/etc/dansguardian/ X-BINARYLOCATION = ${PREFIX}/usr/local/sbin/ X-SYSVLOCATION = ${PREFIX}/usr/local/etc/rc.d/ X-CGIBINLOCATION = ${PREFIX}/usr/local/www/cgi-bin.default/ X-MANUALFILES = ${PREFIX}/usr/local/man/ X-LOGLOCATION = ${PREFIX}/usr/local/var/log/dansguardian/ X+CONFFILELOCATION = /usr/local/etc/dansguardian/ X+BINARYLOCATION = /usr/local/sbin/ X+SYSVLOCATION = /usr/local/etc/rc.d/ X+CGIBINLOCATION = /usr/local/www/cgi-bin.default/ X+MANUALFILES = /usr/local/man/ X+LOGLOCATION = /usr/local/var/log/dansguardian/ X PROXYUSER = nobody X PROXYGROUP = nobody X PIDDIR = /var/run/ X@@ -60,23 +59,23 @@ X @test -d $(MANUALFILES)man8/ || install -d $(MANUALFILES)man8/ X @test -d $(LOGLOCATION) || install -d $(LOGLOCATION) X @test -d $(BINARYLOCATION) || /usr/sbin/install -d $(BINARYLOCATION) X- cp -f ./dansguardian $(BINARYLOCATION)dansguardian X- cp -f ./dansguardian.conf $(CONFFILELOCATION)dansguardian.conf X- cp -f ./bannedphraselist $(CONFFILELOCATION)bannedphraselist X- cp -f ./bannedextensionlist $(CONFFILELOCATION)bannedextensionlist X- cp -f ./bannedmimetypelist $(CONFFILELOCATION)bannedmimetypelist X- cp -f ./bannedurllist $(CONFFILELOCATION)bannedurllist X- cp -f ./bannedregexpurllist $(CONFFILELOCATION)bannedregexpurllist X- cp -f ./bannedsitelist $(CONFFILELOCATION)bannedsitelist X- cp -f ./exceptionsitelist $(CONFFILELOCATION)exceptionsitelist X- cp -f ./exceptionuserlist $(CONFFILELOCATION)exceptionuserlist X- cp -f ./exceptioniplist $(CONFFILELOCATION)exceptioniplist X- cp -f ./pics $(CONFFILELOCATION)pics X- cp -f ./logrotation $(CONFFILELOCATION)logrotation X- cp -f ./dansguardian.bsdv $(SYSVLOCATION)dansguardian.sh X- cp -f ./dansguardian.pl $(CGIBINLOCATION)dansguardian.pl X- chmod o+x $(CGIBINLOCATION)dansguardian.pl X- cp -f ./dansguardian.8.gz $(MANUALFILES)man8/dansguardian.8.gz X+ install -o nobody -g nobody -m 755 dansguardian $(BINARYLOCATION)dansguardian X+ install -o nobody -g nobody -m 644 dansguardian.conf $(CONFFILELOCATION)dansguardian.conf X+ install -o nobody -g nobody -m 644 bannedphraselist $(CONFFILELOCATION)bannedphraselist X+ install -o nobody -g nobody -m 644 bannedextensionlist $(CONFFILELOCATION)bannedextensionlist X+ install -o nobody -g nobody -m 644 bannedmimetypelist $(CONFFILELOCATION)bannedmimetypelist X+ install -o nobody -g nobody -m 644 bannedurllist $(CONFFILELOCATION)bannedurllist X+ install -o nobody -g nobody -m 644 bannedregexpurllist $(CONFFILELOCATION)bannedregexpurllist X+ install -o nobody -g nobody -m 644 bannedsitelist $(CONFFILELOCATION)bannedsitelist X+ install -o nobody -g nobody -m 644 exceptionsitelist $(CONFFILELOCATION)exceptionsitelist X+ install -o nobody -g nobody -m 644 exceptionuserlist $(CONFFILELOCATION)exceptionuserlist X+ install -o nobody -g nobody -m 644 exceptioniplist $(CONFFILELOCATION)exceptioniplist X+ install -o nobody -g nobody -m 644 pics $(CONFFILELOCATION)pics X+ install -o nobody -g nobody -m 755 logrotation $(BINARYLOCATION)dg-logrotate X+ install -o nobody -g nobody -m 755 dansguardian.bsdv $(SYSVLOCATION)dansguardian.sh X+ install -o nobody -g nobody -m 755 dansguardian.pl $(CGIBINLOCATION)dansguardian.pl X+ install -o nobody -g nobody -m 644 dansguardian.8.gz $(MANUALFILES)man8/dansguardian.8.gz X+ install -o nobody -g nobody -m 644 access.log ${LOGLOCATION}/access.log X chown -R $(PROXYUSER).$(PROXYGROUP) $(LOGLOCATION) X chmod -R u+wr $(LOGLOCATION) X chmod u+wrx $(LOGLOCATION) END-of-/ports/www/dansguardian/files/Makefile-patch echo x - /ports/www/dansguardian/files/conf-patch sed 's/^X//' >/ports/www/dansguardian/files/conf-patch << 'END-of-/ports/www/dansguardian/files/conf-patch' X--- work/DansGuardian-2.2.4/dansguardian.conf Sat Feb 9 19:07:34 2002 X+++ files/dansguardian.conf Sat Feb 9 19:06:44 2002 X@@ -1,24 +1,17 @@ X # DansGuardian config file for version 2.2.4 X X- X # Web Access Denied Reporting (does not affect logging) X-# X # -1 = log, but do not block - Stealth mode X # 0 = just say 'Access Denied' X # 1 = report why but not what denied phrase X # 2 = report fully X-# X reportinglevel = 1 X X- X- X # Logging Settings X # 0 = none 1 = just denied 2 = all text based 3 = all requests X loglevel = 2 X X- X # Network Settings X-# X # the IP that DansGuardian listens on. If left blank DansGuardian will X # listen on all IPs. That would include all NICs, loopback, modem, etc. X # Normally you would have your firewall protecting this, but if you want X@@ -37,24 +30,19 @@ X X # accessdeniedaddress is the address of your web server to which the cgi X # dansguardian reporting script was copied X-# X-accessdeniedaddress = 'http://YOURSERVER.YOURDOMAIN/cgi-bin/dansguardian.pl' X- X- X+accessdeniedaddress = 'http://YOURSERVER.YOURDOMAIN/cgi-bin.default/dansguardian.pl' X X # Content filtering files location X-bannedphraselist = '/usr/local/usr/local/etc/dansguardian/bannedphraselist' X-bannedextensionlist = '/usr/local/usr/local/etc/dansguardian/bannedextensionlist' X-bannedmimetypelist = '/usr/local/usr/local/etc/dansguardian/bannedmimetypelist' X-bannedsitelist = '/usr/local/usr/local/etc/dansguardian/bannedsitelist' X-bannedurllist = '/usr/local/usr/local/etc/dansguardian/bannedurllist' X-bannedregexpurllist = '/usr/local/usr/local/etc/dansguardian/bannedregexpurllist' X-exceptionsitelist = '/usr/local/usr/local/etc/dansguardian/exceptionsitelist' X-exceptioniplist = '/usr/local/usr/local/etc/dansguardian/exceptioniplist' X-exceptionuserlist = '/usr/local/usr/local/etc/dansguardian/exceptionuserlist' X-picsfile = '/usr/local/usr/local/etc/dansguardian/pics' X- X- X+bannedphraselist = '/usr/local/etc/dansguardian/bannedphraselist' X+bannedextensionlist = '/usr/local/etc/dansguardian/bannedextensionlist' X+bannedmimetypelist = '/usr/local/etc/dansguardian/bannedmimetypelist' X+bannedsitelist = '/usr/local/etc/dansguardian/bannedsitelist' X+bannedurllist = '/usr/local/etc/dansguardian/bannedurllist' X+bannedregexpurllist = '/usr/local/etc/dansguardian/bannedregexpurllist' X+exceptionsitelist = '/usr/local/etc/dansguardian/exceptionsitelist' X+exceptioniplist = '/usr/local/etc/dansguardian/exceptioniplist' X+exceptionuserlist = '/usr/local/etc/dansguardian/exceptionuserlist' X+picsfile = '/usr/local/etc/dansguardian/pics' X X # Reverse lookups for banned site and URLs. X # If set to on, DansGuardian will look up the forward DNS for an IP URL X@@ -65,8 +53,6 @@ X # bannedsitelist file instead. X reverseaddresslookups = off X X- X- X # Build bannedsitelist and bannedurllist cache files. X # This will compare the date stamp of the list file with the date stamp of X # the cache file and will recreate as needed. X@@ -75,8 +61,6 @@ X # be significant. Fast computers do not need this option. on | off X createlistcachefiles = on X X- X- X # POST protection (web upload and forms) X # does not block forms without any file upload, i.e. this is just for X # blocking or limiting uploads X@@ -88,8 +72,6 @@ X #maxuploadsize = 0 X maxuploadsize = -1 X X- X- X # Username identification methods (used in logging) X # You can have as many methods as you want and not just one. The first one X # will be used then if no username is found, the next will be used. X@@ -104,10 +86,7 @@ X username_id_method_ntlm = off # **NOT IMPLEMENTED** X username_id_method_ident = off X X- X- X # Misc settings X- X # if on it adds an X-Forwarded-For: to the HTTP request X # header. This may help solve some problem sites that need to know the X # source ip. on | off X@@ -119,10 +98,7 @@ X # On large sites you might want to double or triple this number. X maxchildren = 180 X X- X # if on it logs some debug info regarding fork()ing and accept()ing which X # can usually be ignored. These are logged by syslog. It is safe to leave X # it on or off X log_connection_handling_errors = on X- X- END-of-/ports/www/dansguardian/files/conf-patch echo x - /ports/www/dansguardian/files/script-patch sed 's/^X//' >/ports/www/dansguardian/files/script-patch << 'END-of-/ports/www/dansguardian/files/script-patch' X--- work/DansGuardian-2.2.4/dansguardian.bsdv Sat Feb 9 19:42:38 2002 X+++ files/dansguardian.bsdv Fri Feb 8 22:31:40 2002 X@@ -1,32 +1,26 @@ X #!/bin/sh X-# X-# BSD startup script for dansguardian X-# partly based on httpd startup script X-# X-# description: A web content filtering plugin for web \ X-# proxies, developed to filter using lists of \ X-# banned phrases, MIME types, filename \ X-# extensions and PICS labling. X-# processname: dansguardian X- X X # See how we were called. X- X case "$1" in X-start) X- [ -x /usr/local/usr/local/sbin/dansguardian ] && /usr/local/usr/local/sbin/dansguardian > /dev/null && echo -e ' dansguardian\c' X+ start) X+ /usr/local/sbin/dansguardian X+ echo -n " dansguardian" X ;; X stop) X- /usr/local/usr/local/sbin/dansguardian -q X- [ -r /tmp/.dguardianipc ] && echo -e ' dansguardian\c' X- rm -f /tmp/.dguardianipc X+ /usr/local/sbin/dansguardian -q X+ if [ -e /tmp/.dguardipc ]; then X+ rm -f /tmp/.dguardipc X+ fi X+ echo -n " dansguardian" X ;; X restart) X $0 stop X $0 start X ;; X *) X- echo "Usage: configure {start|stop|restart}" >&2 X+ echo "Usage: dansguardian {start|stop|restart}" X ;; X esac X+ X exit 0 X+ END-of-/ports/www/dansguardian/files/script-patch echo x - /ports/www/dansguardian/files/man-patch sed 's/^X//' >/ports/www/dansguardian/files/man-patch << 'END-of-/ports/www/dansguardian/files/man-patch' X--- work/DansGuardian-2.2.4/dansguardian.8 Mon Jan 21 13:48:27 2002 X+++ files/dansguardian.8 Sat Feb 9 19:38:16 2002 X@@ -3,7 +3,7 @@ X .SH NAME X DansGuardian 2 X .SH SYNOPSIS X-/etc/rc.d/init.d/dansguardian [stop|start|status|restart] X+/usr/local/etc/rc.d/init.d/dansguardian [stop|start|status|restart] X .SH DESCRIPTION X A Introduction X END-of-/ports/www/dansguardian/files/man-patch echo x - /ports/www/dansguardian/files/logrotation sed 's/^X//' >/ports/www/dansguardian/files/logrotation << 'END-of-/ports/www/dansguardian/files/logrotation' X#!/bin/sh X X# Generic shell script to rotate and compress log files for a given program. X# This script currently support up to 3 log files per program. More can be X# added as needed. X X X##### Begin user-modifiable section. Change these variables to point to the X##### correct directories and files. X XBACKUPS=/usr/local/var/log/dansguardian/backups XLOGDIR=/usr/local/var/log/dansguardian X XLOG1="access.log" XLOG2="" XLOG3="" X XUSER=nobody XGROUP=nobody X XFILEMODE=644 X XINITSCRIPT=/usr/local/etc/rc.d/dansguardian.sh X X##### End of user-modifiable section. Code below shouldn't need changing. Have a look X##### just in case, if you want. X X# Below is the actual log rotation. It works in two parts: X# Part 1 stops the daemon, moves the old logs, creates the new logs, and restarts the daemon. X# Part 2 rotates the archived logs, and compresses the new archive X X X# Check which lognames have been set, and build the list of log files to use. X# [ ${VARIABLE} ] returns true if $VARIABLE is set to anything other than "" Xif [ ${LOG3} ]; then X LOGS="${LOG1} ${LOG2} ${LOG3}" Xelif [ ${LOG2} ]; then X LOGS="${LOG1} ${LOG2}" Xelif [ ${LOG1} ]; then X LOGS="${LOG1}" Xelse X echo "Error: No log files defined." X echo "" X exit 1 Xfi X X# Check that the backup directory exists, create it if it doesn't Xif [ ! -d ${BACKUPS} ]; then X mkdir -p ${BACKUPS} Xfi X X# Stop daemon X${INITSCRIPT} stop > /dev/null X X# Move the existing logs to the backup directory Xcd ${LOGDIR} Xmv ${LOGS} ${BACKUPS}/ X X# Create new log files Xtouch ${LOGS} Xchown ${USER}:${GROUP} ${LOGS} Xchmod ${FILEMODE} ${LOGS} X X# Start daemon X${INITSCRIPT} start > /dev/null X X X# Rotate compressed archives of $LOG1 Xif [ ${LOG1} ]; then X cd ${BACKUPS} X if [ -e ${LOG1}.4.gz ]; then X rm -f ${LOG1}.4.gz X fi X X if [ -e ${LOG1}.3.gz ]; then X mv -f ${LOG1}.3.gz ${LOG1}.4.gz X fi X X if [ -e ${LOG1}.2.gz ]; then X mv -f ${LOG1}.2.gz ${LOG1}.3.gz X fi X X if [ -e ${LOG1}.1.gz ]; then X mv -f ${LOG1}.1.gz ${LOG1}.2.gz X fi X X if [ -e ${LOG1} ]; then X gzip -9 -f ${LOG1} X mv -f ${LOG1}.gz ${LOG1}.1.gz X fi Xfi X X# Rotate compressed archives of $LOG2 Xif [ ${LOG2} ]; then X cd ${BACKUPS} X if [ -e ${LOG2}.4.gz ]; then X rm -f ${LOG2}.4.gz X fi X X if [ -e ${LOG2}.3.gz ]; then X mv -f ${LOG2}.3.gz ${LOG2}.4.gz X fi X X if [ -e ${LOG2}.2.gz ]; then X mv -f ${LOG2}.2.gz ${LOG2}.3.gz X fi X X if [ -e ${LOG2}.1.gz ]; then X mv -f ${LOG2}.1.gz ${LOG2}.2.gz X fi X X if [ -e ${LOG2} ]; then X gzip -9 -f ${LOG2} X mv -f ${LOG2}.gz ${LOG2}.1.gz X fi Xfi X X# Rotate compressed archives of $LOG3 Xif [ ${LOG3} ]; then X cd ${BACKUPS} X if [ -e ${LOG3}.4.gz ]; then X rm -f ${LOG3}.4.gz X fi X X if [ -e ${LOG3}.3.gz ]; then X mv -f ${LOG3}.3.gz ${LOG3}.4.gz X fi X X if [ -e ${LOG3}.2.gz ]; then X mv -f ${LOG3}.2.gz ${LOG3}.3.gz X fi X X if [ -e ${LOG3}.1.gz ]; then X mv -f ${LOG3}.1.gz ${LOG3}.2.gz X fi X X if [ -e ${LOG3} ]; then X gzip -9 -f ${LOG3} X mv -f ${LOG3}.gz ${LOG3}.1.gz X fi Xfi END-of-/ports/www/dansguardian/files/logrotation echo x - /ports/www/dansguardian/pkg-plist sed 's/^X//' >/ports/www/dansguardian/pkg-plist << 'END-of-/ports/www/dansguardian/pkg-plist' X@exec mkdir -p etc/dansguardian X@exec mkdir -p var/log/dansguardian Xetc/dansguardian/dansguardian.conf Xetc/dansguardian/bannedphraselist Xetc/dansguardian/bannedextensionlist Xetc/dansguardian/bannedmimetypelist Xetc/dansguardian/bannedurllist Xetc/dansguardian/bannedregexpurllist Xetc/dansguardian/bannedsitelist Xetc/dansguardian/exceptionsitelist Xetc/dansguardian/exceptionuserlist Xetc/dansguardian/exceptioniplist Xetc/dansguardian/pics Xsbin/dansguardian Xsbin/dg-logrotate Xvar/log/dansguardian/access.log Xwww/cgi-bin.default/dansguardian.pl X@dirrm etc/dansguardian X@dirrm var/log/dansguardian END-of-/ports/www/dansguardian/pkg-plist exit --- dansguardian.port ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message