mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 20:36:30 -04:00
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>
This commit is contained in:
parent
c877a9d58d
commit
738fc8ec1d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57419
10 changed files with 198 additions and 0 deletions
|
@ -51,6 +51,7 @@
|
|||
SUBDIR += crawl
|
||||
SUBDIR += css-mode.el
|
||||
SUBDIR += dansguardian
|
||||
SUBDIR += dansguardian-devel
|
||||
SUBDIR += decss
|
||||
SUBDIR += demoroniser
|
||||
SUBDIR += dillo
|
||||
|
|
46
www/dansguardian-devel/Makefile
Normal file
46
www/dansguardian-devel/Makefile
Normal file
|
@ -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>
|
1
www/dansguardian-devel/distinfo
Normal file
1
www/dansguardian-devel/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (DansGuardian-2.4.2-1.source.tar.gz) = eaa18fb257362d4b505ee7deb6402f28
|
78
www/dansguardian-devel/files/patch-autoconf::fbsd.in
Normal file
78
www/dansguardian-devel/files/patch-autoconf::fbsd.in
Normal file
|
@ -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:
|
11
www/dansguardian-devel/files/patch-configure
Normal file
11
www/dansguardian-devel/files/patch-configure
Normal file
|
@ -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
|
11
www/dansguardian-devel/files/patch-dansguardian.8
Normal file
11
www/dansguardian-devel/files/patch-dansguardian.8
Normal file
|
@ -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
|
||||
|
1
www/dansguardian-devel/pkg-comment
Normal file
1
www/dansguardian-devel/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
A fast, simple web content filter for Squid proxy servers
|
18
www/dansguardian-devel/pkg-descr
Normal file
18
www/dansguardian-devel/pkg-descr
Normal file
|
@ -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
|
7
www/dansguardian-devel/pkg-message
Normal file
7
www/dansguardian-devel/pkg-message
Normal file
|
@ -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.
|
||||
*******************************************************************************
|
24
www/dansguardian-devel/pkg-plist
Normal file
24
www/dansguardian-devel/pkg-plist
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue