summaryrefslogtreecommitdiff
path: root/www/squid
diff options
context:
space:
mode:
authorgrant <grant>2002-08-26 06:42:10 +0000
committergrant <grant>2002-08-26 06:42:10 +0000
commite29b664f7e1e5730b0b3091936e245ddaca87703 (patch)
tree2227453b651e4b7939c547ff1519ac3bf1f26b87 /www/squid
parentd5f3884d87de7dc90a3ddde9278df676bfe3889f (diff)
downloadpkgsrc-e29b664f7e1e5730b0b3091936e245ddaca87703.tar.gz
deprecate SQUID_SYSCONFDIR in favour of PKG_SYSCONFDIR.squid
Diffstat (limited to 'www/squid')
-rw-r--r--www/squid/Makefile19
1 files changed, 9 insertions, 10 deletions
diff --git a/www/squid/Makefile b/www/squid/Makefile
index 8bf55f7364e..98aaae102fb 100644
--- a/www/squid/Makefile
+++ b/www/squid/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.65 2002/07/24 19:45:32 jlam Exp $
+# $NetBSD: Makefile,v 1.66 2002/08/26 06:42:12 grant Exp $
DISTNAME= squid-2.4.STABLE7-src
PKGNAME= squid-2.4.7
@@ -13,19 +13,22 @@ 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=${SQUID_SYSCONFDIR} \
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} \
--localstatedir=/var/squid \
${SQUID_CONFIGURE_ARGS}
CONFIGURE_ENV+= PERL=${PERL5}
-BUILD_DEFS+= SQUID_CONFIGURE_ARGS SQUID_SYSCONFDIR
+BUILD_DEFS+= SQUID_CONFIGURE_ARGS
MAKEFILE= makefile
MAKE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}" PKG_PREFIX="${PREFIX}"
INSTALL_FILE= ${WRKDIR}/INSTALL
PLIST_SRC= ${WRKDIR}/PLIST
-PLIST_SUBST+= SQUID_SYSCONFDIR=${SQUID_SYSCONFDIR}
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
# Configuration options which can be overwritten by the user.
@@ -38,19 +41,15 @@ SQUID_CONFIGURE_ARGS?= --disable-internal-dns \
--enable-underscores \
--enable-storeio=ufs,diskd
-# Configuration directory location which can be overwritten by the user.
-PKG_SYSCONFSUBDIR?= squid
-SQUID_SYSCONFDIR?= ${PKG_SYSCONFDIR}
-
OPTIONAL_FILES= libexec/diskd libexec/dnsserver libexec/pinger libexec/unlinkd
post-build:
${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/squid.sh >${WRKDIR}/squid.sh
- ${SED} s#@SYSCONFDIR@#${SQUID_SYSCONFDIR}#g <${PKGDIR}/INSTALL \
+ ${SED} s#@SYSCONFDIR@#${PKG_SYSCONFDIR}#g <${PKGDIR}/INSTALL \
>${WRKDIR}/INSTALL
pre-install:
- @${INSTALL_DATA_DIR} ${SQUID_SYSCONFDIR}
+ @${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/squid
@${INSTALL_DATA_DIR} ${PREFIX}/share/squid
@${INSTALL_DATA_DIR} ${PREFIX}/share/squid/errors