1996-06-03 02:21:13 +00:00
|
|
|
# New ports collection makefile for: squid
|
1998-04-26 07:57:21 +00:00
|
|
|
# Version required: 1.2-beta20
|
1996-11-06 17:21:00 +00:00
|
|
|
# Date created: Thu Nov 7 00:53:18 WST 1996
|
|
|
|
# Whom: Peter Wemm <peter@freebsd.org>
|
1996-06-03 02:21:13 +00:00
|
|
|
#
|
1998-04-26 07:57:21 +00:00
|
|
|
# $Id: Makefile,v 1.49 1998/04/10 05:11:37 peter Exp $
|
1996-06-03 02:21:13 +00:00
|
|
|
#
|
|
|
|
|
1998-04-26 07:57:21 +00:00
|
|
|
DISTNAME= squid-1.2.beta20
|
|
|
|
PKGNAME= squid-1.2b20
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= www
|
1996-07-10 21:50:18 +00:00
|
|
|
MASTER_SITES= \
|
1997-12-06 12:28:14 +00:00
|
|
|
ftp://squid.nlanr.net/pub/squid-1.2.beta/ \
|
|
|
|
ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/squid-1.2.beta/ \
|
|
|
|
ftp://sunsite.auc.dk/pub/infosystems/squid/squid-1.2.beta/ \
|
|
|
|
ftp://ftp.net.lut.ac.uk/squid/squid-1.2.beta/
|
1996-06-03 02:21:13 +00:00
|
|
|
EXTRACT_SUFX= -src.tar.gz
|
|
|
|
|
1998-04-10 05:11:38 +00:00
|
|
|
PATCH_SITES+= http://squid.nlanr.net/Squid/1.2.beta/
|
1998-04-26 07:57:21 +00:00
|
|
|
PATCHFILES+= 1.2.beta20-1.patches
|
1997-03-23 15:43:45 +00:00
|
|
|
|
1996-11-06 17:21:00 +00:00
|
|
|
MAINTAINER= peter@freebsd.org
|
1996-06-03 02:21:13 +00:00
|
|
|
|
1998-04-26 07:57:21 +00:00
|
|
|
DIST_SUBDIR= squid1.2b20
|
1996-06-03 02:21:13 +00:00
|
|
|
GNU_CONFIGURE= yes
|
1996-11-06 16:37:26 +00:00
|
|
|
# Follow the apache port's lead...
|
1998-02-08 03:39:06 +00:00
|
|
|
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --sysconfdir=${PREFIX}/etc/squid \
|
|
|
|
--localstatedir=${PREFIX}/squid
|
1996-06-03 02:21:13 +00:00
|
|
|
STRIP= # won't install scripts correctly othervise.
|
1996-11-06 16:37:26 +00:00
|
|
|
MAKEFILE= makefile
|
1998-02-16 13:16:43 +00:00
|
|
|
NO_LATEST_LINK= yes
|
1996-06-03 02:21:13 +00:00
|
|
|
|
1998-01-04 09:30:21 +00:00
|
|
|
# Some other configure options..
|
1998-01-10 14:38:29 +00:00
|
|
|
# - Compile and use the malloc package from Doug Lea
|
|
|
|
#CONFIGURE_ARGS+= --enable-dlmalloc
|
1998-02-08 03:39:06 +00:00
|
|
|
# - Compile and use the supplied GNUregex routines instead of BSD regex.
|
|
|
|
#CONFIGURE_ARGS+= --enable-gnuregex
|
1998-01-10 14:38:29 +00:00
|
|
|
# - Use tree function to store ACL lists
|
1998-04-10 05:11:38 +00:00
|
|
|
#CONFIGURE_ARGS+= --enable-splaytree
|
1998-02-08 03:39:06 +00:00
|
|
|
# - 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-04-10 05:11:38 +00:00
|
|
|
# - Use ASYNC disk I/O (Requires real pthreads)
|
1998-02-08 03:39:06 +00:00
|
|
|
#CONFIGURE_ARGS+= --enable-async-io
|
1998-01-10 14:38:29 +00:00
|
|
|
# - Enable ICMP pinging for heirarchy stats and selection
|
|
|
|
#CONFIGURE_ARGS+= --enable-icmp
|
|
|
|
# - Enable delay hack to limit bandwidth usage
|
|
|
|
#CONFIGURE_ARGS+= --enable-delay-hack
|
1998-03-26 13:29:13 +00:00
|
|
|
# - Enable generic memory use tracing
|
|
|
|
#CONFIGURE+ARGS+= --enable-mem-gen-trace
|
1998-01-10 14:38:29 +00:00
|
|
|
# - Enable logging of the User-Agent header
|
|
|
|
#CONFIGURE_ARGS+= --enable-useragent-log
|
|
|
|
# - Kill parent (eg: RunCache) on shutdown (use with great care!!)
|
|
|
|
#CONFIGURE_ARGS+= --enable-kill-parent
|
|
|
|
# - 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-01-04 09:30:21 +00:00
|
|
|
|
1996-06-03 02:21:13 +00:00
|
|
|
post-install:
|
1997-03-31 11:14:54 +00:00
|
|
|
cd ${WRKSRC}/src; make install-pinger
|
1998-02-09 01:35:20 +00: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 14:36:12 +00:00
|
|
|
if [ -f ${PREFIX}/libexec/${file} ] ; then \
|
|
|
|
strip ${PREFIX}/libexec/${file} ; \
|
1997-03-31 11:14:54 +00:00
|
|
|
fi
|
1996-06-03 02:21:13 +00:00
|
|
|
.endfor
|
1997-01-07 18:49:07 +00:00
|
|
|
${MKDIR} ${PREFIX}/squid/logs
|
|
|
|
${MKDIR} ${PREFIX}/squid/cache
|
1996-11-06 16:37:26 +00: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 08:26:06 +00:00
|
|
|
echo " (cd /tmp; /usr/local/sbin/RunCache >/dev/null 2>&1 &) ; echo -n ' squid'" >> ${PREFIX}/etc/rc.d/squid.sh; \
|
1996-11-06 16:37:26 +00:00
|
|
|
echo "fi" >> ${PREFIX}/etc/rc.d/squid.sh; \
|
|
|
|
chmod 751 ${PREFIX}/etc/rc.d/squid.sh; \
|
|
|
|
fi
|
1996-06-03 02:21:13 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
1998-01-21 03:06:06 +00:00
|
|
|
|
1998-02-08 03:04:59 +00:00
|
|
|
# Put on peril sensitive sunglasses in case of stupid GNU make v2.5!
|
1998-01-21 03:06:06 +00:00
|
|
|
PATCH:= env POSIXLY_CORRECT=yes ${PATCH}
|