pkgsrc/www/squid/Makefile
taca 81c518753b Update squid package to 2.5.12 (squid-2.5.STABLE12).
Changes to squid-2.5.STABLE12 (22 Oct 2005)

	- [Major] Error introduced in 2.5.STABLE11 causing truncated responses
	  when using delay pools (Bug #1405)
	- [Cosmetic] Document that tcp_outgoing_* works badly in combination
	  with server_persistent_connections (Bug #454)
	- [Cosmetic] Add additinal tracing to squid_ldap_auth making
	  diagnostics easier on squid_ldap_auth configuration errors
	  (Bug #1395)
	- [Minor] $HOME not set when started as root (Bug #1401)
	- [Minor] httpd_accel_single_host breaks in combination with
	  server_persistent_connections (Bug #1402)
	- [Cosmetic] Setting CACHE_HTTP_PORT to configure was only partially
	  implemented, effectively ignored. (Bug #1403)
	- [Minor] CNAME based DNS addresses could get cached for longer
	  than intended (Bug #1404)
	- [Minor] Incorrect handling of squid-internal-dynamic/netdb exchanges
	  in transparently intercepting proxies (Bug #1410).
	- [Minor] Cache revalidations on HEAD requests causing poor cache
	  hit ratio (Bug #1411).
	- [Minor] Not possible to send 302 redirects via a redirector in
	  response to CONNECT requests (bug #1412)
	- [Minor] Incorrect handling of Set-Cookie on cache refreshes (Bug
	  #1419)
	- [Major] Segmentation fault crash in rfc1738_do_escape (Bug #1426)
	- [Minor] Delay pools class 3 fails on clients in network 255
	  (Bug #1431)
2005-10-23 22:32:32 +00:00

128 lines
3.9 KiB
Makefile

# $NetBSD: Makefile,v 1.162 2005/10/23 22:32:32 taca Exp $
DISTNAME= squid-2.5.STABLE12
PKGNAME= squid-2.5.12
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=
#PATCH_DIST_STRIP= -p1
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://www.squid-cache.org/
COMMENT= Post-Harvest_cached WWW proxy cache and accelerator
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
DIST_SUBDIR= ${PKGNAME_NOREV}
DOCDIR= ${PREFIX}/share/doc/squid
EXAMPLESDIR= ${PREFIX}/share/examples/squid
DATADIR= ${VARBASE}/squid
DOCFILES= ChangeLog RELEASENOTES.html doc/debug-sections.txt
# Configuration directory location which can be overwritten by the user.
PKG_SYSCONFSUBDIR?= squid
USE_PKGINSTALL= yes
USE_TOOLS+= perl:run
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} \
--localstatedir=${DATADIR}
MAKE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
MAKE_ENV+= PKG_PREFIX="${PREFIX}" VARBASE="${VARBASE}"
PLIST_SRC= ${WRKDIR}/PLIST
RCD_SCRIPTS= squid
PKG_GROUPS= ${SQUID_GROUP}
PKG_USERS= ${SQUID_USER}:${SQUID_GROUP}::Squid\ Web-Cache\ pseudo-user
CONF_FILES+= ${EXAMPLESDIR}/mime.conf ${PKG_SYSCONFDIR}/mime.conf
CONF_FILES+= ${EXAMPLESDIR}/squid.conf ${PKG_SYSCONFDIR}/squid.conf
CONF_FILES+= ${EXAMPLESDIR}/msntauth.conf ${PKG_SYSCONFDIR}/msntauth.conf
OWN_DIRS= ${DATADIR}
OWN_DIRS_PERMS+= ${DATADIR}/cache ${SQUID_USER} ${SQUID_GROUP} 0750 \
${DATADIR}/logs ${SQUID_USER} ${SQUID_GROUP} 0750
EXAMPLES_FILES= src/mime.conf.default src/squid.conf.default \
helpers/basic_auth/MSNT/msntauth.conf.default
.include "../../mk/bsd.prefs.mk"
SQUID_USER?= squid
SQUID_GROUP?= squid
BUILD_DEFS+= SQUID_USER SQUID_GROUP
CONFIGURE_ARGS+= --enable-auth=basic,digest,ntlm \
--enable-cachemgr-hostname=localhost \
--enable-delay-pools \
--enable-removal-policies=lru,heap \
--enable-poll \
--enable-underscores \
--enable-storeio=${SQUID_BACKENDS:Q}
#
# generic helpers
#
OPTIONAL_FILES+= libexec/diskd libexec/dnsserver libexec/pinger libexec/unlinkd
#
# basic auth helpers (except LDAP, multi-domain-NTLM and SASL)
#
OPTIONAL_FILES+= libexec/getpwname_auth libexec/msnt_auth libexec/ncsa_auth
OPTIONAL_FILES+= libexec/pam_auth man/man8/pam_auth.8 libexec/smb_auth
OPTIONAL_FILES+= libexec/yp_auth libexec/wb_auth
#
# digest auth helpers
#
OPTIONAL_FILES+= libexec/digest_pw_auth
#
# ntlm auth helpers (except no_check and winbind)
#
OPTIONAL_FILES+= libexec/fakeauth_auth libexec/ntlm_auth
OPTIONAL_FILES+= libexec/wb_ntlmauth man/man8/squid_unix_group.8
#
# external acl helpers (except ldap_group, wbinfo_group and winbind_group)
#
OPTIONAL_FILES+= libexec/ip_user_check libexec/squid_unix_group
pre-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/squid
@${INSTALL_DATA_DIR} ${PREFIX}/share/squid/errors
@${INSTALL_DATA_DIR} ${PREFIX}/share/squid/icons
post-install:
@${INSTALL_DATA_DIR} ${EXAMPLESDIR}
.for f in ${EXAMPLES_FILES}
cd ${WRKSRC} && \
${INSTALL_DATA} ${f} ${EXAMPLESDIR}/`basename ${f} .default`
.endfor
@${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} ! -r ${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 "options.mk"
.include "../../mk/bsd.pkg.mk"