1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/www/squid27/Makefile
Edwin Groothuis 23f0a346aa [PATCH] www/squid: update to 2.5-STABLE4 (+ vendor patches)
[...]
- Add 2.5-STABLE4 vendor patches
  - cache.log message on "squid -k reconfigure" confusing
  - digest auth never detects password changes
  - login with space confuses redirector helpers
  - FQDNcache discards negative responses when using internal DNS
  - Full details at http://www.squid-cache.org/Versions/v2/2.5/bugs/#STABLE4
[...]

PR:		ports/58090
Submitted by:	Jonathan Noack <noackj@concordiacrusaders.org>
Approved by: 	MAINTAINER TIMEOUT
2003-12-28 09:58:21 +00:00

167 lines
6.2 KiB
Makefile

# New ports collection makefile for: squid24
# Date created: Tue Mar 27 14:56:08 CEST 2001
# Whom: Adrian Chadd <adrian@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= squid
PORTVERSION= 2.5.4
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= \
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
DISTNAME= squid-2.5.STABLE4
EXTRACT_SUFX= .tar.bz2
DIST_SUBDIR= squid2.5
PATCH_SITES= http://www.squid-cache.org/Versions/v2/2.5/bugs/
PATCHFILES= squid-2.5.STABLE4-reconfigure_message.patch \
squid-2.5.STABLE4-digest_auth_pwchange.patch \
squid-2.5.STABLE4-redirect_login_space.patch \
squid-2.5.STABLE4-fqdnnegcache.patch \
pam_auth-2.2.patch \
squid-2.5.STABLE4_auth_param_doc.patch \
squid-2.5.STABLE4-errorpages.patch \
squid-2.5.STABLE4-error_load_text.patch \
squid-2.5.STABLE4-xpi_mime.patch \
squid-2.5.STABLE4-size_overflow.patch \
squid-2.5.STABLE4-extacl_auth_loop.patch \
squid-2.5.STABLE4-squid_ldap_group.patch \
squid-2.5.STABLE4-positive_dns_ttl.patch \
squid-2.5.STABLE4-gopherhtml.patch \
squid-2.5.STABLE4-netroute.patch \
squid-2.5.STABLE4-synflood.patch \
squid-2.5.STABLE4-fqdn.patch \
squid-2.5.STABLE4-connect_cleanup.patch \
squid-2.5.STABLE4-pconn_post.patch \
squid-2.5.STABLE4-ftp_put.patch \
squid-2.5.STABLE4-pconn-load.patch \
squid-2.5.STABLE4-icon_urls.patch \
squid-2.5.STABLE4-redirector_access.patch \
squid-2.5.STABLE4-pconn-lifo.patch
PATCH_DIST_STRIP= -p1
MAINTAINER= adrian@freebsd.org
COMMENT= The successful WWW proxy cache and accelerator
GNU_CONFIGURE= yes
USE_BZIP2= yes
USE_PERL5= yes
USE_REINPLACE= yes
# Follow the apache port's lead...
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --sysconfdir=${PREFIX}/etc/squid \
--datadir=${PREFIX}/etc/squid \
--localstatedir=${PREFIX}/squid \
--enable-storeio="ufs diskd null" \
--enable-removal-policies="lru heap" \
--enable-auth=basic --enable-basic-auth-helpers="NCSA PAM YP" \
--enable-external-acl-helpers="ip_user unix_group" \
--enable-underscores ${SQUID_CONFIGURE_ARGS}
MAKEFILE= Makefile
MAN8= pam_auth.8 squid_unix_group.8 squid.8
# 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
# - 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
# - Turn on SSL server support for reverse proxies
#CONFIGURE_ARGS+= --enable-ssl
# - 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://www.squid-cache.org/Doc/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-leakfinder 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-removal-policies
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/doc/squid.8
# Prevent installation of .orig files by deleting them.
@${FIND} ${WRKSRC} -name '*.bak' -delete
@${FIND} ${WRKSRC} -name '*.orig' -delete
post-install:
# 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
.for sbin_file in client squid
if [ -f ${PREFIX}/sbin/${sbin_file} ] ; then \
${STRIP_CMD} ${PREFIX}/sbin/${sbin_file} ; \
fi
.endfor
.for libexec_file in cachemgr.cgi dnsserver pinger unlinkd
if [ -f ${PREFIX}/libexec/${libexec_file} ] ; then \
${STRIP_CMD} ${PREFIX}/libexec/${libexec_file} ; \
fi
.endfor
@if [ ! -d ${PREFIX}/squid/logs ]; then \
${MKDIR} ${PREFIX}/squid/logs; \
fi
# ${CHOWN} nobody:nogroup ${PREFIX}/squid/logs; \
@if [ ! -d ${PREFIX}/squid/cache ]; then \
${MKDIR} ${PREFIX}/squid/cache; \
fi
# ${CHOWN} nobody:nogroup ${PREFIX}/squid/cache; \
@if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \
fi
.include <bsd.port.mk>