Bug 11885 - [NEW PORT] Squirm - redirector for squid cache
Summary: [NEW PORT] Squirm - redirector for squid cache
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-05-25 16:40 UTC by sobomax
Modified: 1999-06-09 02:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sobomax 1999-05-25 16:40:02 UTC
# 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:
#
#	squirm
#	squirm/pkg
#	squirm/pkg/PLIST
#	squirm/pkg/COMMENT
#	squirm/pkg/DESCR
#	squirm/files
#	squirm/files/md5
#	squirm/patches
#	squirm/patches/patch-aa
#	squirm/patches/patch-ab
#	squirm/Makefile
#
echo c - squirm
mkdir -p squirm > /dev/null 2>&1
echo c - squirm/pkg
mkdir -p squirm/pkg > /dev/null 2>&1
echo x - squirm/pkg/PLIST
sed 's/^X//' >squirm/pkg/PLIST << 'END-of-squirm/pkg/PLIST'
Xbin/squirm
Xetc/squirm/squirm.local.dist
Xetc/squirm/squirm.patterns.dist
X@exec install -m 755 -o root -g wheel -d %D/squirm
X@exec install -m 750 -o nobody -g nogroup -d %D/squirm/logs
X@dirrm etc/squirm
X@dirrm squirm/logs
X@dirrm squirm
END-of-squirm/pkg/PLIST
echo x - squirm/pkg/COMMENT
sed 's/^X//' >squirm/pkg/COMMENT << 'END-of-squirm/pkg/COMMENT'
XSquirm is a fast & configurable redirector for the Squid.
END-of-squirm/pkg/COMMENT
echo x - squirm/pkg/DESCR
sed 's/^X//' >squirm/pkg/DESCR << 'END-of-squirm/pkg/DESCR'
XSquirm is a fast & configurable redirector for the Squid.
X
XSquirm has the following features:
X
X     -Very, very fast
X     -Virtually no memory usage
X     -It can re-read it's config files while running by sending it a HUP signal
X     -Interactive test mode for checking new configs
X     -Full regular expression matching and replacement
X     -Config files for patterns and IP addresses.
X     -If you mess up the config file, Squirm runs in Dodo Mode so your squid
X      keeps working :-)
X
XIt has been written because the existing redirector scripts used too much
Xmemory and all were too slow for Squids that receive a lot of requests.
X
XIt can handle nifty things like file mirrors with the regex pattern replacement
Xstrings, and do site blocking - useful for schools. It could also do such
Xthings as banner add rewriting, and just about anything else :-)
X
XWWW: http://www.senet.com.au/squirm/
X
X- Maxim Sobolev
Xsobomax@altavista.net
END-of-squirm/pkg/DESCR
echo c - squirm/files
mkdir -p squirm/files > /dev/null 2>&1
echo x - squirm/files/md5
sed 's/^X//' >squirm/files/md5 << 'END-of-squirm/files/md5'
XMD5 (squirm-1.0betaB.tar.gz) = c77e4fbd76dc6a86786071afc861b408
END-of-squirm/files/md5
echo c - squirm/patches
mkdir -p squirm/patches > /dev/null 2>&1
echo x - squirm/patches/patch-aa
sed 's/^X//' >squirm/patches/patch-aa << 'END-of-squirm/patches/patch-aa'
Xdiff -ruN ../squirm-1.0betaB.orig/Makefile.real ./Makefile.real
X--- Makefile.real.orig	Wed Mar 11 10:23:51 1998
X+++ Makefile.real	Tue May 25 17:15:36 1999
X@@ -1,31 +1,30 @@
X # Makefile for Squirm
X #
X 
X-OFILES = squirm.o main.o config.o log.o lists.o regex.o
X+OFILES = squirm.o main.o config.o log.o lists.o #regex.o
X 
X-HFILES = squirm.h paths.h lists.h log.h regex.h
X+HFILES = squirm.h paths.h lists.h log.h #regex.h
X 
X-CC=gcc
X+CC?=cc
X #CC=checkergcc
X 
X-#EXTRALIBS=-lregex
X+EXTRALIBS=-lgnuregex
X #EXTRALIBS=
X 
X BINARIES = squirm
X 
X-CFLAGS = -O3 -Wall -funroll-loops
X+CFLAGS? = -O3 -Wall -funroll-loops
X #CFLAGS = -Wall -g
X 
X all:	$(BINARIES)
X 
X install:	all
X-			install -m 755 -o root -g root -d /usr/local/squirm \
X-			/usr/local/squirm/bin
X-			install -m 770 -o root -g squid -d /usr/local/squirm/etc
X-			install -m 750 -o squid -g squid -d /usr/local/squirm/logs
X-			install -m 660 -o root -g squid squirm.local.dist squirm.patterns.dist \
X-			/usr/local/squirm/etc
X-			install -m 755 -o root -g root --strip squirm /usr/local/squirm/bin
X+	install -m 755 -o root -g wheel -d /usr/local/squirm
X+	install -m 770 -o root -g wheel -d /usr/local/etc/squirm
X+	install -m 750 -o nobody -g nogroup -d /usr/local/squirm/logs
X+	install -c -m 660 -o root -g nogroup squirm.local.dist squirm.patterns.dist \
X+	/usr/local/etc/squirm
X+	install -c -m 755 -o root -g wheel --strip squirm /usr/local/bin
X 			
X squirm.o:	squirm.c $(HFILES)
X 			$(CC) -c squirm.c 		$(CFLAGS)
END-of-squirm/patches/patch-aa
echo x - squirm/patches/patch-ab
sed 's/^X//' >squirm/patches/patch-ab << 'END-of-squirm/patches/patch-ab'
Xdiff -ruN ../squirm-1.0betaB.orig/paths.h ./paths.h
X--- paths.h.orig	Mon Mar  9 05:56:22 1998
X+++ paths.h	Tue May 25 16:27:33 1999
X@@ -22,7 +22,7 @@
X #define LOG_INFO  "/usr/local/squirm/logs/squirm.info"
X 
X /*************  Configuration file locations  ***********/
X-#define LOCAL_ADDRESSES   "/usr/local/squirm/etc/squirm.local"
X-#define REDIRECT_PATTERNS "/usr/local/squirm/etc/squirm.patterns"
X+#define LOCAL_ADDRESSES   "/usr/local/etc/squirm/squirm.local"
X+#define REDIRECT_PATTERNS "/usr/local/etc/squirm/squirm.patterns"
X 
X #endif
END-of-squirm/patches/patch-ab
echo x - squirm/Makefile
sed 's/^X//' >squirm/Makefile << 'END-of-squirm/Makefile'
X# New ports collection makefile for:  squirm
X# Version required: 1.0betaB
X# Date created:     24 May 1999
X# Whom:             Maxim Sobolev <sobomax@altavista.net>
X#
X# $Id$
X#
X
XDISTNAME=       squirm-1.0betaB
XPKGNAME=	squirm-1.0b
XCATEGORIES=     www
XMASTER_SITES=   http://www.senet.com.au/squirm/ \
X		http://www.elab.co.za/squirm/
X
XMAINTAINER= sobomax@altavista.net
X
XRUN_DEPENDS=   /usr/local/sbin/squid:${PORTSDIR}/www/squid22
X
Xpost-install:
X	@echo
X	@echo ' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
X	@echo '  You have to manually add "redirect_program /usr/local/bin/squirm"'
X	@echo '  into your squid.conf file.'
X	@echo '  For help on configuring squirm try http://www.senet.com.au/squirm/'
X	@echo ' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
X	@echo
X
X.include <bsd.port.mk>
END-of-squirm/Makefile
exit
Comment 1 Steve Price freebsd_committer freebsd_triage 1999-06-09 02:39:00 UTC
State Changed
From-To: open->closed

New port committed, thanks!