summaryrefslogtreecommitdiff
path: root/www/squid/Makefile.common
blob: 72e495cb65a165e98ed7087cd34d4bf835b2d2f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $NetBSD: Makefile.common,v 1.2 2008/09/12 14:59:52 taca Exp $

BUILD_DEFS+=	LOGDIR VARBASE
DOCDIR=		share/doc/squid
EGDIR=		share/examples/squid

SQUID_DATADIR=	${VARBASE}/squid

LOGDIR?=	${SQUID_DATADIR}/logs

#
MAKE_ENV+=	INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
MAKE_ENV+=	PKG_PREFIX=${PREFIX:Q} VARBASE=${VARBASE:Q}

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