1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Update to 1.23.

This commit is contained in:
Maxim Sobolev 2000-06-07 08:00:48 +00:00
parent 670d3c8965
commit 251280a37c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=29293
7 changed files with 106 additions and 61 deletions

View File

@ -6,22 +6,21 @@
#
PORTNAME= squirm
PORTVERSION= 1.0b
PORTVERSION= 1.23
CATEGORIES= www
MASTER_SITES= http://www.senet.com.au/squirm/ \
http://www.elab.co.za/squirm/
DISTNAME= squirm-1.0betaB
EXTRACT_SUFX= .tgz
MAINTAINER= sobomax@FreeBSD.org
RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid22
RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid23
NO_PACKAGE= must set SQUID_UID and SQUID_GID before building
MAKE_ENV+= SQUID_UID=${SQUID_UID} SQUID_GID=${SQUID_GID}
post-patch:
@${PERL} -pi -e "s.%PREFIX%.${PREFIX}.g" ${WRKSRC}/paths.h
PLIST_SUB= SQUID_UID=${SQUID_UID} SQUID_GID=${SQUID_GID}
pre-install:
.if defined(SQUID_UID) && defined(SQUID_GID)

View File

@ -1 +1 @@
MD5 (squirm-1.0betaB.tar.gz) = c77e4fbd76dc6a86786071afc861b408
MD5 (squirm-1.23.tgz) = aedcaab22ca3ae0c8440bd0ef9d6e75e

View File

@ -1,46 +1,59 @@
--- Makefile.real.orig Wed Mar 11 10:23:51 1998
+++ Makefile.real Tue Jun 29 15:21:37 1999
@@ -1,31 +1,31 @@
# Makefile for Squirm
#
--- Makefile.orig Fri Mar 31 08:07:54 2000
+++ Makefile Wed Jun 7 10:57:22 2000
@@ -5,16 +5,16 @@
-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
# The path to install squirm under
-PREFIX=/usr/local/squirm
+#PREFIX=/usr/local/squirm
# The username that squid runs as (see cache_effective_user in squid.conf)
-USER=squid
+USER=$(SQUID_UID)
# The group that squid runs as (see cache_effective_group in squid.conf)
-GROUP=squid
+GROUP=$(SQUID_GID)
# The group that the root user belongs to
-ROOT_GROUP = bin
+ROOT_GROUP = wheel
# The regex library (-lgnuregex is common on FreeBSD, none for some Linux'es)
EXTRALIBS=-lgnuregex
@@ -29,26 +29,25 @@
OFILES = squirm.o main.o config.o log.o lists.o ip.o util.o
HFILES = squirm.h paths.h lists.h log.h ip.h util.h
-CC=gcc
+PREFIX?= /usr/local
+CC?= cc
#CC=checkergcc
+CC?=gcc
#EXTRALIBS=-lregex
-#EXTRALIBS=
+EXTRALIBS= -lgnuregex
-OPTIMISATION=-O3
+OPTIMISATION=
BINARIES = squirm
-CFLAGS = -O3 -Wall -funroll-loops
+CFLAGS?= -O3 -Wall -funroll-loops
#CFLAGS = -Wall -g
-CFLAGS = -O3 -Wall -funroll-loops -DPREFIX=\"$(PREFIX)\"
+CFLAGS += -g -Wall -funroll-loops -DPREFIX=\"$(PREFIX)\"
#CFLAGS = -Wall -g -DPREFIX=\"$(PREFIX)\"
#CFLAGS = -Wall -g -DDEBUG
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 750 -o root -g $(SQUID_GID) -d $(PREFIX)/etc/squirm
+ install -c -m 750 -o $(SQUID_UID) -g $(SQUID_GID) -d $(PREFIX)/squirm/logs
+ install -c -m 640 -o root -g $(SQUID_GID) squirm.local.dist squirm.patterns.dist \
+ $(PREFIX)/etc/squirm
+ install -c -m 755 -o root -g wheel --strip squirm $(PREFIX)/bin
- install -m 755 -o root -g $(ROOT_GROUP) -d $(PREFIX) \
- $(PREFIX)/bin
- install -m 770 -o root -g $(GROUP) -d $(PREFIX)/etc
- install -m 750 -o $(USER) -g $(GROUP) -d $(PREFIX)/logs
- install -m 660 -c -o root -g $(GROUP) squirm.conf.dist squirm.patterns.dist \
- $(PREFIX)/etc
- install -m 755 -o root -g $(ROOT_GROUP) --strip squirm $(PREFIX)/bin
+ install -m 755 -o root -g $(ROOT_GROUP) -d $(PREFIX)/squirm
+ install -m 750 -o root -g $(GROUP) -d $(PREFIX)/etc/squirm
+ install -m 750 -o $(USER) -g $(GROUP) -d $(PREFIX)/squirm/logs
+ install -m 640 -c -o root -g $(GROUP) squirm.conf.dist squirm.patterns.dist \
+ $(PREFIX)/etc/squirm
+ $(BSD_INSTALL_PROGRAM) squirm $(PREFIX)/bin
squirm.o: squirm.c $(HFILES)
$(CC) -c squirm.c $(CFLAGS)
$(CC) -c squirm.c $(CFLAGS)

