1996-06-02 22:21:13 -04:00
|
|
|
# New ports collection makefile for: squid
|
1998-12-26 10:55:47 -05:00
|
|
|
# Version required: 2.1.PATCH2
|
1996-11-06 12:21:00 -05:00
|
|
|
# Date created: Thu Nov 7 00:53:18 WST 1996
|
|
|
|
# Whom: Peter Wemm <peter@freebsd.org>
|
1996-06-02 22:21:13 -04:00
|
|
|
#
|
1999-04-18 02:46:51 -04:00
|
|
|
# $Id: Makefile,v 1.54 1998/12/26 15:55:47 peter Exp $
|
1996-06-02 22:21:13 -04:00
|
|
|
#
|
|
|
|
|
1998-12-26 10:55:47 -05:00
|
|
|
DISTNAME= squid-2.1.PATCH2
|
|
|
|
PKGNAME= squid-2.1
|
1996-11-18 06:44:27 -05:00
|
|
|
CATEGORIES= www
|
1996-07-10 17:50:18 -04:00
|
|
|
MASTER_SITES= \
|
1999-04-18 02:46:51 -04:00
|
|
|
ftp://squid.nlanr.net/pub/squid-2/STABLE/ \
|
|
|
|
ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/squid-2/STABLE/ \
|
|
|
|
ftp://sunsite.auc.dk/pub/infosystems/squid/squid-2/STABLE/ \
|
|
|
|
ftp://ftp.net.lut.ac.uk/squid/squid-2/STABLE/
|
1996-06-02 22:21:13 -04:00
|
|
|
EXTRACT_SUFX= -src.tar.gz
|
|
|
|
|
1998-12-26 10:55:47 -05:00
|
|
|
PATCH_SITES= http://squid.nlanr.net/Squid/v2/2.1/
|
|
|
|
PATCHFILES= squid-2.1.PATCH2-clientHandleIMSReply-leak.patch
|
1997-03-23 10:43:45 -05:00
|
|
|
|
1996-11-06 12:21:00 -05:00
|
|
|
MAINTAINER= peter@freebsd.org
|
1996-06-02 22:21:13 -04:00
|
|
|
|
1998-12-26 10:55:47 -05:00
|
|
|
DIST_SUBDIR= squid2.1
|
|
|
|
PATCH_DIST_STRIP= -p0
|
1996-06-02 22:21:13 -04:00
|
|
|
GNU_CONFIGURE= yes
|
1996-11-06 11:37:26 -05:00
|
|
|
# Follow the apache port's lead...
|
1998-02-07 22:39:06 -05:00
|
|
|
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --sysconfdir=${PREFIX}/etc/squid \
|
|
|
|
--localstatedir=${PREFIX}/squid
|
1996-06-02 22:21:13 -04:00
|
|
|
STRIP= # won't install scripts correctly othervise.
|
1996-11-06 11:37:26 -05:00
|
|
|
MAKEFILE= makefile
|
1998-02-16 08:16:43 -05:00
|
|
|
NO_LATEST_LINK= yes
|
1996-06-02 22:21:13 -04:00
|
|
|
|
1998-01-04 04:30:21 -05:00
|
|
|
# Some other configure options..
|
1998-01-10 09:38:29 -05:00
|
|
|
# - Compile and use the malloc package from Doug Lea
|
|
|
|
#CONFIGURE_ARGS+= --enable-dlmalloc
|
1998-02-07 22:39:06 -05:00
|
|
|
# - Compile and use the supplied GNUregex routines instead of BSD regex.
|
|
|
|
#CONFIGURE_ARGS+= --enable-gnuregex
|
|
|
|
# - Enable simple malloc debugging
|
|
|
|
#CONFIGURE_ARGS+= --enable-xmalloc-debug
|
|
|
|
# - Detailed trace of memory allocations
|
|
|
|
#CONFIGURE_ARGS+= --enable-xmalloc-debug-count
|
|
|
|
# - Show malloc statistics in cachemgr status pages
|
|
|
|
#CONFIGURE_ARGS+= --enable-xmalloc-statistics
|
1998-10-05 20:19:50 -04:00
|
|
|
# - Enable CARP support
|
|
|
|
#CONFIGURE_ARGS+= --enable-carp
|
1998-12-26 10:55:47 -05:00
|
|
|
# - Use ASYNC disk I/O (Requires real threads, apparently runs on 3.0 libc_r)
|
1998-02-07 22:39:06 -05:00
|
|
|
#CONFIGURE_ARGS+= --enable-async-io
|
1998-01-10 09:38:29 -05:00
|
|
|
# - Enable ICMP pinging for heirarchy stats and selection
|
|
|
|
#CONFIGURE_ARGS+= --enable-icmp
|
1998-10-05 20:19:50 -04:00
|
|
|
# - Enable delay pools to limit bandwidth usage
|
|
|
|
#CONFIGURE_ARGS+= --enable-delay-pools
|
1998-03-26 08:29:13 -05:00
|
|
|
# - Enable generic memory use tracing
|
|
|
|
#CONFIGURE+ARGS+= --enable-mem-gen-trace
|
1998-01-10 09:38:29 -05:00
|
|
|
# - Enable logging of the User-Agent header
|
|
|
|
#CONFIGURE_ARGS+= --enable-useragent-log
|
|
|
|
# - Kill parent (eg: RunCache) on shutdown (use with great care!!)
|
1998-10-05 20:19:50 -04:00
|
|
|
#CONFIGURE_ARGS+= --enable-kill-parent-hack
|
1998-01-10 09:38:29 -05:00
|
|
|
# - Turn on SNMP server support
|
|
|
|
#CONFIGURE_ARGS+= --enable-snmp
|
|
|
|
# - Optimize time updates to one per second rather than calling gettimeofday()
|
|
|
|
#CONFIGURE_ARGS+= --enable-time-hack
|
|
|
|
# - Set an explicit hostname in cachemgr.cgi
|
|
|
|
#CONFIGURE_ARGS+= --enable-cachemgr-hostname=some.hostname
|
|
|
|
# - Enable ACL based on ethernet address (eg: for machines with dynamic DHCP
|
|
|
|
# assigned IP addresses)
|
|
|
|
#CONFIGURE_ARGS+= --enable-arp-acl
|
1998-10-05 20:19:50 -04:00
|
|
|
# - Enable HTCP protocol
|
|
|
|
#CONFIGURE_ARGS+= --enable-htcp
|
|
|
|
# - Enable Forw/Via database
|
|
|
|
#CONFIGURE_ARGS+= --enable-forw-via-db
|
|
|
|
# - Use Cache Digests - see http://squid.nlanr.net/Squid/FAQ/FAQ-16.html
|
|
|
|
#CONFIGURE_ARGS+= --enable-cache-digests
|
|
|
|
# - Select language for Error pages (see errors dir)
|
|
|
|
#CONFIGURE_ARGS+= --enable-err-language=lang
|
|
|
|
# (--enable-poll is not needed, it's detected correctly on 3.0)
|
|
|
|
# - Strict HTTP compliance
|
|
|
|
#CONFIGURE_ARGS+= --disable-http-violations
|
|
|
|
# - Enable Transparent Proxy support for IP-Filter systems (incl 3.0)
|
|
|
|
#CONFIGURE_ARGS+= --enable-ipf-transparent
|
1998-01-04 04:30:21 -05:00
|
|
|
|
1996-06-02 22:21:13 -04:00
|
|
|
post-install:
|
1997-03-31 06:14:54 -05:00
|
|
|
cd ${WRKSRC}/src; make install-pinger
|
1998-02-08 20:35:20 -05:00
|
|
|
.for file in client squid
|
|
|
|
if [ -f ${PREFIX}/sbin/${file} ] ; then \
|
|
|
|
strip ${PREFIX}/sbin/${file} ; \
|
|
|
|
fi
|
|
|
|
.endfor
|
|
|
|
.for file in cachemgr.cgi dnsserver pinger unlinkd
|
1998-02-14 09:36:12 -05:00
|
|
|
if [ -f ${PREFIX}/libexec/${file} ] ; then \
|
|
|
|
strip ${PREFIX}/libexec/${file} ; \
|
1997-03-31 06:14:54 -05:00
|
|
|
fi
|
1996-06-02 22:21:13 -04:00
|
|
|
.endfor
|
1997-01-07 13:49:07 -05:00
|
|
|
${MKDIR} ${PREFIX}/squid/logs
|
|
|
|
${MKDIR} ${PREFIX}/squid/cache
|
1996-11-06 11:37:26 -05:00
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \
|
|
|
|
echo "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \
|
|
|
|
echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/squid.sh; \
|
|
|
|
echo "if [ -x /usr/local/sbin/RunCache -a -f /usr/local/etc/squid/squid.conf ]; then" >> ${PREFIX}/etc/rc.d/squid.sh; \
|
1996-11-12 03:26:06 -05:00
|
|
|
echo " (cd /tmp; /usr/local/sbin/RunCache >/dev/null 2>&1 &) ; echo -n ' squid'" >> ${PREFIX}/etc/rc.d/squid.sh; \
|
1996-11-06 11:37:26 -05:00
|
|
|
echo "fi" >> ${PREFIX}/etc/rc.d/squid.sh; \
|
|
|
|
chmod 751 ${PREFIX}/etc/rc.d/squid.sh; \
|
|
|
|
fi
|
1996-06-02 22:21:13 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|