pkgsrc/www/squid/Makefile

87 lines
2.7 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.32 2000/09/05 09:33:18 jlam Exp $
DISTNAME= squid-2.3.STABLE3-src
PKGNAME= squid-2.3s3
CATEGORIES= www
MASTER_SITES= \
http://www.squid-cache.org/Versions/v2/2.3/ \
ftp://ftp.gw.com/pub/unix/squid/squid-2/STABLE/ \
ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/squid-2/STABLE/ \
ftp://sunsite.auc.dk/pub/infosystems/squid/squid-2/STABLE/ \
Update "squid" package to version 2.3STABLE2. Changes since version 2.3STABLE1: - Changed Copyright text. - Changed configure so that some IRIX-6.4 hacks apply to all IRIX-6.* versions. - Cleaned up HTML bugs in error pages. - Told configure to check for netinet/if_ether.h, which is used in ARP ACL code, but might not be required. - Added "Cookie" to known HTTP headers so it can be used in anonymizer configuration. - Added optional TCP_REDIRECT log code for logging of 301/302 responses returned by Squid. - Added a check for a currently running Squid process. If the pid file exists, and the pid is running, Squid complains and refuses to start another instance. - Changed async I/O scope to PTHREAD_SCOPE_PROCESS for IRIX. - Fixed a bug with the PURGE method. The purge enable flag was not getting cleared during reconfigure. Also required PURGE method to be used in http_access list before enabling. - Fixed async I/O assertions for file open errors. - Fixed internal DNS assertion when unpacking truncated messages. - Fixed anonymize_headers bug that caused all headers to be allowed after a reconfigure. - Fixed an access denied bug for accelerator-only installations. - Fixed internal DNS initialization so that it uses 'dns_nameservers' settings in squid.conf if set. - Fixed 'maxconn' ACL bug that caused it to work backwards (Pedro Ribeiro). - Fixed syslog bug for daemon mode on Linux. - Fixed 'http_port' parsing bugs. - Fixed internal DNS byte ordering bugs for PTR queries. - Fixed internal DNS queue getting stuck during periods of low activity (Henrik). - Fixed byte ordering bugs for parsing EPLF FTP listings on 64-bit systems. - Fixed 'request_body_max_size' bug that caused all POST, PUT requests to be denied if max size is set to zero. - Fixed 'redirector_access' bug when using 'myport' ACLs. - Fixed CARP neighbor selection bugs for down peers. - Added 'client_persistent_connections' and 'server_persistent_connections' flags to disable persistent connections for clients and servers. - Fixed access logging bug that caused many requests to be logged as TCP_MISS. - Added some bounds checking to delay pools code. This partially fixes PR pkg/9534 by Takahiro Kambe.
2000-03-06 19:52:06 +01:00
ftp://ftp.net.lut.ac.uk/squid/squid-2/STABLE/ \
ftp://ftp.kpnqwest.de/pub/mirror.squid/squid-2/STABLE/
PATCH_SITES= http://www.squid-cache.org/Versions/v2/2.3/bugs/
PATCHFILES= squid-2.3.stable3-carp_compile.patch \
2000-09-03 15:42:22 +02:00
squid-2.3.stable3-storeExpiredReferenceAge.patch
MAINTAINER= tron@netbsd.org
HOMEPAGE= http://www.squid-cache.org/
BUILD_DEPENDS+= ${PERL5}:../../lang/perl5-base
1998-12-06 13:42:00 +01:00
GNU_CONFIGURE= # defined
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=${PERL5}
BUILD_DEFS+= SQUID_CONFIGURE_ARGS SQUID_HTTP_PORT SQUID_ICP_PORT
1998-12-06 13:42:00 +01:00
MAKEFILE= makefile
MAKE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}" PKG_PREFIX="${PREFIX}"
PLIST_SRC= ${PKGDIR}/PLIST ${WRKDIR}/PLIST.share
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
1999-08-02 14:14:00 +02:00
.include "../../mk/bsd.prefs.mk"
# Configuration options which can be overwritten by the user.
SQUID_CONFIGURE_ARGS?= --enable-cachemgr-hostname=localhost \
--enable-delay-pool \
--enable-icmp \
--enable-ipf-transparent \
--enable-snmp \
--enable-underscores
SQUID_HTTP_PORT?= 3128
SQUID_ICP_PORT?= 3130
1999-08-02 14:14:00 +02:00
.if ${OPSYS} == "SunOS"
DEPENDS+= egcs-1.1.2:../../lang/egcs
MAKE_ENV+= CPPFLAGS= CFLAGS=
.endif
pre-patch:
@cd ${WRKSRC}/src && \
${MV} client_side.c client_side.c.prepatch && \
${SED} -e 's#1\.459\.2\.36#1\.459\.2\.37#' <client_side.c.prepatch \
>client_side.c
post-build:
1998-05-24 21:01:19 +02:00
${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/squid.sh >${WRKDIR}/squid.sh
1998-12-06 13:42:00 +01:00
pre-install:
@-rm -f ${WRKDIR}/PLIST.share
@${MKDIR} ${PREFIX}/share/squid
@${MKDIR} ${PREFIX}/share/squid/errors
@${MKDIR} ${PREFIX}/share/squid/icons
@( \
cd ${WRKSRC}/errors/English; \
ls ERR_* | ${SED} -e 's@^@share/squid/errors/@'; \
${ECHO} "@dirrm share/squid/errors"; \
1998-12-06 13:42:00 +01:00
cd ${WRKSRC}/icons; \
ls anthony-*.gif | ${SED} -e 's@^@share/squid/icons/@'; \
${ECHO} "@dirrm share/squid/icons"; \
${ECHO} "share/squid/mib.txt"; \
${ECHO} "share/squid/mime.conf"; \
${ECHO} "share/squid/mime.conf.default"; \
${ECHO} "share/squid/squid.conf.default"; \
${ECHO} "@dirrm share/squid"; \
1998-12-06 13:42:00 +01:00
) > ${WRKDIR}/PLIST.share
post-install:
1999-03-08 11:53:55 +01:00
cd ${WRKSRC}/src; ${MAKE} install-pinger
1998-05-24 21:01:19 +02:00
${INSTALL_SCRIPT} ${WRKDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh
@${SETENV} ${MAKE_ENV} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"