brad 4e70dc50d5 - check that PATCH_DEBUG is set to yes instead of just being defined
- change MAINTAINER, ports@ -> brad@
- add 2 distribution patches;

squid-2.2.stable5-domain-match.patch
Matching a hostname and a domain name doesn't always work, depending on
leading dots and other edge conditions. Plus, the code for matching in
ACL's worked one way, while the code for matching 'cache_peer_domain' list
worked slighly different.

The patch below makes all host/domain matching operate the same way. It
also changes the rules a bit, so your current configuration probably will
not work the way you want after applying this patch.

- patch was included in the patches dir because of the difference in
relative path in comparison to all the other distribution patches.

squid-2.2.stable5-mkhttpdlogtime-end-of-year.patch = patch-ai
mkhttpdlogtime() generates a date string of the form 31/Dec/1999:23:59:59 +0900.
But when the year changes, the timezone offset will be wrong, for example:
01/Jan/2000:00:00:00 -1500.
2000-01-17 15:38:38 +00:00

33 lines
963 B
Makefile

# $OpenBSD: Makefile,v 1.8 2000/01/17 15:38:38 brad Exp $
DISTNAME= squid-2.2.STABLE5
PKGNAME= squid-2.2
CATEGORIES= www
MASTER_SITES= http://squid.nlanr.net/Versions/v2/2.2/
EXTRACT_SUFX= -src.tar.gz
PATCH_SITES= http://squid.nlanr.net/Versions/v2/2.2/bugs/
PATCHFILES= squid-2.2.stable5-no_cache.patch \
squid-2.2.stable5-ipcache_negative.patch \
squid-2.2.stable5-newlines_in_auth.patch \
squid-2.2.stable5-domain-match.patch
.if defined(PATCH_DEBUG) && ${PATCH_DEBUG:U} == YES
PATCH_DIST_ARGS=-d ${WRKSRC}/src -E ${PATCH_DIST_STRIP}
.else
PATCH_DIST_ARGS=-d ${WRKSRC}/src --forward --quiet -E ${PATCH_DIST_STRIP}
.endif
MAINTAINER= brad@openbsd.org
SYSCONFDIR= /etc/squid
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${SYSCONFDIR} --localstatedir="/var/squid"
MAKEFILE= makefile
STRIP= # won't install scripts correctly otherwise.
post-install:
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
.include <bsd.port.mk>