1996-06-02 22:21:13 -04:00
|
|
|
# New ports collection makefile for: squid
|
1998-01-04 04:30:21 -05:00
|
|
|
# Version required: 1.2-beta10
|
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
|
|
|
#
|
1998-01-04 04:30:21 -05:00
|
|
|
# $Id: Makefile,v 1.35 1997/12/06 12:27:32 peter Exp $
|
1996-06-02 22:21:13 -04:00
|
|
|
#
|
|
|
|
|
1998-01-04 04:30:21 -05:00
|
|
|
DISTNAME= squid-1.2.beta10
|
|
|
|
PKGNAME= squid-1.2b10
|
1996-11-18 06:44:27 -05:00
|
|
|
CATEGORIES= www
|
1996-07-10 17:50:18 -04:00
|
|
|
MASTER_SITES= \
|
1997-12-06 07:28:14 -05: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-02 22:21:13 -04:00
|
|
|
EXTRACT_SUFX= -src.tar.gz
|
|
|
|
|
1997-12-06 07:28:14 -05:00
|
|
|
PATCH_SITES+= http://squid.nlanr.net/Squid/1.2.beta/
|
1998-01-04 04:30:21 -05:00
|
|
|
PATCHFILES+= 1.2.beta10.patches
|
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-01-04 04:30:21 -05:00
|
|
|
DIST_SUBDIR= squid1.2b10
|
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...
|
|
|
|
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/squid --bindir=${PREFIX}/sbin \
|
|
|
|
--libexecdir=${PREFIX}/sbin --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
|
1996-06-02 22:21:13 -04:00
|
|
|
|
1997-12-06 07:28:14 -05:00
|
|
|
# To turn on SNMP, uncomment these three. I'm not sure how this works,
|
|
|
|
# I think you need some sort of snmp multiplexor if you run another snmp
|
|
|
|
# server as well.
|
|
|
|
#MAKE_ENV+= SQUID_SNMP="-DSQUID_SNMP=1"
|
|
|
|
#MAKE_ENV+= SQUID_MIB="mib.txt"
|
|
|
|
#MAKE_ENV+= SQUID_SNMP_LIBS="-L../snmplib -lsnmp"
|
|
|
|
|
1998-01-04 04:30:21 -05:00
|
|
|
# Some other configure options..
|
|
|
|
# - Use hash function as store index, instead of URL (trades CPU for memory)
|
|
|
|
#CONFIGURE_ARGS+= --enable-hashkey=sha
|
|
|
|
#CONFIGURE_ARGS+= --enable-hashkey=md5
|
|
|
|
# - Use ASYNC disk I/O (Requires pthreads, probably doesn't work yet)
|
|
|
|
#CONFIGURE_ARGS+= --enable-async-io
|
|
|
|
|
|
|
|
# There are several other configurable options in ${WRKSRC}/src/options.h[.in]
|
|
|
|
# CACHEMGR_HOSTNAME - alternate method for cachemgr.cgi to get hostname
|
|
|
|
# USE_ICMP 1 - enable ICMP pings (using pinger) for selecting hosts.
|
|
|
|
# DELAY_HACK 1 - see code.
|
|
|
|
# USE_USERAGENT_LOG 1 - log user agents
|
|
|
|
# KILL_PARENT_OPT 1 - kill parent (such as runcache) on SIGTERM etc.
|
|
|
|
# USE_SPLAY_TREE 1 - use splay or binary trees for storing and searching
|
|
|
|
# USE_BIN_TREE 1 the in-memory cache contents table.
|
|
|
|
# ALARM_UPDATES_TIME 1 - optimize gettimeofday calls (default on)
|
|
|
|
# USE_ARP_ACL 1 - enable ethernet hardware address ACL's
|
1997-01-18 22:24:13 -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
|
1997-12-06 07:28:14 -05:00
|
|
|
.for file in cachemgr.cgi client dnsserver pinger squid
|
1997-03-31 06:14:54 -05:00
|
|
|
if [ -f ${PREFIX}/sbin/${file} ] ; then \
|
|
|
|
strip ${PREFIX}/sbin/${file} ; \
|
|
|
|
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>
|