summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authortron <tron>1999-11-12 22:20:49 +0000
committertron <tron>1999-11-12 22:20:49 +0000
commit4340f49c31eca6c12c412f36e94c6b072a432791 (patch)
tree725c4a83feee8d6063de040520ef17a3b0f7c058 /www
parented13e21a150bde1d94099e7394839a8912076bf6 (diff)
downloadpkgsrc-4340f49c31eca6c12c412f36e94c6b072a432791.tar.gz
Add new configuration variables "SQUID_CONFIGURE_ARGS", "SQUID_HTTP_PORT"
and "SQUID_ICP_PORT" to allow easy modifification of the squid build parameters. This fixes the second part of PR pkg/8764 by Luke Mewburn.
Diffstat (limited to 'www')
-rw-r--r--www/squid/Makefile29
1 files changed, 17 insertions, 12 deletions
diff --git a/www/squid/Makefile b/www/squid/Makefile
index 9fc7523b657..282c8ce15f7 100644
--- a/www/squid/Makefile
+++ b/www/squid/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 1999/11/12 22:07:10 tron Exp $
+# $NetBSD: Makefile,v 1.21 1999/11/12 22:20:49 tron Exp $
DISTNAME= squid-2.2.STABLE5-src
PKGNAME= squid-2.2s5
@@ -10,23 +10,28 @@ MASTER_SITES= \
ftp://sunsite.auc.dk/pub/infosystems/squid/squid-2/STABLE/ \
ftp://ftp.net.lut.ac.uk/squid/squid-2/STABLE/
-MAINTAINER= packages@netbsd.org
+MAINTAINER= tron@netbsd.org
HOMEPAGE= http://squid.nlanr.net/Squid/
BUILD_DEPENDS= ${LOCALBASE}/bin/perl:../../lang/perl5
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --sysconfdir=/etc \
- --localstatedir=/var/squid
-
-# Options you might want to enable
-CONFIGURE_ARGS+= --enable-cachemgr-hostname=localhost
-CONFIGURE_ARGS+= --enable-icmp
-CONFIGURE_ARGS+= --enable-ipf-transparent
-CONFIGURE_ARGS+= --enable-snmp
+# Configuration options which can be overwritten by the user.
+SQUID_CONFIGURE_ARGS?= --enable-cachemgr-hostname=localhost \
+ --enable-icmp \
+ --enable-ipf-transparent \
+ --enable-snmp
+SQUID_HTTP_PORT?= 3128
+SQUID_ICP_PORT?= 3130
-CONFIGURE_ENV+= PERL=${LOCALBASE}/bin/perl
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --sysconfdir=/etc \
+ --localstatedir=/var/squid \
+ ${SQUID_CONFIGURE_ARGS}
+CONFIGURE_ENV+= CACHE_HTTP_PORT=${SQUID_HTTP_PORT} \
+ CACHE_ICP_PORT=${SQUID_ICP_PORT} \
+ PERL=${LOCALBASE}/bin/perl
+BUILD_DEFS+= SQUID_CONFIGURE_ARGS SQUID_HTTP_PORT SQUID_ICP_PORT
MAKEFILE= makefile
MAKE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}" PKG_PREFIX="${PREFIX}"
PLIST_SRC= ${PKGDIR}/PLIST ${WRKDIR}/PLIST.share