summaryrefslogtreecommitdiff
path: root/www/dansguardian-devel/files
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2002-04-08 01:51:57 +0000
committerCy Schubert <cy@FreeBSD.org>2002-04-08 01:51:57 +0000
commit738fc8ec1d6d628a99f4a99a91dde285e6aa303c (patch)
treecc59462c07ea66d9b10987fba3e687dc105cdb08 /www/dansguardian-devel/files
parentUpdate 2.2.7-1 -> 2.2.8-0. (diff)
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>
Notes
Notes: svn path=/head/; revision=57419
Diffstat (limited to 'www/dansguardian-devel/files')
-rw-r--r--www/dansguardian-devel/files/patch-autoconf::fbsd.in78
-rw-r--r--www/dansguardian-devel/files/patch-configure11
-rw-r--r--www/dansguardian-devel/files/patch-dansguardian.811
3 files changed, 100 insertions, 0 deletions
diff --git a/www/dansguardian-devel/files/patch-autoconf::fbsd.in b/www/dansguardian-devel/files/patch-autoconf::fbsd.in
new file mode 100644
index 000000000000..25f14a14ee3b
--- /dev/null
+++ b/www/dansguardian-devel/files/patch-autoconf::fbsd.in
@@ -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:
diff --git a/www/dansguardian-devel/files/patch-configure b/www/dansguardian-devel/files/patch-configure
new file mode 100644
index 000000000000..a2468bfdf6e0
--- /dev/null
+++ b/www/dansguardian-devel/files/patch-configure
@@ -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
diff --git a/www/dansguardian-devel/files/patch-dansguardian.8 b/www/dansguardian-devel/files/patch-dansguardian.8
new file mode 100644
index 000000000000..757d264c0962
--- /dev/null
+++ b/www/dansguardian-devel/files/patch-dansguardian.8
@@ -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
+