summaryrefslogtreecommitdiff
path: root/www/squid/Makefile.common
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2008-09-12 14:59:51 +0000
committertaca <taca@pkgsrc.org>2008-09-12 14:59:51 +0000
commit4b68c67fd8bc9fdc527a1015f39a09ca30b83ff2 (patch)
tree8e7feab86410ca1675bd7b698461319e25c6d304 /www/squid/Makefile.common
parentea206c424efe807adb0c6484d3552af250782374 (diff)
downloadpkgsrc-4b68c67fd8bc9fdc527a1015f39a09ca30b83ff2.tar.gz
Restructuring Squid package:
* Now www/squid directory is common directory for squid packages. * package options clean up and all options are described. * LDAP helper support. (PR pkg/39386) * DESTDIR support. * Move some MESSAGE to documation directory. Next, I'll import squid26, squid27 and squid30 packages.
Diffstat (limited to 'www/squid/Makefile.common')
-rw-r--r--www/squid/Makefile.common33
1 files changed, 21 insertions, 12 deletions
diff --git a/www/squid/Makefile.common b/www/squid/Makefile.common
index 4ef1bd96d34..72e495cb65a 100644
--- a/www/squid/Makefile.common
+++ b/www/squid/Makefile.common
@@ -1,17 +1,26 @@
-# $NetBSD: Makefile.common,v 1.1 2007/12/20 03:17:14 taca Exp $
+# $NetBSD: Makefile.common,v 1.2 2008/09/12 14:59:52 taca Exp $
-SQUID_DATADIR= ${VARBASE}/squid
-LOGDIR?= ${SQUID_DATADIR}/logs
-
-PKG_SYSCONFSUBDIR?= squid
+BUILD_DEFS+= LOGDIR VARBASE
+DOCDIR= share/doc/squid
+EGDIR= share/examples/squid
-SQUID_USER?= squid
-SQUID_GROUP?= squid
+SQUID_DATADIR= ${VARBASE}/squid
-PKG_GROUPS_VARS+= SQUID_GROUP
-PKG_USERS_VARS+= SQUID_USER
+LOGDIR?= ${SQUID_DATADIR}/logs
-PKG_GROUPS= ${SQUID_GROUP}
-PKG_USERS= ${SQUID_USER}:${SQUID_GROUP}
+#
+MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
+MAKE_ENV+= PKG_PREFIX=${PREFIX:Q} VARBASE=${VARBASE:Q}
-PKG_GECOS.${SQUID_USER}= Squid Web-Cache pseudo-user
+CONFIGURE_ARGS= --sysconfdir=${PKG_SYSCONFDIR:Q} \
+ --localstatedir=${SQUID_DATADIR:Q} \
+ --datarootdir=${PREFIX}/share/squid \
+ --enable-auth=basic,digest,ntlm \
+ --enable-cachemgr-hostname=localhost \
+ --enable-delay-pools \
+ --enable-icmp \
+ --enable-removal-policies=lru,heap \
+ --enable-poll \
+ --enable-underscores \
+ --enable-storeio=${SQUID_BACKENDS:Q} \
+ --with-aio