summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>2000-07-10 03:58:40 +0000
committerSteve Price <steve@FreeBSD.org>2000-07-10 03:58:40 +0000
commit376eac2de79419e66a8c39bb3dff3b9272ad2659 (patch)
tree3fe0bfcbfe207aa120182f98b0d20a1ad24c4627 /www
parentAdding kwebwatch version 0.72. (diff)
Adding squidguard version 1.1.4.
A fast redirector for squid. PR: 19210 Submitted by: Dan Larsson <dl@tyfon.net>
Diffstat (limited to 'www')
-rw-r--r--www/squidguard/Makefile117
-rw-r--r--www/squidguard/distinfo1
-rw-r--r--www/squidguard/files/patch-ab38
-rw-r--r--www/squidguard/files/patch-ac15
-rw-r--r--www/squidguard/pkg-comment1
-rw-r--r--www/squidguard/pkg-descr3
-rw-r--r--www/squidguard/pkg-plist41
7 files changed, 216 insertions, 0 deletions
diff --git a/www/squidguard/Makefile b/www/squidguard/Makefile
new file mode 100644
index 000000000000..43e778d3964f
--- /dev/null
+++ b/www/squidguard/Makefile
@@ -0,0 +1,117 @@
+# New ports collection makefile for: squidGuard
+# Date created: 5 June 2000
+# Whom: dl@tyfon.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= squidGuard
+PORTVERSION= 1.1.4
+CATEGORIES= www
+MASTER_SITES= http://ftp.ost.eltele.no/pub/www/proxy/squidGuard/ \
+ ftp://ftp.ost.eltele.no/pub/www/proxy/squidGuard/
+
+MAINTAINER= ports@tyfon.net
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libdb2.a:${PORTSDIR}/databases/db
+RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid23
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --with-db-inc=${PREFIX}/include/db2 \
+ --with-db-lib=${PREFIX}/lib \
+ --with-sg-config=${PREFIX}/etc/squid/squidguard.conf \
+ --with-sg-dbhome=${DATADIR} \
+ --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
+
+.if defined(OPTIMIZE) && ${OPTIMIZE} == YES
+CC= gcc
+CFLAGS= -pipe -O6 -Wall -fomit-frame-pointer
+.endif
+
+post-install:
+
+### Install documentation
+
+.if !defined(NOPORTDOCS)
+ @${ECHO_MSG} "===> Installing ${PORTNAME} documentation"
+ -@${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
+.for i in ${WRKSRC}/doc/*.txt ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.gif ${WRKSRC}/doc/README
+ @${INSTALL_DATA} ${WRKSRC}$i ${PREFIX}/share/doc/${PORTNAME}
+.endfor
+ @${ECHO_MSG} " -> Documentation installed in: ${PREFIX}/share/doc/${PORTNAME}"
+.endif
+
+### Install blacklist databases
+
+.if !exists(${DATADIR})
+ @${ECHO_MSG} "===> Installing blacklist databases"
+ @${MKDIR} ${DATADIR}
+ @cd ${DATADIR} ; \
+ ${TAR} fpxz ${WRKSRC}/samples/dest/blacklists.tar.gz ; \
+ for f in blacklists/* ; do \
+ ${MV} $$f ${DATADIR} ; \
+ done
+ @if [ -d ${PREFIX}/share/doc/${PORTNAME} ] ; then \
+ ${MV} -f ${DATADIR}/README \
+ ${PREFIX}/share/doc/${PORTNAME}/README.blacklists ; \
+ else \
+ ${RM} -f ${DATADIR}/README ; \
+ fi
+ @for d in ${DATADIR}/ads ${DATADIR}/agressive ${DATADIR}/drugs \
+ ${DATADIR}/hacking ${DATADIR}/porn ; do \
+ cd $$d ; \
+ ${RM} -f newdomains.* newurls.* ; \
+ ${CHOWN} root.nobody * ; \
+ ${CHMOD} 640 * ; \
+ cd ${DATADIR} ; \
+ done
+ @${RM} -rf ${DATADIR}/blacklists*
+ @${CHOWN} root.nobody ${DATADIR}/* ${DATADIR}
+ @${CHMOD} 750 ${DATADIR}/* ${DATADIR}
+ @${ECHO_MSG} " -> Blacklists installed in: ${DATADIR}"
+.else
+ @${ECHO_MSG} "===> Found existing datadirectory - skipping blacklist installation"
+.endif
+
+### Install sample configuration file
+
+ @if [ ! -f ${PREFIX}/etc/squid/squidguard.conf ] ; then \
+ ${ECHO_MSG} "===> Installing sample configuration file" ; \
+ ${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 ; \
+ ${ECHO_MSG} " -> Sample configuration file installed in: ${PREFIX}/etc/squid" ; \
+ else \
+ ${ECHO_MSG} "===> Existing configuration file found - sample not installed" ; \
+ fi
+
+.if !exists(${LOGDIR})
+ @${MKDIR} ${LOGDIR}
+.endif
+
+### View short howto message
+
+ @${ECHO_MSG} "==================================================================="
+ @${ECHO_MSG} "= In order to activate ${PORTNAME} you have to edit squid.conf"
+ @${ECHO_MSG} "= To the contain \"redirect_program ${PREFIX}/bin/${PORTNAME}\""
+ @${ECHO_MSG} "= and create a configuration file for ${PORTNAME}."
+ @${ECHO_MSG} "="
+ @${ECHO_MSG} "= To activate the changes do a ${PREFIX}/sbin/squid -k reconfigure"
+ @${ECHO_MSG} "==================================================================="
+ @${ECHO_MSG} " "
+
+.include <bsd.port.mk>
diff --git a/www/squidguard/distinfo b/www/squidguard/distinfo
new file mode 100644
index 000000000000..162b60013064
--- /dev/null
+++ b/www/squidguard/distinfo
@@ -0,0 +1 @@
+MD5 (squidGuard-1.1.4.tar.gz) = 300a179d05fcba2068c4e766b607d73f
diff --git a/www/squidguard/files/patch-ab b/www/squidguard/files/patch-ab
new file mode 100644
index 000000000000..248dd6e013f3
--- /dev/null
+++ b/www/squidguard/files/patch-ab
@@ -0,0 +1,38 @@
+--- configure.orig Wed Mar 29 11:40:54 2000
++++ configure Fri Jun 2 08:44:14 2000
+@@ -1085,7 +1085,7 @@
+ fi
+ done
+ IFS="$ac_save_ifs"
+- test -z "$ac_cv_path_LYNX" && ac_cv_path_LYNX="/bin/false"
++ test -z "$ac_cv_path_LYNX" && ac_cv_path_LYNX="/usr/bin/false"
+ ;;
+ esac
+ fi
+@@ -1217,14 +1217,14 @@
+ LDFLAGS="$LDFLAGS $db_lib"
+
+
+-echo $ac_n "checking for db_version in -ldb""... $ac_c" 1>&6
+-echo "configure:1222: checking for db_version in -ldb" >&5
++echo $ac_n "checking for db_version in -ldb2""... $ac_c" 1>&6
++echo "configure:1222: checking for db_version in -ldb2" >&5
+ ac_lib_var=`echo db'_'db_version | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-ldb $LIBS"
++LIBS="-ldb2 $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 1230 "configure"
+ #include "confdefs.h"
+@@ -1258,7 +1258,7 @@
+ #define $ac_tr_lib 1
+ EOF
+
+- LIBS="-ldb $LIBS"
++ LIBS="-ldb2 $LIBS"
+
+ else
+ echo "$ac_t""no" 1>&6
diff --git a/www/squidguard/files/patch-ac b/www/squidguard/files/patch-ac
new file mode 100644
index 000000000000..5a97ebbb6894
--- /dev/null
+++ b/www/squidguard/files/patch-ac
@@ -0,0 +1,15 @@
+--- samples/sample.conf.in.orig Sun Jun 11 21:45:41 2000
++++ samples/sample.conf.in Sun Jun 11 21:46:54 2000
+@@ -1,9 +1,9 @@
+ #
+-# CONFIG FILE FOR SQUIDGUARD
++# SAMPLE CONFIG FILE FOR SQUIDGUARD
+ #
+
+-dbhome @prefix@/squidGuard/db
+-logdir @prefix@/squidGuard/logs
++dbhome %%DATADIR%%
++logdir %%LOGDIR%%
+
+ #
+ # TIME RULES:
diff --git a/www/squidguard/pkg-comment b/www/squidguard/pkg-comment
new file mode 100644
index 000000000000..e2b14f79ec4c
--- /dev/null
+++ b/www/squidguard/pkg-comment
@@ -0,0 +1 @@
+A fast redirector for squid
diff --git a/www/squidguard/pkg-descr b/www/squidguard/pkg-descr
new file mode 100644
index 000000000000..b5118ff1268c
--- /dev/null
+++ b/www/squidguard/pkg-descr
@@ -0,0 +1,3 @@
+squidGuard is a fast redirector using database stored blacklists.
+
+WWW: http://www.squidguard.org
diff --git a/www/squidguard/pkg-plist b/www/squidguard/pkg-plist
new file mode 100644
index 000000000000..8468f82726fd
--- /dev/null
+++ b/www/squidguard/pkg-plist
@@ -0,0 +1,41 @@
+bin/squidGuard
+share/doc/squidGuard/README
+share/doc/squidGuard/README.blacklists
+share/doc/squidGuard/configuration.html
+share/doc/squidGuard/configuration.txt
+share/doc/squidGuard/faq.html
+share/doc/squidGuard/faq.txt
+share/doc/squidGuard/index.html
+share/doc/squidGuard/installation.html
+share/doc/squidGuard/installation.txt
+share/doc/squidGuard/squidGuard.gif
+@dirrm share/doc/squidGuard
+@cwd %%DATADIR%%
+ads/domains
+ads/domains.db
+ads/urls
+ads/urls.db
+agressive/domains
+agressive/domains.db
+agressive/urls
+agressive/urls.db
+drugs/domains
+drugs/domains.db
+drugs/urls
+drugs/urls.db
+hacking/domains
+hacking/domains.db
+hacking/urls
+hacking/urls.db
+porn/domains
+porn/domains.db
+porn/expressions
+porn/urls
+porn/urls.db
+@dirrm ads
+@dirrm agressive
+@dirrm drugs
+@dirrm hacking
+@dirrm porn
+@cwd /
+@dirrm %%DATADIR%%