From owner-freebsd-ports Sun Jun 11 19:50: 8 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 8CD1037B948 for ; Sun, 11 Jun 2000 19:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id TAA46906; Sun, 11 Jun 2000 19:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from hq1.tyfon.net (hq1.tyfon.net [213.212.29.17]) by hub.freebsd.org (Postfix) with ESMTP id 6983A37B837 for ; Sun, 11 Jun 2000 19:49:13 -0700 (PDT) (envelope-from root@tyfon.net) Received: by hq1.tyfon.net (Postfix, from userid 0) id AF57A1C5CB; Mon, 12 Jun 2000 04:49:10 +0200 (CEST) Message-Id: <20000612024910.AF57A1C5CB@hq1.tyfon.net> Date: Mon, 12 Jun 2000 04:49:10 +0200 (CEST) From: dl@tyfon.net Reply-To: dl@tyfon.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/19211: port updates www/squidguard Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19211 >Category: ports >Synopsis: port updates www/squidguard >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jun 11 19:50:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Dan Larsson >Release: FreeBSD 4.0-STABLE i386 >Organization: Tyfon Svenska AB >Environment: FreeBSD 4.0-STABLE i386 >Description: Changed port to handle user specified data locations >How-To-Repeat: >Fix: diff -ru squidguard.orig/Makefile squidguard/Makefile --- squidguard.orig/Makefile Mon Jun 12 02:29:01 2000 +++ squidguard/Makefile Mon Jun 12 04:18:25 2000 @@ -21,9 +21,18 @@ --with-db-lib=${PREFIX}/lib \ --with-sg-config=${PREFIX}/etc/squid/squidguard.conf \ --with-sg-dbhome=${DATADIR} \ - --with-sg-logdir=/var/log + --with-sg-logdir=${LOGDIR} +### To change any of the below paths add it to your make arg + +.if !defined(DATADIR) DATADIR= /var/db/${PORTNAME} +.endif +.if !defined(LOGDIR) +LOGDIR= /var/log +.endif + +PLIST_SUB= DATADIR=${DATADIR} ### To optimize squidGuard add OPTIMIZE=YES to your make arg @@ -81,7 +90,8 @@ @if [ ! -f ${PREFIX}/etc/squid/squidguard.conf ] ; then \ ${ECHO_MSG} "===> Installing sample configuration file" ; \ - ${SED} -e 's!%%DATADIR%%!${DATADIR}!' ${WRKSRC}/samples/sample.conf > \ + ${SED} -e 's!%%DATADIR%%!${DATADIR}!' -e 's!%%LOGDIR%%!${LOGDIR}!' \ + ${WRKSRC}/samples/sample.conf > \ ${PREFIX}/etc/squid/squidguard.conf.sample ; \ ${CHOWN} root.nobody ${PREFIX}/etc/squid/squidguard.conf.sample ; \ ${CHMOD} 640 ${PREFIX}/etc/squid/squidguard.conf.sample ; \ @@ -89,6 +99,10 @@ else \ ${ECHO_MSG} "===> Existing configuration file found - sample not installed" ; \ fi + +.if !exists(${LOGDIR}) + @${MKDIR} ${LOGDIR} +.endif ### View short howto message diff -ru squidguard.orig/patches/patch-ac squidguard/patches/patch-ac --- squidguard.orig/patches/patch-ac Sun Jun 11 21:47:47 2000 +++ squidguard/patches/patch-ac Mon Jun 12 03:46:36 2000 @@ -1,5 +1,5 @@ --- samples/sample.conf.in.orig Sun Jun 11 21:45:41 2000 -+++ samples/sample.conf.in Sun Jun 11 21:46:54 2000 ++++ samples/sample.conf.in Sun Jun 12 03:44:13 2000 @@ -1,9 +1,9 @@ # -# CONFIG FILE FOR SQUIDGUARD @@ -9,7 +9,7 @@ -dbhome @prefix@/squidGuard/db -logdir @prefix@/squidGuard/logs +dbhome %%DATADIR%% -+logdir /var/log ++logdir %%LOGDIR%% # # TIME RULES: diff -ru squidguard.orig/pkg/PLIST squidguard/pkg/PLIST --- squidguard.orig/pkg/PLIST Mon Jun 12 01:45:34 2000 +++ squidguard/pkg/PLIST Mon Jun 12 04:05:11 2000 @@ -10,32 +10,32 @@ share/doc/squidGuard/installation.txt share/doc/squidGuard/squidGuard.gif @dirrm share/doc/squidGuard -@cwd /var/db/squidGuard +@cwd %%DATADIR%% ads/domains ads/domains.db ads/urls ads/urls.db -@dirrm ads agressive/domains agressive/domains.db agressive/urls agressive/urls.db -@dirrm agressive drugs/domains drugs/domains.db drugs/urls drugs/urls.db -@dirrm drugs hacking/domains hacking/domains.db hacking/urls hacking/urls.db -@dirrm hacking porn/domains porn/domains.db porn/expressions porn/urls porn/urls.db +@dirrm ads +@dirrm agressive +@dirrm drugs +@dirrm hacking @dirrm porn -@cwd /var/db -@dirrm squidGuard +@cwd / +@dirrm %%DATADIR%% >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message