diff options
author | taca <taca@pkgsrc.org> | 2004-12-14 14:27:07 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2004-12-14 14:27:07 +0000 |
commit | a66be58fa226c02a67db2ede95b43757ec2308f7 (patch) | |
tree | fbac982fa8d2467b9d48a92cf518ebfd7a4ff856 /www/squid/Makefile | |
parent | 01f810ca1b6ac44bbdf236ecea6fc8d107957927 (diff) | |
download | pkgsrc-a66be58fa226c02a67db2ede95b43757ec2308f7.tar.gz |
Update squid package to 2.5.7nb2.
* Apply official three patches.
- 2004-12-08 01:03 (Minor) cachemgr vm_objects segfault
- 2004-12-08 00:47 (Minor) httpd_accel_port 0 (virtual) not working correctly
- 2004-12-07 23:45 (Cosmetic / Minor Security issue) Random error messages
in response to malformed host name
* use VARBASE for data directory.
* better handling data directory and user and group for squid with
bsd.pkg.install.mk.
Diffstat (limited to 'www/squid/Makefile')
-rw-r--r-- | www/squid/Makefile | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/www/squid/Makefile b/www/squid/Makefile index 22e1dc23474..b4259ce47b6 100644 --- a/www/squid/Makefile +++ b/www/squid/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.119 2004/11/28 16:33:58 taca Exp $ +# $NetBSD: Makefile,v 1.120 2004/12/14 14:27:07 taca Exp $ DISTNAME= squid-2.5.STABLE7 PKGNAME= squid-2.5.7 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= www MASTER_SITES= http://www.squid-cache.org/Versions/v2/2.5/ \ ftp://ftp.leo.org/pub/comp/general/infosys/www/daemons/squid/squid-2/STABLE/ \ @@ -15,7 +15,10 @@ PATCHFILES= squid-2.5.STABLE7-half_closed_POST.patch \ squid-2.5.STABLE7_req_resp_header.patch \ squid-2.5.STABLE7-helper_shutdown.patch \ squid-2.5.STABLE7-non_blocking_disk.patch \ - squid-2.5.STABLE7-blank_response.patch + squid-2.5.STABLE7-blank_response.patch \ + squid-2.5.STABLE7-dothost.patch \ + squid-2.5.STABLE7-httpd_accel_vport.patch \ + squid-2.5.STABLE7-cachemgr_vmobjects.patch PATCH_DIST_STRIP= -p1 MAINTAINER= taca@NetBSD.org @@ -23,10 +26,11 @@ HOMEPAGE= http://www.squid-cache.org/ COMMENT= Post-Harvest_cached WWW proxy cache and accelerator WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//} -USE_PERL5= build DIST_SUBDIR= ${PKGNAME_NOREV}-${DIST_STAMP} + DOCDIR= ${PREFIX}/share/doc/squid EXAMPLESDIR= ${PREFIX}/share/examples/squid +DATADIR= ${VARBASE}/squid # Update this time stamp pattern if any of official distfiles has changed. # @@ -40,21 +44,28 @@ PKG_SYSCONFSUBDIR?= squid .include "../../mk/bsd.prefs.mk" USE_BUILDLINK3= yes +USE_PERL5= build USE_PKGINSTALL= yes GNU_CONFIGURE= yes CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} \ - --localstatedir=/var/squid \ + --localstatedir=${DATADIR} \ ${SQUID_CONFIGURE_ARGS} -CONFIGURE_ENV+= PERL=${PERL5} +#CONFIGURE_ENV+= PERL=${PERL5} + +BUILD_DEFS+= SQUID_CONFIGURE_ARGS +MAKE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}" +MAKE_ENV+= PKG_PREFIX="${PREFIX}" +PLIST_SRC= ${WRKDIR}/PLIST +RCD_SCRIPTS= squid -BUILD_DEFS+= SQUID_CONFIGURE_ARGS -MAKE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}" -MAKE_ENV+= PKG_PREFIX="${PREFIX}" -PLIST_SRC= ${WRKDIR}/PLIST -RCD_SCRIPTS= squid +SQUID_USER?= squid +SQUID_GROUP?= squid -CONF_FILES+= ${EXAMPLESDIR}/mime.conf ${PKG_SYSCONFDIR}/mime.conf -CONF_FILES+= ${EXAMPLESDIR}/squid.conf ${PKG_SYSCONFDIR}/squid.conf +CONF_FILES+= ${EXAMPLESDIR}/mime.conf ${PKG_SYSCONFDIR}/mime.conf +CONF_FILES+= ${EXAMPLESDIR}/squid.conf ${PKG_SYSCONFDIR}/squid.conf +OWN_DIRS= ${DATADIR} +OWN_DIRS_PERMS+= ${DATADIR}/cache ${SQUID_USER} ${SQUID_GROUP} 0750 \ + ${DATADIR}/logs ${SQUID_USER} ${SQUID_GROUP} 0750 .if ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "SunOS" CONFIGURE_ARGS+= --enable-arp-acl @@ -116,5 +127,6 @@ post-install: ${ECHO} "@dirrm share/squid" \ ) >>${PLIST_SRC} +.include "../../lang/perl5/buildlink3.mk" .include "../../security/openssl/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |