summaryrefslogtreecommitdiff
path: root/www/squirm/files
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-06-09 01:39:22 +0000
committerSteve Price <steve@FreeBSD.org>1999-06-09 01:39:22 +0000
commitbccc81a91973b11370eef059b3a1460a4748c370 (patch)
tree26f7f180bc780dbce79d7b06deaf39341aa45cd6 /www/squirm/files
parentInitial import of thttpd version 2.04. (diff)
Initial import of squirm version 1.0b.
A fast & configurable redirector for the Squid. PR: 11885 Submitted by: Maxim Sobolev <sobomax@altavista.net>
Notes
Notes: svn path=/head/; revision=19363
Diffstat (limited to 'www/squirm/files')
-rw-r--r--www/squirm/files/patch-aa46
-rw-r--r--www/squirm/files/patch-ab26
2 files changed, 72 insertions, 0 deletions
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