1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/www/squid23/Makefile
Peter Wemm 5666584c24 Update the squid23 port to fix a few loose ends:
- the distributed patches got regenerated to have the correct paths
- disable optimization because of gcc bugs (as recommended by squid folks)
- list a few new --enable/--disable options
2000-04-17 20:32:58 +00:00

128 lines
5.0 KiB
Makefile

# New ports collection makefile for: squid
# Date created: Thu Nov 7 00:53:18 WST 1996
# Whom: Peter Wemm <peter@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= squid
PORTVERSION= 2.3
CATEGORIES= www
MASTER_SITES= \
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/
DISTNAME= squid-2.3.STABLE2
EXTRACT_SUFX= -src.tar.gz
PATCH_SITES= http://www.squid-cache.org/Versions/v2/2.3/bugs/
PATCHFILES= squid-2.3.stable2-EOF_in_cf.data.pre.patch \
squid-2.3.stable2-USE_DNSSERVER.patch \
squid-2.3.stable2-USE_DNSSERVER_part2.patch \
squid-2.3.stable2-hostname_whitespace.patch \
squid-2.3.stable2-netdb_exchange_loop.patch \
squid-2.3.stable2-getMyHostname.patch \
squid-2.3.stable2-redirected_username_logging.patch \
squid-2.3.stable2-snmp-problems.patch \
squid-2.3.stable2-getpwnam_return_value.patch \
squid-2.3.stable2-mimeGetIconURL_returns_NULL.patch
MAINTAINER= peter@freebsd.org
DIST_SUBDIR= squid2.3
PATCH_DIST_STRIP= -p0
GNU_CONFIGURE= yes
# Follow the apache port's lead...
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --sysconfdir=${PREFIX}/etc/squid \
--localstatedir=${PREFIX}/squid
CONFIGURE_ENV= CFLAGS=""
STRIP= # won't install scripts correctly othervise.
MAKEFILE= makefile
# Some other configure options..
# - Compile and use the malloc package from Doug Lea
#CONFIGURE_ARGS+= --enable-dlmalloc
# - 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
# - Enable CARP support
#CONFIGURE_ARGS+= --enable-carp
# - Use ASYNC disk I/O (Requires real threads, apparently runs on 3.0 libc_r)
#CONFIGURE_ARGS+= --enable-async-io
# - Enable ICMP pinging for heirarchy stats and selection
#CONFIGURE_ARGS+= --enable-icmp
# - Enable delay pools to limit bandwidth usage
#CONFIGURE_ARGS+= --enable-delay-pools
# - Enable generic memory use tracing
#CONFIGURE+ARGS+= --enable-mem-gen-trace
# - Enable logging of the User-Agent header
#CONFIGURE_ARGS+= --enable-useragent-log
# - Disable Web Cache Coordination Protocol
#CONFIGURE_ARGS+= --disable-wccp
# - Kill parent (eg: RunCache) on shutdown (use with great care!!)
#CONFIGURE_ARGS+= --enable-kill-parent-hack
# - 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
# - 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
# (--enable-leakfinfer is a developer support tool only)
# - Compile out code that does optional Ident (RFC931) lookups
#CONFIGURE_ARGS+= --disable-ident-lookups
# - 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
post-install:
cd ${WRKSRC}/src; make install-pinger
.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
if [ -f ${PREFIX}/libexec/${file} ] ; then \
strip ${PREFIX}/libexec/${file} ; \
fi
.endfor
${MKDIR} ${PREFIX}/squid/logs
${MKDIR} ${PREFIX}/squid/cache
@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 ${PREFIX}/sbin/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then" >> ${PREFIX}/etc/rc.d/squid.sh; \
${ECHO} " (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; ${ECHO} -n ' squid'" >> ${PREFIX}/etc/rc.d/squid.sh; \
${ECHO} "fi" >> ${PREFIX}/etc/rc.d/squid.sh; \
${CHMOD} 751 ${PREFIX}/etc/rc.d/squid.sh; \
fi
.include <bsd.port.mk>