732d55fef1
* nullptr is a C++11 feature * Fix several ESI element construction issues * SourceFormat Enforcement * cachemgr.cgi: use dynamic MemBuf for internal content generation * Add chained certificates and signing certificate to peek-then-bumped connections. * Handshake Error: ccs received early: fix typo * Avoid startup/shutdown crashes [by avoiding static non-POD globals]. * Bugs fixed.
81 lines
2.6 KiB
Makefile
81 lines
2.6 KiB
Makefile
# $NetBSD: Makefile,v 1.64 2016/04/22 15:14:22 adam Exp $
|
|
|
|
DISTNAME= squid-3.5.17
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://www.squid-cache.org/Versions/v3/${PKGVERSION_NOREV:R}/ \
|
|
ftp://ftp.squid-cache.org/pub/squid/ \
|
|
http://ftp.nluug.nl/internet/squid/
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.squid-cache.org/
|
|
COMMENT= Post-Harvest_cached WWW proxy cache and accelerator
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
USE_LANGUAGES= c c++
|
|
USE_TOOLS+= perl:run gmake
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
CONFIGURE_ARGS+= --localstatedir=${SQUID_DATADIR}
|
|
CONFIGURE_ARGS+= --datarootdir=${PREFIX}/share/squid
|
|
CONFIGURE_ARGS+= --disable-strict-error-checking
|
|
CONFIGURE_ARGS+= --enable-auth
|
|
CONFIGURE_ARGS+= --enable-cachemgr-hostname=localhost
|
|
CONFIGURE_ARGS+= --enable-delay-pools
|
|
CONFIGURE_ARGS+= --enable-icap-client
|
|
CONFIGURE_ARGS+= --enable-icmp
|
|
CONFIGURE_ARGS+= --enable-poll
|
|
CONFIGURE_ARGS+= --enable-removal-policies=lru,heap
|
|
CONFIGURE_ARGS+= --enable-storeio=${SQUID_BACKENDS:Q}
|
|
CONFIGURE_ARGS+= --with-aio
|
|
CONFIGURE_ARGS+= --with-default-user=${SQUID_USER}
|
|
CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/squid.pid
|
|
|
|
# Explicitly disable using CPU optimized instruction
|
|
CONFIGURE_ARGS+= --disable-arch-native
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
|
|
MAKE_ENV+= PKG_PREFIX=${PREFIX} VARBASE=${VARBASE}
|
|
REPLACE_PERL+= helpers/ssl/cert_valid.pl tools/helper-mux.pl
|
|
|
|
EGFILES= src/mime.conf.default src/squid.conf.default \
|
|
errors/errorpage.css tools/cachemgr.conf
|
|
EGDIR= share/examples/squid
|
|
.for f in cachemgr.conf errorpage.css mime.conf squid.conf
|
|
CONF_FILES+= ${PREFIX}/${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
|
|
.endfor
|
|
OWN_DIRS= ${SQUID_DATADIR}
|
|
OWN_DIRS_PERMS+=${SQUID_DATADIR}/cache ${SQUID_USER} ${SQUID_GROUP} 0750 \
|
|
${SQUID_DATADIR}/logs ${SQUID_USER} ${SQUID_GROUP} 0750
|
|
|
|
.include "Makefile.common"
|
|
.include "options.mk"
|
|
|
|
# Incorrect check for <netinet/ip_icmp.h> on FreeBSD:
|
|
CONFIGURE_ENV.FreeBSD+= ac_cv_header_netinet_ip_icmp_h=yes
|
|
|
|
INSTALLATION_DIRS= ${EGDIR}
|
|
|
|
SPECIAL_PERMS+= libexec/pinger ${SETUID_ROOT_PERMS}
|
|
|
|
RCD_SCRIPTS= squid
|
|
RCD_SCRIPT_SRC.squid= files/squid.sh
|
|
|
|
SUBST_CLASSES+= confs
|
|
SUBST_STAGE.confs= pre-configure
|
|
SUBST_FILES.confs= src/cf.data.pre
|
|
SUBST_SED.confs= -e "s/@USER@/${SQUID_USER}/"
|
|
SUBST_MESSAGE.confs= Fixing configuration files.
|
|
|
|
post-build:
|
|
cd ${WRKSRC}/src && ${CP} -pf squid.conf.documented squid.conf.default
|
|
|
|
post-install:
|
|
.for f in ${EGFILES}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} \
|
|
${DESTDIR}${PREFIX}/${EGDIR}/`basename ${f} .default`
|
|
.endfor
|
|
|
|
.include "../../devel/libltdl/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|