Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Apr 2002 19:15:06 -0800
From:      fcash@lug.kamloops.net
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/36676: New port: DansGuardian devel version 2.4.2
Message-ID:  <E16sbEo-0003yH-00@lug.kamloops.net>

next in thread | raw e-mail | index | archive | help

>Number:         36676
>Category:       ports
>Synopsis:       New Port: DansGuardian development version
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 02 16:30:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Freddie Cash <fcash@bigfoot.com>
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
PhoenixTek 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 2.4.x releases are considered stable enough for public abuse and testing, and is nearing release.  The included shar creates a dansguardian-devel port.

>How-To-Repeat:
	
>Fix:

	


# 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:
#
#	dansguardian-devel/
#	dansguardian-devel/files
#	dansguardian-devel/files/patch-dansguardian.8
#	dansguardian-devel/files/patch-autoconf::fbsd.in
#	dansguardian-devel/files/patch-configure
#	dansguardian-devel/pkg-message
#	dansguardian-devel/pkg-descr
#	dansguardian-devel/pkg-comment
#	dansguardian-devel/distinfo
#	dansguardian-devel/Makefile
#	dansguardian-devel/pkg-plist
#
echo c - dansguardian-devel/
mkdir -p dansguardian-devel/ > /dev/null 2>&1
echo c - dansguardian-devel/files
mkdir -p dansguardian-devel/files > /dev/null 2>&1
echo x - dansguardian-devel/files/patch-dansguardian.8
sed 's/^X//' >dansguardian-devel/files/patch-dansguardian.8 << 'END-of-dansguardian-devel/files/patch-dansguardian.8'
X--- dansguardian.8.orig	Tue Apr  2 12:38:51 2002
X+++ dansguardian.8	Tue Apr  2 12:39:12 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/dansguardian [stop|start|restart]
X .SH DESCRIPTION
X A Introduction
X 
END-of-dansguardian-devel/files/patch-dansguardian.8
echo x - dansguardian-devel/files/patch-autoconf::fbsd.in
sed 's/^X//' >dansguardian-devel/files/patch-autoconf::fbsd.in << 'END-of-dansguardian-devel/files/patch-autoconf::fbsd.in'
X--- autoconf/fbsd.in.orig	Tue Apr  2 12:40:58 2002
X+++ autoconf/fbsd.in	Tue Apr  2 12:44:25 2002
X@@ -18,7 +18,7 @@
X                  dansguardian.conf config.cache Makefile logrotation
X 
X PASSVARS = -DPROXYUSER=\"${PROXYUSER}\"
X-PASSVARS += -DLOGLOCATION=\"${LOGLOCATION}access.log\"
X+PASSVARS += -DLOGLOCATION=\"${LOGLOCATION}dansguardian.log\"
X PASSVARS += -DCONFFILELOCATION=\"${CONFFILELOCATION}dansguardian.conf\"
X PASSVARS += -DPIDDIR=\"${PIDDIR}\"
X 
X@@ -35,7 +35,7 @@
X .cpp.o:
X 	$(CPP) $(DEBUG) $(CFLAGS) -c $<
X 
X-all:	$(OBJ) 
X+all:	$(OBJ)
X 	$(CPP) -o dansguardian $(DGCFLAGS) $(DEBUG) $(OBJ) $(LIBS) dansguardian.cpp
X 
X install:
X@@ -43,34 +43,30 @@
X 	@test -d $(CONFFILELOCATION) || install -d $(CONFFILELOCATION)
X 	@test -d $(CGIBINLOCATION) || install -d $(CGIBINLOCATION)
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 ./exceptionphraselist $(CONFFILELOCATION)exceptionphraselist
X-	cp -f ./weightedphraselist $(CONFFILELOCATION)weightedphraselist
X-	cp -f ./bannediplist $(CONFFILELOCATION)bannediplist
X-	cp -f ./banneduserlist $(CONFFILELOCATION)banneduserlist
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 ./exceptionurllist $(CONFFILELOCATION)exceptionurllist
X-	cp -f ./exceptionuserlist $(CONFFILELOCATION)exceptionuserlist
X-	cp -f ./exceptioniplist $(CONFFILELOCATION)exceptioniplist
X-	cp -f ./pics $(CONFFILELOCATION)pics
X-	cp -f ./template.html $(CONFFILELOCATION)template.html
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-	chown -R $(PROXYUSER).$(PROXYGROUP) $(LOGLOCATION)
X-	chmod -R u+wr $(LOGLOCATION)
X-	chmod u+wrx $(LOGLOCATION)
X+	@test -d $(BINARYLOCATION) || install -d $(BINARYLOCATION)
X+	@install -m 755 -o root -g wheel ./dansguardian $(BINARYLOCATION)dansguardian
X+	@install -m 644 -o root -g wheel ./dansguardian.conf $(CONFFILELOCATION)dansguardian.conf
X+	@install -m 644 -o root -g wheel ./bannedphraselist $(CONFFILELOCATION)bannedphraselist
X+	@install -m 644 -o root -g wheel ./exceptionphraselist $(CONFFILELOCATION)exceptionphraselist
X+	@install -m 644 -o root -g wheel ./weightedphraselist $(CONFFILELOCATION)weightedphraselist
X+	@install -m 644 -o root -g wheel ./bannediplist $(CONFFILELOCATION)bannediplist
X+	@install -m 644 -o root -g wheel ./banneduserlist $(CONFFILELOCATION)banneduserlist
X+	@install -m 644 -o root -g wheel ./bannedextensionlist $(CONFFILELOCATION)bannedextensionlist
X+	@install -m 644 -o root -g wheel ./bannedmimetypelist $(CONFFILELOCATION)bannedmimetypelist
X+	@install -m 644 -o root -g wheel ./bannedurllist $(CONFFILELOCATION)bannedurllist
X+	@install -m 644 -o root -g wheel ./bannedregexpurllist $(CONFFILELOCATION)bannedregexpurllist
X+	@install -m 644 -o root -g wheel ./bannedsitelist $(CONFFILELOCATION)bannedsitelist
X+	@install -m 644 -o root -g wheel ./exceptionsitelist $(CONFFILELOCATION)exceptionsitelist
X+	@install -m 644 -o root -g wheel ./exceptionurllist $(CONFFILELOCATION)exceptionurllist
X+	@install -m 644 -o root -g wheel ./exceptionuserlist $(CONFFILELOCATION)exceptionuserlist
X+	@install -m 644 -o root -g wheel ./exceptioniplist $(CONFFILELOCATION)exceptioniplist
X+	@install -m 644 -o root -g wheel ./pics $(CONFFILELOCATION)pics
X+	@install -m 644 -o root -g wheel ./template.html $(CONFFILELOCATION)template.html
X+	@install -m 755 -o root -g wheel ./dansguardian.bsdv $(SYSVLOCATION)dansguardian.sh
X+	@install -m 755 -o root -g wheel ./dansguardian.pl $(CGIBINLOCATION)dansguardian.pl
X+	@install -m 644 -o root -g wheel ./dansguardian.8 $(MANUALFILES)man8/dansguardian.8
X+	@touch $(LOGLOCATION)dansguardian.log
X+	@chown $(PROXYUSER):$(PROXYGROUP) $(LOGLOCATION)dansguardian.log
X 
X uninstall:
X 	rm -f $(BINARYLOCATION)dansguardian
X@@ -78,7 +74,7 @@
X 	rm -f $(CGIBINLOCATION)dansguardian.pl
X 	rm -f $(MANUALFILES)man8/dansguardian.8.gz
X 	rm -fr $(CONFFILELOCATION)
X-	rm -fr $(LOGLOCATION)
X+	rm -f $(LOGLOCATION)dansguardian.log
X 
X clean:
X 	rm -f $(OBJ) $(PROG)
END-of-dansguardian-devel/files/patch-autoconf::fbsd.in
echo x - dansguardian-devel/files/patch-configure
sed 's/^X//' >dansguardian-devel/files/patch-configure << 'END-of-dansguardian-devel/files/patch-configure'
X--- configure.orig	Tue Apr  2 12:45:16 2002
X+++ configure	Tue Apr  2 12:46:34 2002
X@@ -2663,7 +2663,7 @@
X $extendedecho "SYSVLOCATION = \${PREFIX}$sysvdir" >>Makefile
X $extendedecho "CGIBINLOCATION = \${PREFIX}$cgidir" >>Makefile
X $extendedecho "MANUALFILES = \${PREFIX}$mandir" >>Makefile
X-$extendedecho "LOGLOCATION = \${PREFIX}$logdir" >>Makefile
X+$extendedecho "LOGLOCATION = $logdir" >>Makefile
X echo "PROXYUSER = $runas_usr" >>Makefile
X echo "PROXYGROUP = $runas_grp" >>Makefile
X echo "PIDDIR = $piddir" >>Makefile
END-of-dansguardian-devel/files/patch-configure
echo x - dansguardian-devel/pkg-message
sed 's/^X//' >dansguardian-devel/pkg-message << 'END-of-dansguardian-devel/pkg-message'
X===>   Please Note:
X
X*******************************************************************************
X       This port has placed a log file in /var/log/ named dansguardian.log
X       This log file can get quite large.  Please read the newsyslog(8) man
X       page for instructions on setting up log rotation and compression.
X*******************************************************************************
END-of-dansguardian-devel/pkg-message
echo x - dansguardian-devel/pkg-descr
sed 's/^X//' >dansguardian-devel/pkg-descr << 'END-of-dansguardian-devel/pkg-descr'
XDansGuardian is a web content filtering proxy for Linux, FreeBSD, OpenBSD,
Xand Solaris. It relies on a proxy server, such as Squid, for all fetching;
Xhowever, DansGuardian should work with any proxy server.
X
XIt filters using multiple methods, including:
X  - URL and domain filtering
X  - content phrase filtering
X  - PICS filtering
X  - MIME filtering
X  - file extension filtering
X  - POST filtering
X  - user and source IP filtering
X
XWWW: http://dansguardian.org
XWWW: http://backup.dansguardian.org
X
X- Freddie Cash
Xfcash@bigfoot.com
END-of-dansguardian-devel/pkg-descr
echo x - dansguardian-devel/pkg-comment
sed 's/^X//' >dansguardian-devel/pkg-comment << 'END-of-dansguardian-devel/pkg-comment'
XA fast, simple web content filter for Squid proxy servers
END-of-dansguardian-devel/pkg-comment
echo x - dansguardian-devel/distinfo
sed 's/^X//' >dansguardian-devel/distinfo << 'END-of-dansguardian-devel/distinfo'
XMD5 (DansGuardian-2.4.2-0.source.tar.gz) = 988c820795e40ed440ba9baa5da0545e
END-of-dansguardian-devel/distinfo
echo x - dansguardian-devel/Makefile
sed 's/^X//' >dansguardian-devel/Makefile << 'END-of-dansguardian-devel/Makefile'
X# New ports collection makefile for:	dansguardian
X# Date created:				April 02, 2002
X# Whom:					Freddie Cash <fcash@bigfoot.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	dansguardian
XPORTVERSION=	2.4.2.0
XCATEGORIES=	www
XMASTER_SITES=	# empty, see below
XDISTNAME=	DansGuardian-2.4.2-0.source
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.4.2
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--prefix=${PREFIX} \
X		--bindir=/sbin/ \
X		--sysconfdir=/etc/dansguardian/ \
X		--sysvdir=/etc/rc.d/ \
X		--mandir=/man/ \
X		--logdir=/var/log/ \
X		--cgidir=/www/cgi-bin/ \
X		--piddir=/var/run/
X
XDG_URL=		http://dansguardian.org/index.php?page=copyright2
X
XMAN8=		dansguardian.8
XMANCOMPRESSED=	no
X
XNO_CDROM=	"Commercial download is restricted.  Check ${DG_URL} for more info"
XNO_PACKAGE=	"Redistribution is restricted.  Check ${DG_URL} for more info"
X
X.include <bsd.port.pre.mk>
X
X.if !(exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}))
XFORBIDDEN="Commercial source download is restricted.  Please visit and read ${DG_URL} and download ${DISTNAME}${EXTRACT_SUFX} into ${DISTDIR} before running make"
X.endif
X
Xpost-install:
X	@${CAT} pkg-message
X
X.include <bsd.port.post.mk>
END-of-dansguardian-devel/Makefile
echo x - dansguardian-devel/pkg-plist
sed 's/^X//' >dansguardian-devel/pkg-plist << 'END-of-dansguardian-devel/pkg-plist'
X@exec mkdir -p etc/dansguardian
Xetc/dansguardian/bannedextensionlist
Xetc/dansguardian/bannediplist
Xetc/dansguardian/bannedmimetypelist
Xetc/dansguardian/bannedphraselist
Xetc/dansguardian/bannedregexpurllist
Xetc/dansguardian/bannedsitelist
Xetc/dansguardian/bannedurllist
Xetc/dansguardian/banneduserlist
Xetc/dansguardian/dansguardian.conf
Xetc/dansguardian/exceptioniplist
Xetc/dansguardian/exceptionphraselist
Xetc/dansguardian/exceptionsitelist
Xetc/dansguardian/exceptionurllist
Xetc/dansguardian/exceptionuserlist
Xetc/dansguardian/pics
Xetc/dansguardian/template.html
Xetc/dansguardian/weightedphraselist
Xetc/rc.d/dansguardian.sh
Xsbin/dansguardian
Xwww/cgi-bin/dansguardian.pl
X@dirrm etc/dansguardian
X@cwd /
Xvar/log/dansguardian.log
END-of-dansguardian-devel/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E16sbEo-0003yH-00>