Mon May 9 11:11:11 2011 UTC ()
Fix least privileges support on recent (snv_140+) OpenSolaris versions.
Bump PKGREVISION


(fhajny)
diff -r1.9 -r1.10 pkgsrc/www/varnish/Makefile
diff -r1.7 -r1.8 pkgsrc/www/varnish/distinfo
diff -r0 -r1.1 pkgsrc/www/varnish/patches/patch-bin__varnishd__mgt_child.c

cvs diff -r1.9 -r1.10 pkgsrc/www/varnish/Makefile (expand / switch to unified diff)

--- pkgsrc/www/varnish/Makefile 2011/04/01 18:59:41 1.9
+++ pkgsrc/www/varnish/Makefile 2011/05/09 11:11:11 1.10
@@ -1,17 +1,18 @@ @@ -1,17 +1,18 @@
1# $NetBSD: Makefile,v 1.9 2011/04/01 18:59:41 zafer Exp $ 1# $NetBSD: Makefile,v 1.10 2011/05/09 11:11:11 fhajny Exp $
2# 2#
3 3
4DISTNAME= varnish-2.1.5 4DISTNAME= varnish-2.1.5
 5PKGREVISION= 1
5CATEGORIES= www 6CATEGORIES= www
6MASTER_SITES= http://repo.varnish-cache.org/source/ 7MASTER_SITES= http://repo.varnish-cache.org/source/
7 8
8MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://varnish-cache.org/ 10HOMEPAGE= http://varnish-cache.org/
10COMMENT= High-performace HTTP accelerator 11COMMENT= High-performace HTTP accelerator
11LICENSE= modified-bsd 12LICENSE= modified-bsd
12 13
13PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
14 15
15GNU_CONFIGURE= yes 16GNU_CONFIGURE= yes
16USE_LIBTOOL= yes 17USE_LIBTOOL= yes
17USE_TOOLS+= autoconf pkg-config gmake 18USE_TOOLS+= autoconf pkg-config gmake

cvs diff -r1.7 -r1.8 pkgsrc/www/varnish/distinfo (expand / switch to unified diff)

--- pkgsrc/www/varnish/distinfo 2011/04/01 18:59:41 1.7
+++ pkgsrc/www/varnish/distinfo 2011/05/09 11:11:11 1.8
@@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
1$NetBSD: distinfo,v 1.7 2011/04/01 18:59:41 zafer Exp $ 1$NetBSD: distinfo,v 1.8 2011/05/09 11:11:11 fhajny Exp $
2 2
3SHA1 (varnish-2.1.5.tar.gz) = 5c413ee7c4267d9fd4713fbff059d1be5fbba60f 3SHA1 (varnish-2.1.5.tar.gz) = 5c413ee7c4267d9fd4713fbff059d1be5fbba60f
4RMD160 (varnish-2.1.5.tar.gz) = 4619d4be920504388325f06afdbea9b40f5a806a 4RMD160 (varnish-2.1.5.tar.gz) = 4619d4be920504388325f06afdbea9b40f5a806a
5Size (varnish-2.1.5.tar.gz) = 1530856 bytes 5Size (varnish-2.1.5.tar.gz) = 1530856 bytes
6SHA1 (patch-aa) = d0bce82fc6bc0bb7e078f61461a21172bb658d4a 6SHA1 (patch-aa) = d0bce82fc6bc0bb7e078f61461a21172bb658d4a
7SHA1 (patch-ab) = 30a64ce77354df3f2e0e830f60f4c6d98ef3099c 7SHA1 (patch-ab) = 30a64ce77354df3f2e0e830f60f4c6d98ef3099c
 8SHA1 (patch-bin__varnishd__mgt_child.c) = f715b65a945147794b71c427c6067b6218392eb3

File Added: pkgsrc/www/varnish/patches/Attic/patch-bin__varnishd__mgt_child.c
$NetBSD: patch-bin__varnishd__mgt_child.c,v 1.1 2011/05/09 11:11:11 fhajny Exp $

Patch varnishd to run on recent (snv_140+) versions of OpenSolaris.
See http://www.varnish-cache.org/trac/ticket/912
--- bin/varnishd/mgt_child.c.orig	2010-10-21 08:57:22.000000000 +0000
+++ bin/varnishd/mgt_child.c
@@ -298,6 +298,7 @@ waive_privileges(void)
 
 	/* new privilege, silently ignore any errors if it doesn't exist */
 	priv_addset(minimal, "net_access");
+	priv_addset(minimal, "file_read");
 
 #define SETPPRIV(which, set)				       \
 	if (setppriv(PRIV_SET, which, set))		       \