This commit is contained in:
marc 1998-09-14 01:36:52 +00:00
parent d93c5154ad
commit a4ded74380
9 changed files with 150 additions and 0 deletions

17
www/squid/Makefile Normal file
View File

@ -0,0 +1,17 @@
# $OpenBSD: Makefile,v 1.1.1.1 1998/09/14 01:36:52 marc Exp $
#
DISTNAME= squid-1.1.22-src
PKGNAME= squid-1.1.22
CATEGORIES= www
MASTER_SITES= ftp://mirror.aarnet.edu.au/pub/squid/squid-1.1/ \
ftp://squid.nlanr.net/pub/squid-1.1/
MAINTAINER= d@openbsd.org
WRKSRC= ${WRKDIR}/${PKGNAME}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=/etc --localstatedir=/var/squid
INSTALL_TARGET= -f makefile install
.include <bsd.port.mk>

1
www/squid/files/md5 Normal file
View File

@ -0,0 +1 @@
MD5 (squid-1.1.22-src.tar.gz) = 828101d443836c4bd362cf0b9e46e6a0

View File

@ -0,0 +1,14 @@
Suggest that the user/group www:www be used to run the cache.
--- src/squid.conf.pre.in.orig Sat Aug 8 13:49:34 1998
+++ src/squid.conf.pre.in Sat Aug 8 13:49:54 1998
@@ -879,7 +879,7 @@
# UID/GID to the UID/GID specified below. The default is not to
# change UID/GID.
#
-#cache_effective_user nobody nogroup
+cache_effective_user www www
# TAG: visible_hostname
# If you want to present a special hostname in error messages, etc,

View File

@ -0,0 +1,41 @@
remove the bogus hack that effectively ignores the --localstatedir option
--- configure.orig Sat Aug 8 13:57:15 1998
+++ configure Sat Aug 8 13:58:00 1998
@@ -573,11 +573,11 @@
REGEXLIB='' # -lregex
LIBREGEX='' # libregex.a
-if test "$libexecdir" = '${exec_prefix}/libexec'; then
- libexecdir='${bindir}'
- localstatedir='${prefix}'
-
-fi
+#if test "$libexecdir" = '${exec_prefix}/libexec'; then
+# libexecdir='${bindir}'
+# localstatedir='${prefix}'
+#
+#fi
if test -z "$CACHE_HTTP_PORT"; then
CACHE_HTTP_PORT="3128"
--- configure.in.orig Sat Aug 8 13:57:35 1998
+++ configure.in Wed Mar 18 10:11:58 1998
@@ -20,11 +20,11 @@
LIBREGEX='' # libregex.a
dnl use directory structure of cached as default (hack)
-if test "$libexecdir" = '${exec_prefix}/libexec'; then
- libexecdir='${bindir}'
- localstatedir='${prefix}'
-
-fi
+#if test "$libexecdir" = '${exec_prefix}/libexec'; then
+# libexecdir='${bindir}'
+# localstatedir='${prefix}'
+#
+#fi
if test -z "$CACHE_HTTP_PORT"; then
CACHE_HTTP_PORT="3128"

View File

@ -0,0 +1,11 @@
--- scripts/RunAccel.in.orig Sat Aug 8 14:33:13 1998
+++ scripts/RunAccel.in Sat Aug 8 14:33:40 1998
@@ -7,7 +7,7 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
-logdir=@localstatedir@
+logdir=@localstatedir@/logs
PATH=@bindir@:/bin:/usr/bin
export PATH

View File

@ -0,0 +1,11 @@
--- scripts/RunCache.in.orig Sat Aug 8 14:33:49 1998
+++ scripts/RunCache.in Sat Aug 8 14:34:00 1998
@@ -4,7 +4,7 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
-logdir=@localstatedir@
+logdir=@localstatedir@/logs
PATH=@bindir@:/bin:/usr/bin
export PATH

1
www/squid/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
Caching FTP and HTTP proxy

39
www/squid/pkg/DESCR Normal file
View File

@ -0,0 +1,39 @@
SQUID Internet Object Cache http://squid.nlanr.net/Squid/
--------------------------------------------------------
Squid is the result of efforts by numerous individuals from the
Internet community. Development is led by Duane Wessels of the
National Laboratory for Applied Network Research and funded by
the National Science Foundation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Squid is derived from the ``cached'' software from the ARPA-funded
Harvest research project. The Harvest home page is
http://harvest.cs.colorado.edu/.
Please use our mailing lists for questions, feedback and bug fixes.
squid-users@nlanr.net # general questions, pubilc forum
squid-bugs@nlanr.net # bugs and fixes
squid@nlanr.net # other feedback
To subscribe, write to the addresses below with 'Subscribe' in the
message subject or body
squid-users-request@nlanr.net
squid-users-digest-request@nlanr.net # daily digest

15
www/squid/pkg/PLIST Normal file
View File

@ -0,0 +1,15 @@
bin/RunCache
bin/RunAccel
bin/squid
bin/client
libexec/dnsserver
libexec/ftpget
libexec/unlinkd
libexec/cachemgr.cgi
/etc/squid.conf.default
@exec mkdir -p /var/squid/logs; chown www:www /var/squid/logs
@exec mkdir -p /var/squid/cache; chown www:www /var/squid/cache
@unexec rm -rf /var/squid/logs /var/squid/cache; rmdir /var/squid
@exec ln -s /var/squid/logs/squid.pid /var/run/squid.pid
@unexec rm -f /var/run/squid.pid
@exec echo 'Please wait while cache is initialised...'; %f/bin/squid -z