pkgsrc/www/squid/Makefile
taca ff784fa626 Update squid package to squid-2.5.4nb3.
Apply two offcial patches.

* FQDN lookups sometimes returns garbage

	synopsis	FQDN lookups sometimes give garbage after the result.
			This can be seen as junk in access.log when using
			log_fqdn or false access control results when using
			dstdomain acl type and the user requests a URL by IP
			address.
	severity	Minor
	date		2003-12-04 10:04
	bugzilla	#846, #834, #433
	versions	Squid-2.5 and earlier
	platforms	All
	workaround	Don't use log_fqdn or alternatively compile Squid with
			--disable-internal-dns

* Cleanup of connect & dns timeouts etc

	synopsis	Several minor errors related to how Squid finds a
			connection where to forward requests. This patch

			o Adds a new configuration parameter "forward_timeout"
			  to control how long Squid tries to find a method to
			  find a path where to forward the request before
			  giving up.  Defaults to 2 minutes.
			o The default connect_timeout tuned down from 2 minutes
			  to 1 minute to allow for two attempts to find a
			  suitable path within the forward_timeout
			o fqdncache/ipcache restructured to allow for DNS code
			  to allow the queried name to be logged in cache.log
			  on errors.
			o negative_dns_ttl now overloaded to also specify the
			  minimum ttl used when caching DNS responses, and
			  tuned down from 5 minutes to 1 minute.
			o default dns_timeout tuned down from 5 minutes to
			  2 minutes
			o some minor compilation warnings on
			  --disable-internal-dns corrected
			o properly report DNS timeouts as timeouts and not just
			  "No DNS records"
	severity	Minor
	date		2003-12-06 17:06
	bugzilla	#848, #849, #851, #852
	versions	Squid-2.5 and earlier
	platforms	All
2003-12-07 16:48:20 +00:00

125 lines
4.2 KiB
Makefile

# $NetBSD: Makefile,v 1.96 2003/12/07 16:48:20 taca Exp $
DISTNAME= squid-2.5.STABLE4
PKGNAME= squid-2.5.4
PKGREVISION= 3
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
CATEGORIES= www
MASTER_SITES= http://www.squid-cache.org/Versions/v2/2.5/ \
ftp://ftp.leo.org/pub/comp/general/infosys/www/daemons/squid/squid-2/STABLE/ \
ftp://ftp1.au.squid-cache.org/pub/squid/squid-2/STABLE/
EXTRACT_SUFX= .tar.bz2
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
PATCH_DIST_STRIP= -p1
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://www.squid-cache.org/
COMMENT= Post-Harvest_cached WWW proxy cache and accelerator
USE_PERL5= build
DIST_SUBDIR= squid-2.5.4
DOCDIR= ${PREFIX}/share/doc/squid
EXAMPLESDIR= ${PREFIX}/share/examples/squid
DOCFILES= ChangeLog RELEASENOTES.html doc/debug-sections.txt
# Configuration directory location which can be overwritten by the user.
PKG_SYSCONFSUBDIR?= squid
.include "../../mk/bsd.prefs.mk"
USE_BUILDLINK2= yes
USE_PKGINSTALL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} \
--localstatedir=/var/squid \
${SQUID_CONFIGURE_ARGS}
CONFIGURE_ENV+= PERL=${PERL5}
BUILD_DEFS+= SQUID_CONFIGURE_ARGS
MAKE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
MAKE_ENV+= PKG_PREFIX="${PREFIX}"
PLIST_SRC= ${WRKDIR}/PLIST
RCD_SCRIPTS= squid
CONF_FILES+= ${EXAMPLESDIR}/mime.conf ${PKG_SYSCONFDIR}/mime.conf
CONF_FILES+= ${EXAMPLESDIR}/squid.conf ${PKG_SYSCONFDIR}/squid.conf
# Configuration options which can be overwritten by the user.
SQUID_CONFIGURE_ARGS?= --disable-internal-dns \
--enable-auth=basic,digest,ntlm \
--enable-cachemgr-hostname=localhost \
--enable-delay-pools \
--enable-removal-policies=lru,heap \
--enable-icmp \
--enable-ipf-transparent \
--enable-poll \
--enable-snmp \
--enable-ssl \
--with-openssl=${SSLBASE} \
--enable-underscores \
--enable-storeio=ufs,diskd,null \
--enable-basic-auth-helpers=getpwnam,winbind,SMB \
--enable-digest-auth-helpers=password \
--enable-external-acl-helpers=unix_group,ip_user,winbind_group \
--enable-ntlm-auth-helpers=winbind
OPTIONAL_FILES+= libexec/diskd libexec/dnsserver libexec/pinger libexec/unlinkd
OPTIONAL_FILES+= libexec/digest_pw_auth libexec/getpwname_auth
OPTIONAL_FILES+= libexec/ip_user_check libexec/smb_auth libexec/smb_auth.sh
OPTIONAL_FILES+= libexec/squid_unix_group libexec/wb_auth libexec/wb_group
OPTIONAL_FILES+= libexec/wb_ntlmauth man/man8/squid_unix_group.8
pre-install:
@${INSTALL_DATA_DIR} ${EXAMPLESDIR}
@${INSTALL_DATA_DIR} ${PREFIX}/share/squid
@${INSTALL_DATA_DIR} ${PREFIX}/share/squid/errors
@${INSTALL_DATA_DIR} ${PREFIX}/share/squid/icons
post-install:
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
${INSTALL_DATA_DIR} ${DOCDIR}
@cd ${WRKSRC}; \
for i in ${DOCFILES}; do \
${INSTALL_DATA} $$i ${DOCDIR}; \
done
@( \
for FILE in ${OPTIONAL_FILES}; do \
${TEST} ! -e ${PREFIX}/$$FILE || ${ECHO} $$FILE; \
done; \
cd ${WRKSRC}/errors; \
for i in *; do \
${TEST} -d $$i && \
(${LS} $$i/ERR_* | \
${SED} -e 's@^@share/squid/errors/@'; \
${ECHO} "@dirrm share/squid/errors/$$i"); \
done; \
${ECHO} "@dirrm share/squid/errors"; \
cd ${WRKSRC}/icons; \
ls anthony-*.gif | ${SED} -e 's@^@share/squid/icons/@'; \
${ECHO} "@dirrm share/squid/icons"; \
${ECHO} "share/squid/mib.txt"; \
${ECHO} "@dirrm share/squid" \
) >>${PLIST_SRC}
.include "../../security/openssl/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"