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
--- 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 | |
4 | DISTNAME= varnish-2.1.5 | | 4 | DISTNAME= varnish-2.1.5 |
| | | 5 | PKGREVISION= 1 |
5 | CATEGORIES= www | | 6 | CATEGORIES= www |
6 | MASTER_SITES= http://repo.varnish-cache.org/source/ | | 7 | MASTER_SITES= http://repo.varnish-cache.org/source/ |
7 | | | 8 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://varnish-cache.org/ | | 10 | HOMEPAGE= http://varnish-cache.org/ |
10 | COMMENT= High-performace HTTP accelerator | | 11 | COMMENT= High-performace HTTP accelerator |
11 | LICENSE= modified-bsd | | 12 | LICENSE= modified-bsd |
12 | | | 13 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 14 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | | | 15 | |
15 | GNU_CONFIGURE= yes | | 16 | GNU_CONFIGURE= yes |
16 | USE_LIBTOOL= yes | | 17 | USE_LIBTOOL= yes |
17 | USE_TOOLS+= autoconf pkg-config gmake | | 18 | USE_TOOLS+= autoconf pkg-config gmake |
--- 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 | |
3 | SHA1 (varnish-2.1.5.tar.gz) = 5c413ee7c4267d9fd4713fbff059d1be5fbba60f | | 3 | SHA1 (varnish-2.1.5.tar.gz) = 5c413ee7c4267d9fd4713fbff059d1be5fbba60f |
4 | RMD160 (varnish-2.1.5.tar.gz) = 4619d4be920504388325f06afdbea9b40f5a806a | | 4 | RMD160 (varnish-2.1.5.tar.gz) = 4619d4be920504388325f06afdbea9b40f5a806a |
5 | Size (varnish-2.1.5.tar.gz) = 1530856 bytes | | 5 | Size (varnish-2.1.5.tar.gz) = 1530856 bytes |
6 | SHA1 (patch-aa) = d0bce82fc6bc0bb7e078f61461a21172bb658d4a | | 6 | SHA1 (patch-aa) = d0bce82fc6bc0bb7e078f61461a21172bb658d4a |
7 | SHA1 (patch-ab) = 30a64ce77354df3f2e0e830f60f4c6d98ef3099c | | 7 | SHA1 (patch-ab) = 30a64ce77354df3f2e0e830f60f4c6d98ef3099c |
| | | 8 | SHA1 (patch-bin__varnishd__mgt_child.c) = f715b65a945147794b71c427c6067b6218392eb3 |
$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)) \