pkgsrc/www/squid/Makefile
taca a10ae24d22 Update squid package to 2.6.7 (2.6.STABLE7).
o arp-acl is now supported on NetBSD contributed by Jaromir Dolecek <jdolecek@>.

Changes to squid-2.6.STABLE7 (Jan 13 2007)

	- Windows port: Fix intermittent build error using Visual Studio
	- Add missing tproxy info from the dump of http port configuration
	- Bug #1853: Support for ARP ACL on NetBSD
	- clientNatLookup(): fix wrong function name in debug messages
	- Convert ncsa_auth man page from DOS to Unix text format.
	- Bug #1858: digest_ldap_auth had some remains of old hash format
	- Correct the select_loops counter when using select(). Was counted twice
	- Clarify the http_port vhost option a bit
	- Fix cache-control: max-stale without value or bad value
	- Bug #1857: Segmentation fault on certain types of ftp:// requests
	- Bug #1848: external_acl crashes with an infinite loop under high load
	- Bug #1792: max_user_ip not working with NTLM authentication
	- Bug #1865: deny_info redirection with authentication related acls
	- Small example on how to use the squid_session helper
	- Bug #1863: cache_peer monitorurl, monitorsize and monitorinterval not working properly
	- Clarify the transparent http_port option a bit more
	- Bug #1828: squid.conf docutemtation error for proxy_auth digest
	- Bug #1867: squid.pid isn't removed on shutdown
2007-01-14 04:12:12 +00:00

135 lines
4.1 KiB
Makefile

# $NetBSD: Makefile,v 1.187 2007/01/14 04:12:12 taca Exp $
DISTNAME= squid-2.6.STABLE7
PKGNAME= ${DISTNAME:S/STABLE//}
#PKGREVISION=
CATEGORIES= www
MASTER_SITES= http://www.squid-cache.org/Versions/v2/2.6/ \
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
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
USE_TOOLS+= perl
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} \
--localstatedir=${DATADIR:Q}
MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
MAKE_ENV+= PKG_PREFIX=${PREFIX:Q} VARBASE=${VARBASE:Q}
PLIST_SRC= ${WRKDIR}/PLIST
RCD_SCRIPTS= squid
PKG_GROUPS= ${SQUID_GROUP}
PKG_USERS= ${SQUID_USER}:${SQUID_GROUP}
PKG_GECOS.${SQUID_USER}= Squid Web-Cache pseudo-user
CONF_FILES+= ${EXAMPLESDIR}/cachemgr.conf ${PKG_SYSCONFDIR}/cachemgr.conf
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 \
tools/cachemgr.conf
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFSUBDIR?= squid
SQUID_USER?= squid
SQUID_GROUP?= squid
BUILD_DEFS+= SQUID_USER SQUID_GROUP VARBASE
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+= bin/cossdump libexec/diskd-daemon libexec/dnsserver
OPTIONAL_FILES+= 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/ncsa_auth.8 man/man8/pam_auth.8
OPTIONAL_FILES+= libexec/smb_auth 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
SUBST_CLASSES+= confs
SUBST_STAGE.confs= pre-configure
SUBST_FILES.confs= src/cf.data.pre
SUBST_SED.confs= -e "s/@USER@/${SQUID_USER}/"
SUBST_MESSAGE.confs= Fixing configuration files.
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}
${INSTALL_DATA} ${WRKSRC}/${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 i in ${OPTIONAL_FILES}; do \
${TEST} ! -r ${PREFIX}/$$i || ${ECHO} $$i; \
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"