pkgsrc/www/squid/Makefile
taca ffd8df082f Update squid package to squid-2.5.1nb2.
- Apply disabled official patch since the patch's content has corrected.

    * Impossible to define acls with spaces in them

- Remove "@unexec ${RMDIR} %D/etc/squid ..." line from PLIST since
  there is already removing directory line which use more generic
  PKG_SYSCONFDIR variable.
2002-11-25 14:46:14 +00:00

121 lines
4.1 KiB
Makefile

# $NetBSD: Makefile,v 1.73 2002/11/25 14:46:14 taca Exp $
DISTNAME= squid-2.5.STABLE1
PKGNAME= squid-2.5.1
PKGREVISION= 2
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.STABLE1-disable-ident-lookups.patch \
squid-2.5.STABLE1-disable-http-violations.patch \
squid-2.5.STABLE1-proxy_auth.patch \
squid-2.5.STABLE1-max_user_ip.patch \
squid-2.5.STABLE1-cache_dir_docs.patch \
squid-2.5.STABLE1-load_icons.patch \
squid-2.5.STABLE1-referer_log.patch \
squid-2.5.STABLE1-ldap_auth.patch \
squid-2.5.STABLE1-addlang.patch \
squid-2.5.STABLE1-pthreads.patch \
squid-2.5.STABLE1-strwordtok.patch \
squid-2.5.STABLE1-wccp.patch \
squid-2.5.STABLE1-memstat.patch \
squid-2.5.STABLE1-aufs.patch \
squid-2.5.STABLE1-acl_leak.patch \
squid-2.5.STABLE1-ext_acl_comma.patch \
squid-2.5.STABLE1-request_entity.patch \
squid-2.5.STABLE1-ext_acl_exit.patch \
squid-2.5.STABLE1-uninstall.patch \
squid-2.5.STABLE1-cachemgr.patch \
squid-2.5.STABLE1-auth-proxy.patch \
squid-2.5.STABLE1-dnsserver.patch \
squid-2.5.STABLE1-spaces.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
# Configuration directory location which can be overwritten by the user.
PKG_SYSCONFSUBDIR?= squid
.include "../../mk/bsd.prefs.mk"
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}" PKG_PREFIX="${PREFIX}"
PLIST_SRC= ${WRKDIR}/PLIST
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
RCD_SCRIPTS= squid
CONF_FILES+= ${PREFIX}/share/examples/squid/mime.conf \
${PKG_SYSCONFDIR}/mime.conf
CONF_FILES+= ${PREFIX}/share/examples/squid/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} ${PREFIX}/share/examples/squid
@${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}
@( \
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.install.mk"
.include "../../mk/bsd.pkg.mk"