2001-03-27 12:56:41 +00:00
|
|
|
# New ports collection makefile for: squid24
|
|
|
|
# Date created: Tue Mar 27 14:56:08 CEST 2001
|
|
|
|
# Whom: Adrian Chadd <adrian@FreeBSD.org>
|
1996-06-03 02:21:13 +00:00
|
|
|
#
|
1999-08-31 02:43:35 +00:00
|
|
|
# $FreeBSD$
|
1996-06-03 02:21:13 +00:00
|
|
|
#
|
|
|
|
|
2000-04-10 00:07:29 +00:00
|
|
|
PORTNAME= squid
|
2002-10-14 05:51:12 +00:00
|
|
|
PORTVERSION= 2.5
|
2003-04-09 08:31:30 +00:00
|
|
|
PORTREVISION= 3
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= www
|
1996-07-10 21:50:18 +00:00
|
|
|
MASTER_SITES= \
|
2002-10-13 21:07:00 +00:00
|
|
|
ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \
|
|
|
|
ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/%SUBDIR%/ \
|
|
|
|
ftp://sunsite.auc.dk/pub/infosystems/squid/%SUBDIR%/ \
|
|
|
|
ftp://ftp.net.lut.ac.uk/squid/%SUBDIR%/ \
|
|
|
|
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,}
|
|
|
|
MASTER_SITE_SUBDIR= squid-2/STABLE
|
2003-04-09 08:31:30 +00:00
|
|
|
DISTNAME= squid-2.5.STABLE2
|
2002-10-14 05:51:12 +00:00
|
|
|
EXTRACT_SUFX= .tar.gz
|
1996-06-03 02:21:13 +00:00
|
|
|
|
2002-10-14 05:51:12 +00:00
|
|
|
PATCH_SITES= http://www.squid-cache.org/Versions/v2/2.5/bugs/
|
2000-03-05 14:08:51 +00:00
|
|
|
|
2001-01-12 06:46:04 +00:00
|
|
|
MAINTAINER= adrian@freebsd.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= The successful WWW proxy cache and accelerator
|
1996-06-03 02:21:13 +00:00
|
|
|
|
2002-10-14 05:51:12 +00:00
|
|
|
DIST_SUBDIR= squid2.5
|
2003-03-09 10:59:07 +00:00
|
|
|
PATCH_DIST_STRIP= -p1
|
1996-06-03 02:21:13 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2002-11-04 22:57:37 +00:00
|
|
|
USE_PERL5= yes
|
2002-11-04 01:15:06 +00:00
|
|
|
USE_REINPLACE= 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 \
|
2002-10-14 05:51:12 +00:00
|
|
|
--datadir=${PREFIX}/etc/squid/ \
|
2001-03-27 12:28:47 +00:00
|
|
|
--localstatedir=${PREFIX}/squid \
|
|
|
|
--enable-storeio="ufs diskd null" \
|
|
|
|
--enable-removal-policies="lru heap" \
|
2002-10-14 05:51:12 +00:00
|
|
|
--enable-auth=basic --enable-basic-auth-helpers="NCSA PAM YP" \
|
|
|
|
--enable-external-acl-helpers="ip_user unix_group" \
|
|
|
|
--enable-underscores
|
2001-03-27 12:28:47 +00:00
|
|
|
|
2001-02-19 13:15:19 +00:00
|
|
|
STRIP= # won't install scripts correctly otherwise.
|
2002-10-14 05:51:12 +00:00
|
|
|
MAKEFILE= Makefile
|
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
|
|
|
|
# - 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-06 00:19:50 +00:00
|
|
|
# - Enable CARP support
|
|
|
|
#CONFIGURE_ARGS+= --enable-carp
|
1998-01-10 14:38:29 +00:00
|
|
|
# - Enable ICMP pinging for heirarchy stats and selection
|
|
|
|
#CONFIGURE_ARGS+= --enable-icmp
|
1998-10-06 00:19:50 +00:00
|
|
|
# - Enable delay pools to limit bandwidth usage
|
|
|
|
#CONFIGURE_ARGS+= --enable-delay-pools
|
1998-03-26 13:29:13 +00:00
|
|
|
# - Enable generic memory use tracing
|
2002-02-20 03:44:04 +00:00
|
|
|
#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
|
2000-04-17 20:32:58 +00:00
|
|
|
# - Disable Web Cache Coordination Protocol
|
|
|
|
#CONFIGURE_ARGS+= --disable-wccp
|
1998-01-10 14:38:29 +00:00
|
|
|
# - Kill parent (eg: RunCache) on shutdown (use with great care!!)
|
1998-10-06 00:19:50 +00:00
|
|
|
#CONFIGURE_ARGS+= --enable-kill-parent-hack
|
1998-01-10 14:38:29 +00:00
|
|
|
# - Turn on SNMP server support
|
|
|
|
#CONFIGURE_ARGS+= --enable-snmp
|
2003-01-02 20:21:40 +00:00
|
|
|
# - Turn on SSL server support for reverse proxies
|
|
|
|
#CONFIGURE_ARGS+= --enable-ssl
|
1998-01-10 14:38:29 +00:00
|
|
|
# - 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
|
2000-04-10 00:07:29 +00:00
|
|
|
# - Enable ACL based on ethernet address (eg: for machines with dynamic DHCP
|
1998-01-10 14:38:29 +00:00
|
|
|
# assigned IP addresses)
|
|
|
|
#CONFIGURE_ARGS+= --enable-arp-acl
|
1998-10-06 00:19:50 +00: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
|
2000-05-29 23:48:03 +00:00
|
|
|
# (--enable-leakfinder is a developer support tool only)
|
1999-05-23 21:15:17 +00:00
|
|
|
# - Compile out code that does optional Ident (RFC931) lookups
|
|
|
|
#CONFIGURE_ARGS+= --disable-ident-lookups
|
2000-04-17 20:32:58 +00:00
|
|
|
# - Disable squid's internal async DNS lookup code.
|
|
|
|
#CONFIGURE_ARGS+= --disable-internal-dns
|
|
|
|
# - Use truncate() rather than unlink()
|
|
|
|
#CONFIGURE_ARGS+= --enable-truncate
|
|
|
|
# - accept the illegal '_' character in hostnames.
|
|
|
|
#CONFIGURE_ARGS+= --enable-underscores
|
|
|
|
# - Enable control of different heap replacement algorithms at runtime.
|
|
|
|
#CONFIGURE_ARGS+= --enable-heap-replacement
|
1998-01-04 09:30:21 +00:00
|
|
|
|
2003-03-09 10:59:07 +00:00
|
|
|
post-patch:
|
2002-11-04 01:15:06 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
2000-07-28 07:27:36 +00:00
|
|
|
|
1996-06-03 02:21:13 +00:00
|
|
|
post-install:
|
2001-03-27 12:28:47 +00:00
|
|
|
# I don't think many people use the pinger nowadays, and if you
|
|
|
|
# do you'll want squid in its own group so as to restrict access
|
|
|
|
# to it.
|
|
|
|
# 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
|
2003-01-31 09:02:49 +00:00
|
|
|
@if [ ! -d ${PREFIX}/squid/logs ]; then \
|
|
|
|
${MKDIR} ${PREFIX}/squid/logs; \
|
|
|
|
${CHOWN} nobody:nogroup ${PREFIX}/squid/logs; \
|
|
|
|
fi
|
|
|
|
@if [ ! -d ${PREFIX}/squid/cache ]; then \
|
|
|
|
${MKDIR} ${PREFIX}/squid/cache; \
|
|
|
|
${CHOWN} nobody:nogroup ${PREFIX}/squid/cache; \
|
|
|
|
fi
|
1996-11-06 16:37:26 +00:00
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \
|
1999-08-27 22:30:39 +00:00
|
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \
|
2000-07-05 12:37:06 +00:00
|
|
|
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \
|
1996-11-06 16:37:26 +00:00
|
|
|
fi
|
1996-06-03 02:21:13 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|