openbsd-ports/www/squid/Makefile
2004-03-03 01:20:42 +00:00

45 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.59 2004/03/03 01:20:42 brad Exp $
COMMENT= "WWW and FTP proxy cache and accelerator"
DISTNAME= squid-2.5.STABLE5
CATEGORIES= www
MASTER_SITES= http://www.squid-cache.org/Versions/v2/2.5/
DIST_SUBDIR= squid
HOMEPAGE= http://www.squid-cache.org/
MAINTAINER= Brad Smith <brad@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
SQUIDDIR?= /var/squid
SUBST_VARS= SQUIDDIR
FLAVORS= transparent
FLAVOR?=
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= autoconf
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/cfgaux
CONFIGURE_ARGS= --enable-removal-policies="lru heap" \
--enable-storeio="ufs diskd" \
--enable-ssl \
--datadir="${PREFIX}/share/squid" \
--localstatedir="${SQUIDDIR}"
.if ${FLAVOR:L:Mtransparent}
CONFIGURE_ARGS+= --enable-pf-transparent
.endif
post-install:
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/squid
@find ${PREFIX}/share/examples/squid/errors \
-name '*.orig' -print0 | xargs -0 rm -f
.include <bsd.port.mk>