Index: head/www/kcgi/Makefile =================================================================== --- head/www/kcgi/Makefile (revision 392501) +++ head/www/kcgi/Makefile (revision 392502) @@ -1,24 +1,23 @@ # $FreeBSD$ PORTNAME= kcgi -PORTVERSION= 0.6.2 -PORTREVISION= 1 +PORTVERSION= 0.6.3 CATEGORIES= www devel MASTER_SITES= http://kristaps.bsd.lv/kcgi/snapshots/ MAINTAINER= bapt@FreeBSD.org COMMENT= Minimal sandboxed CGI library in C LICENSE= ISCL USES= tar:tgz OPTIONS_DEFINE= EXAMPLES HAS_CONFIGURE= yes MAKE_ARGS= DATADIR=${EXAMPLESDIR} post-install: ${INSTALL_PROGRAM} ${WRKSRC}/kfcgi ${STAGEDIR}${PREFIX}/sbin/kfcgi .include Index: head/www/kcgi/distinfo =================================================================== --- head/www/kcgi/distinfo (revision 392501) +++ head/www/kcgi/distinfo (revision 392502) @@ -1,2 +1,2 @@ -SHA256 (kcgi-0.6.2.tgz) = a1e5104c521f6528afd544c20e2c35e176916085659a878ae99eb59dc119534d -SIZE (kcgi-0.6.2.tgz) = 97487 +SHA256 (kcgi-0.6.3.tgz) = db71973c11cdda5c2dec01ee906af59743422440a4c5a17797285a78dfdf98c6 +SIZE (kcgi-0.6.3.tgz) = 97541 Index: head/www/kcgi/files/patch-child.c =================================================================== --- head/www/kcgi/files/patch-child.c (revision 392501) +++ head/www/kcgi/files/patch-child.c (nonexistent) @@ -1,12 +0,0 @@ ---- child.c.orig 2015-07-16 22:52:47 UTC -+++ child.c -@@ -17,9 +17,7 @@ - #ifdef HAVE_CONFIG_H - #include "config.h" - #endif --#ifdef __linux__ - #include --#endif - - #include - #include Property changes on: head/www/kcgi/files/patch-child.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/kcgi/files/patch-kcgiregress.c =================================================================== --- head/www/kcgi/files/patch-kcgiregress.c (revision 392501) +++ head/www/kcgi/files/patch-kcgiregress.c (nonexistent) @@ -1,12 +0,0 @@ ---- kcgiregress.c.orig 2015-07-17 06:16:43 UTC -+++ kcgiregress.c -@@ -197,9 +197,6 @@ dochild_cgi(kcgi_regress_server child, v - setenv(headbuf, val, 1); - } - -- if (NULL == head) -- goto out; -- - if (-1 != in) - close(in); - if (-1 != s) Property changes on: head/www/kcgi/files/patch-kcgiregress.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/kcgi/files/patch-output.c =================================================================== --- head/www/kcgi/files/patch-output.c (revision 392501) +++ head/www/kcgi/files/patch-output.c (nonexistent) @@ -1,20 +0,0 @@ ---- output.c.orig 2015-07-16 22:52:47 UTC -+++ output.c -@@ -17,9 +17,7 @@ - #ifdef HAVE_CONFIG_H - #include "config.h" - #endif --#ifdef __linux__ - #include --#endif - - #include - #include -@@ -27,6 +25,7 @@ - #include - #include - #include -+#include - #ifdef HAVE_ZLIB - #include - #endif Property changes on: head/www/kcgi/files/patch-output.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/kcgi/files/patch-Makefile =================================================================== --- head/www/kcgi/files/patch-Makefile (nonexistent) +++ head/www/kcgi/files/patch-Makefile (revision 392502) @@ -0,0 +1,9 @@ +--- Makefile.orig 2015-07-18 20:23:31 UTC ++++ Makefile +@@ -1,5 +1,5 @@ + .SUFFIXES: .3 .3.html .8 .8.html .dot .svg .gnuplot .png .xml .html +- ++.PHONY: regress + # Comment if you don't need statically linked. + # This is only for the sample program! + #STATIC = -static Property changes on: head/www/kcgi/files/patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/kcgi/files/patch-sandbox-capsicum.c =================================================================== --- head/www/kcgi/files/patch-sandbox-capsicum.c (nonexistent) +++ head/www/kcgi/files/patch-sandbox-capsicum.c (revision 392502) @@ -0,0 +1,18 @@ +--- sandbox-capsicum.c.orig 2015-07-18 20:23:31 UTC ++++ sandbox-capsicum.c +@@ -39,10 +39,13 @@ ksandbox_capsicum_init_child(void *arg, + + cap_rights_init(&rights); + +- if (cap_rights_limit(STDIN_FILENO, &rights) < 0 && errno != ENOSYS) ++ cap_rights_init(&rights, CAP_READ|CAP_FSTAT); ++ /* Test for EBADF because STDIN_FILENO can be close in fcgi */ ++ if (cap_rights_limit(STDIN_FILENO, &rights) < 0 && errno != ENOSYS && ++ errno != EBADF) + XWARN("cap_rights_limit: STDIN_FILENO"); + +- cap_rights_init(&rights, CAP_WRITE); ++ cap_rights_init(&rights, CAP_WRITE|CAP_FSTAT); + if (cap_rights_limit(STDOUT_FILENO, &rights) < 0 && errno != ENOSYS) + XWARN("cap_rights_limit: STDOUT_FILENO"); + if (cap_rights_limit(STDERR_FILENO, &rights) < 0 && errno != ENOSYS) Property changes on: head/www/kcgi/files/patch-sandbox-capsicum.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property