2013-01-09 16:41:48 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.141 2013/01/09 21:41:48 sthen Exp $
|
2001-05-06 00:22:45 -04:00
|
|
|
|
2012-12-10 16:19:41 -05:00
|
|
|
MULTI_PACKAGES= -main -ntlm
|
1998-09-13 21:36:52 -04:00
|
|
|
|
2012-12-11 13:22:54 -05:00
|
|
|
BROKEN-hppa= broken autoconf test for atomic ops; test succeeds but actual code build fails
|
2012-12-20 16:48:41 -05:00
|
|
|
BROKEN-mips64= broken autoconf test for atomic ops; test succeeds but actual code build fails
|
2012-12-11 13:22:54 -05:00
|
|
|
|
2012-11-28 12:45:29 -05:00
|
|
|
COMMENT-main= WWW and FTP proxy cache and accelerator
|
|
|
|
COMMENT-ldap= LDAP authentication/ACL support for Squid
|
|
|
|
COMMENT-ntlm= NTLM authentication/ACL support for Squid
|
|
|
|
|
2013-01-09 16:41:48 -05:00
|
|
|
V= 3.2.6
|
2012-11-28 12:45:29 -05:00
|
|
|
|
|
|
|
DISTNAME= squid-$V
|
|
|
|
PKGNAME-main= squid-$V
|
|
|
|
PKGNAME-ldap= squid-ldap-$V
|
|
|
|
PKGNAME-ntlm= squid-ntlm-$V
|
1998-09-13 21:36:52 -04:00
|
|
|
CATEGORIES= www
|
2012-11-28 12:45:29 -05:00
|
|
|
|
|
|
|
# bzr repository at https://code.launchpad.net/squid
|
|
|
|
MASTER_SITES= ${HOMEPAGE}Versions/v${V:R:R}/${V:R}/
|
1998-09-13 21:36:52 -04:00
|
|
|
|
2011-09-20 15:34:59 -04:00
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
|
2000-06-10 02:27:25 -04:00
|
|
|
HOMEPAGE= http://www.squid-cache.org/
|
|
|
|
|
2008-05-31 06:07:45 -04:00
|
|
|
# GPLv2+
|
2000-03-30 16:59:26 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2011-09-20 15:34:59 -04:00
|
|
|
|
2012-11-28 12:45:29 -05:00
|
|
|
WANTLIB += c m pthread stdc++
|
|
|
|
|
|
|
|
WANTLIB-main= ${WANTLIB} asn1 crypto gssapi krb5 ssl
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2012-11-28 12:45:29 -05:00
|
|
|
SYSCONFDIR= ${BASESYSCONFDIR}/squid
|
2012-04-28 07:06:12 -04:00
|
|
|
LOCALSTATEDIR= ${BASELOCALSTATEDIR}/squid
|
|
|
|
SUBST_VARS= LOCALSTATEDIR
|
1999-12-09 14:48:17 -05:00
|
|
|
|
2012-11-28 12:45:29 -05:00
|
|
|
PSEUDO_FLAVORS= no_ldap
|
2002-02-19 20:17:03 -05:00
|
|
|
FLAVOR?=
|
2001-01-16 21:38:20 -05:00
|
|
|
|
2012-11-28 12:45:29 -05:00
|
|
|
BASIC_AUTH= NCSA SMB NIS radius
|
|
|
|
DIGEST_AUTH= file
|
|
|
|
EXTERNAL_ACL= file_userip session unix_group wbinfo_group
|
|
|
|
STOREIO= aufs ufs diskd #coss rock
|
2008-05-31 06:07:45 -04:00
|
|
|
|
2012-03-29 09:38:12 -04:00
|
|
|
SEPARATE_BUILD= Yes
|
2012-11-28 12:45:29 -05:00
|
|
|
AUTOCONF_VERSION= 2.68
|
2002-02-19 20:17:03 -05:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2012-11-28 12:45:29 -05:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/cfgaux
|
2012-04-28 06:51:44 -04:00
|
|
|
|
2012-11-28 12:45:29 -05:00
|
|
|
USE_GROFF= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
2013-01-02 07:26:58 -05:00
|
|
|
# gcc 4.2: src/ipc/StoreMap.cc fails with "unrecognizable insn" unless
|
|
|
|
# optimizer is disabled, see e.g.
|
|
|
|
# http://www.squid-cache.org/mail-archive/squid-users/201208/0060.html
|
|
|
|
MODULES+= gcc4
|
|
|
|
MODGCC4_VERSION= 4.6
|
|
|
|
MODGCC4_ARCHS= powerpc
|
|
|
|
MODGCC4_LANGS= c c++
|
|
|
|
|
2012-11-28 12:45:29 -05:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
|
|
|
--datadir="${PREFIX}/share/squid" \
|
|
|
|
--libexecdir="${PREFIX}/libexec/squid" \
|
|
|
|
--disable-loadable-modules \
|
2006-10-03 01:00:49 -04:00
|
|
|
--enable-arp-acl \
|
2012-11-28 12:45:29 -05:00
|
|
|
--enable-auth \
|
|
|
|
--enable-auth-basic="${BASIC_AUTH}" \
|
|
|
|
--enable-auth-digest="${DIGEST_AUTH}" \
|
|
|
|
--enable-auth-negotiate="kerberos" \
|
|
|
|
--enable-auth-ntlm="fake smb_lm" \
|
2008-05-31 06:07:45 -04:00
|
|
|
--enable-delay-pools \
|
|
|
|
--enable-external-acl-helpers="${EXTERNAL_ACL}" \
|
2012-11-28 12:45:29 -05:00
|
|
|
--enable-follow-x-forwarded-for \
|
2008-05-31 06:07:45 -04:00
|
|
|
--enable-forw-via-db \
|
2012-11-28 12:45:29 -05:00
|
|
|
--enable-http-violations \
|
|
|
|
--enable-icap-client \
|
|
|
|
--enable-ipv6 \
|
|
|
|
--enable-referer-log \
|
2004-06-11 04:00:35 -04:00
|
|
|
--enable-removal-policies="lru heap" \
|
2003-07-07 13:44:43 -04:00
|
|
|
--enable-ssl \
|
2008-05-31 06:07:45 -04:00
|
|
|
--enable-storeio="${STOREIO}" \
|
2012-11-28 12:45:29 -05:00
|
|
|
--with-default-user="_squid" \
|
|
|
|
--with-filedescriptors=8192 \
|
|
|
|
--with-pidfile="/var/run/squid.pid" \
|
2007-12-03 20:27:13 -05:00
|
|
|
--with-pthreads \
|
2012-11-28 12:45:29 -05:00
|
|
|
--with-swapdir="${LOCALSTATEDIR}/cache"
|
|
|
|
# PF transparent support requires access to /dev/pf to retrieve the original
|
|
|
|
# source address; ipfw-transparent (which requires divert-to) uses an
|
|
|
|
# unprivileged getsockname() call instead.
|
|
|
|
CONFIGURE_ARGS+= --disable-pf-transparent \
|
|
|
|
--enable-ipfw-transparent
|
2008-05-31 06:07:45 -04:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
2012-12-03 18:10:37 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
ac_cv_header_et_com_err_h=false
|
2012-11-28 12:45:29 -05:00
|
|
|
E= ${TRUEPREFIX}/share/examples/squid
|
|
|
|
FAKE_FLAGS= sysconfdir=$E \
|
|
|
|
DEFAULT_CONFIG_FILE=$E/squid.conf \
|
|
|
|
DEFAULT_MIME_TABLE=$E/mime.conf
|
|
|
|
REGRESS_DEPENDS= devel/cppunit
|
2004-06-11 04:00:35 -04:00
|
|
|
|
2012-11-28 12:45:29 -05:00
|
|
|
.if !${FLAVOR:L:Mno_ldap}
|
2012-12-10 16:19:41 -05:00
|
|
|
MULTI_PACKAGES+= -ldap
|
2012-11-28 12:45:29 -05:00
|
|
|
BASIC_AUTH+= LDAP
|
|
|
|
DIGEST_AUTH+= LDAP
|
|
|
|
EXTERNAL_ACL+= LDAP_group
|
|
|
|
RUN_DEPENDS-ldap= ${BASE_PKGPATH}
|
|
|
|
LIB_DEPENDS-ldap= databases/openldap
|
|
|
|
WANTLIB-ldap += ${WANTLIB} asn1 com_err crypto gssapi krb5
|
|
|
|
WANTLIB-ldap += lber-2.4 ldap-2.4 sasl2 ssl
|
2010-11-26 08:45:04 -05:00
|
|
|
.endif
|
|
|
|
|
2012-11-28 12:45:29 -05:00
|
|
|
RUN_DEPENDS-ntlm= net/samba,ads ${BASE_PKGPATH}
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@cp ${FILESDIR}/krb5-config ${WRKDIR}/bin
|
|
|
|
@chmod a+x ${WRKDIR}/bin/krb5-config
|
2002-02-19 20:17:03 -05:00
|
|
|
|
2010-11-26 08:45:04 -05:00
|
|
|
pre-build:
|
2012-11-28 12:45:29 -05:00
|
|
|
@cd ${WRKSRC}; \
|
|
|
|
perl -pi -e 's,/usr/local,${LOCALBASE},g' \
|
|
|
|
helpers/external_acl/wbinfo_group/ext_wbinfo_group_acl.pl.in \
|
|
|
|
helpers/*/*/config.test \
|
|
|
|
src/squid.8.in
|
2010-11-26 08:45:04 -05:00
|
|
|
|
2002-02-19 20:17:03 -05:00
|
|
|
post-install:
|
2012-11-28 12:45:29 -05:00
|
|
|
rm -rf ${WRKINST}/var/squid
|
|
|
|
cd ${PREFIX}/share/examples/squid; \
|
|
|
|
rm -f mime.conf squid.conf cachemgr.conf errorpage.css
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/snmp/mibs
|
|
|
|
-cd ${PREFIX}/share; mv squid/mib.txt snmp/mibs/SQUID-MIB.txt
|
1998-09-13 21:36:52 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|