View File

@ -1,26 +1,24 @@
--- paths.h.orig Sun Mar 8 21:56:22 1998
+++ paths.h Mon Jun 7 22:53:48 1999
@@ -14,15 +14,15 @@
--- ../squirm-1.23.orig/paths.h Fri Mar 31 08:08:43 2000
+++ paths.h Wed Jun 7 10:26:23 2000
@@ -17,14 +17,14 @@
/************* 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"
-#define LOG_MATCH PREFIX"/logs/squirm.match"
-#define LOG_FAIL PREFIX"/logs/squirm.fail"
-#define LOG_ERROR PREFIX"/logs/squirm.error"
-#define LOG_WHERE PREFIX"/logs/squirm.where"
-#define LOG_DEBUG PREFIX"/logs/squirm.debug"
-#define LOG_INFO PREFIX"/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"
-#define SQUIRM_CONF PREFIX"/etc/squirm.conf"
+#define SQUIRM_CONF PREFIX"/etc/squirm/squirm.conf"
#endif

11
www/squirm/files/patch-ac Normal file
View File

@ -0,0 +1,11 @@
--- ../squirm-1.23.orig/config.c Fri Mar 31 08:08:04 2000
+++ config.c Wed Jun 7 10:27:39 2000
@@ -277,7 +277,7 @@
return 0;
}
- fq_pattern_filename = gen_fq_name(pattern_filename, "etc/");
+ fq_pattern_filename = gen_fq_name(pattern_filename, "etc/squirm/");
if (fq_pattern_filename == NULL) {
log(LOG_ERROR, "couldn't allocate memory in parse_squirm_conf()\n");
dodo_mode = 1;

24
www/squirm/files/patch-ad Normal file
View File

@ -0,0 +1,24 @@
--- squirm.conf.dist.orig Wed Jun 7 10:37:09 2000
+++ squirm.conf.dist Wed Jun 7 10:37:27 2000
@@ -26,8 +26,8 @@
begin
network 10.0.0.0/8
network 192.168.0.0/24
-#log logs/match.log
-#abort-log logs/abort.log
+#log squirm/logs/match.log
+#abort-log squirm/logs/abort.log
pattern squirm.patterns get
pattern common.patterns all
end
@@ -35,8 +35,8 @@
begin
network 127.0.0.0/24
-log logs/private-match.log
-abort-log logs/private-abort.log
+log squirm/logs/private-match.log
+abort-log squirm/logs/private-abort.log
pattern private.patterns get
pattern common.pattterns all
end

View File

@ -1,8 +1,8 @@
bin/squirm
etc/squirm/squirm.local.dist
etc/squirm/squirm.conf.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
@exec install -m 755 -o root -g wheel -d %D/squirm
@exec install -m 750 -o %%SQUID_UID%% -g %%SQUID_GID%% -d %D/squirm/logs
@dirrm etc/squirm
@dirrm squirm/logs
@dirrm squirm