summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/squirm/Makefile31
-rw-r--r--www/squirm/distinfo1
-rw-r--r--www/squirm/files/patch-aa46
-rw-r--r--www/squirm/files/patch-ab26
-rw-r--r--www/squirm/pkg-comment1
-rw-r--r--www/squirm/pkg-descr24
-rw-r--r--www/squirm/pkg-plist8
7 files changed, 137 insertions, 0 deletions
diff --git a/www/squirm/Makefile b/www/squirm/Makefile
new file mode 100644
index 000000000000..887f047d466c
--- /dev/null
+++ b/www/squirm/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: squirm
+# Version required: 1.0betaB
+# Date created: 24 May 1999
+# Whom: Maxim Sobolev <sobomax@altavista.net>
+#
+# $Id$
+#
+
+DISTNAME= squirm-1.0betaB
+PKGNAME= squirm-1.0b
+CATEGORIES= www
+MASTER_SITES= http://www.senet.com.au/squirm/ \
+ http://www.elab.co.za/squirm/
+
+MAINTAINER= sobomax@altavista.net
+
+RUN_DEPENDS= ${PREFIX}/sbin/squid:${PORTSDIR}/www/squid22
+
+post-patch:
+ @${PERL} -pi -e "s.%PREFIX%.${PREFIX}.g" ${WRKSRC}/paths.h
+
+post-install:
+ @echo
+ @echo ' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
+ @echo ' You have to manually add "redirect_program ${PREFIX}/bin/squirm"'
+ @echo ' into your squid.conf file.'
+ @echo ' For help on configuring squirm try http://www.senet.com.au/squirm/'
+ @echo ' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
+ @echo
+
+.include <bsd.port.mk>
diff --git a/www/squirm/distinfo b/www/squirm/distinfo
new file mode 100644
index 000000000000..cef68ef76b48
--- /dev/null
+++ b/www/squirm/distinfo
@@ -0,0 +1 @@
+MD5 (squirm-1.0betaB.tar.gz) = c77e4fbd76dc6a86786071afc861b408
diff --git a/www/squirm/files/patch-aa b/www/squirm/files/patch-aa
new file mode 100644
index 000000000000..e394456ea353
--- /dev/null
+++ b/www/squirm/files/patch-aa
@@ -0,0 +1,46 @@
+diff -ruN ../squirm-1.0betaB.orig/Makefile.real ./Makefile.real
+--- Makefile.real.orig Wed Mar 11 10:23:51 1998
++++ Makefile.real Tue May 25 17:15:36 1999
+@@ -1,31 +1,30 @@
+ # Makefile for Squirm
+ #
+
+-OFILES = squirm.o main.o config.o log.o lists.o regex.o
++OFILES = squirm.o main.o config.o log.o lists.o #regex.o
+
+-HFILES = squirm.h paths.h lists.h log.h regex.h
++HFILES = squirm.h paths.h lists.h log.h #regex.h
+
+-CC=gcc
++CC?=cc
+ #CC=checkergcc
+
+-#EXTRALIBS=-lregex
++EXTRALIBS=-lgnuregex
+ #EXTRALIBS=
+
+ BINARIES = squirm
+
+-CFLAGS = -O3 -Wall -funroll-loops
++CFLAGS? = -O3 -Wall -funroll-loops
+ #CFLAGS = -Wall -g
+
+ all: $(BINARIES)
+
+ install: all
+- install -m 755 -o root -g root -d /usr/local/squirm \
+- /usr/local/squirm/bin
+- install -m 770 -o root -g squid -d /usr/local/squirm/etc
+- install -m 750 -o squid -g squid -d /usr/local/squirm/logs
+- install -m 660 -o root -g squid squirm.local.dist squirm.patterns.dist \
+- /usr/local/squirm/etc
+- install -m 755 -o root -g root --strip squirm /usr/local/squirm/bin
++ install -c -m 755 -o root -g wheel -d ${PREFIX}/squirm
++ install -c -m 770 -o root -g wheel -d ${PREFIX}/etc/squirm
++ install -c -m 750 -o nobody -g nogroup -d ${PREFIX}/squirm/logs
++ install -c -m 660 -o root -g nogroup squirm.local.dist squirm.patterns.dist \
++ ${PREFIX}/etc/squirm
++ install -c -m 755 -o root -g wheel --strip squirm ${PREFIX}/bin
+
+ squirm.o: squirm.c $(HFILES)
+ $(CC) -c squirm.c $(CFLAGS)
diff --git a/www/squirm/files/patch-ab b/www/squirm/files/patch-ab
new file mode 100644
index 000000000000..dfd6a6f0942f
--- /dev/null
+++ b/www/squirm/files/patch-ab
@@ -0,0 +1,26 @@
+--- paths.h.orig Sun Mar 8 21:56:22 1998
++++ paths.h Mon Jun 7 22:53:48 1999
+@@ -14,15 +14,15 @@
+
+ /************* Log File Locations (must be writable by **********/
+ /************* the user given in the squid.conf file **********/
+-#define LOG_MATCH "/usr/local/squirm/logs/squirm.match"
+-#define LOG_FAIL "/usr/local/squirm/logs/squirm.fail"
+-#define LOG_ERROR "/usr/local/squirm/logs/squirm.error"
+-#define LOG_WHERE "/usr/local/squirm/logs/squirm.where"
+-#define LOG_DEBUG "/usr/local/squirm/logs/squirm.debug"
+-#define LOG_INFO "/usr/local/squirm/logs/squirm.info"
++#define LOG_MATCH "%PREFIX%/squirm/logs/squirm.match"
++#define LOG_FAIL "%PREFIX%/squirm/logs/squirm.fail"
++#define LOG_ERROR "%PREFIX%/squirm/logs/squirm.error"
++#define LOG_WHERE "%PREFIX%/squirm/logs/squirm.where"
++#define LOG_DEBUG "%PREFIX%/squirm/logs/squirm.debug"
++#define LOG_INFO "%PREFIX%/squirm/logs/squirm.info"
+
+ /************* Configuration file locations ***********/
+-#define LOCAL_ADDRESSES "/usr/local/squirm/etc/squirm.local"
+-#define REDIRECT_PATTERNS "/usr/local/squirm/etc/squirm.patterns"
++#define LOCAL_ADDRESSES "%PREFIX%/etc/squirm/squirm.local"
++#define REDIRECT_PATTERNS "%PREFIX%/etc/squirm/squirm.patterns"
+
+ #endif
diff --git a/www/squirm/pkg-comment b/www/squirm/pkg-comment
new file mode 100644
index 000000000000..5c2835789123
--- /dev/null
+++ b/www/squirm/pkg-comment
@@ -0,0 +1 @@
+A fast & configurable redirector for the Squid.
diff --git a/www/squirm/pkg-descr b/www/squirm/pkg-descr
new file mode 100644
index 000000000000..c93f36cc3c0a
--- /dev/null
+++ b/www/squirm/pkg-descr
@@ -0,0 +1,24 @@
+Squirm is a fast & configurable redirector for the Squid.
+
+Squirm has the following features:
+
+ -Very, very fast
+ -Virtually no memory usage
+ -It can re-read it's config files while running by sending it a HUP signal
+ -Interactive test mode for checking new configs
+ -Full regular expression matching and replacement
+ -Config files for patterns and IP addresses.
+ -If you mess up the config file, Squirm runs in Dodo Mode so your squid
+ keeps working :-)
+
+It has been written because the existing redirector scripts used too much
+memory and all were too slow for Squids that receive a lot of requests.
+
+It can handle nifty things like file mirrors with the regex pattern replacement
+strings, and do site blocking - useful for schools. It could also do such
+things as banner add rewriting, and just about anything else :-)
+
+WWW: http://www.senet.com.au/squirm/
+
+- Maxim Sobolev
+sobomax@altavista.net
diff --git a/www/squirm/pkg-plist b/www/squirm/pkg-plist
new file mode 100644
index 000000000000..47a3c5d45afe
--- /dev/null
+++ b/www/squirm/pkg-plist
@@ -0,0 +1,8 @@
+bin/squirm
+etc/squirm/squirm.local.dist
+etc/squirm/squirm.patterns.dist
+@comment @exec install -m 755 -o root -g wheel -d %D/squirm
+@comment @exec install -m 750 -o nobody -g nogroup -d %D/squirm/logs
+@dirrm etc/squirm
+@dirrm squirm/logs
+@dirrm squirm