Date: Sat, 3 May 2008 10:03:49 -0700 (PDT) From: Yen-Ming Lee <leeym@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: demon@FreeBSD.org Subject: ports/123370: [PATCH] devel/cgilib: update to 0.6 Message-ID: <200805031703.m43H3nko095291@cn1.leeym.com> Resent-Message-ID: <200805031710.m43HA2fm015709@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 123370 >Category: ports >Synopsis: [PATCH] devel/cgilib: update to 0.6 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat May 03 17:10:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Yen-Ming Lee >Release: FreeBSD 7.0-RELEASE i386 >Organization: >Environment: System: FreeBSD cn1.leeym.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 >Description: - Update to 0.6 Removed file(s): - pkg-plist Port maintainer (demon@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- cgilib-0.6.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/devel/cgilib/Makefile,v retrieving revision 1.3 diff -u -u -r1.3 Makefile --- Makefile 19 Apr 2008 17:47:41 -0000 1.3 +++ Makefile 3 May 2008 17:04:41 -0000 @@ -6,7 +6,7 @@ # PORTNAME= cgilib -PORTVERSION= 0.5 +PORTVERSION= 0.6 CATEGORIES= devel www MASTER_SITES= http://www.infodrom.org/projects/cgilib/download/ \ http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/libs/ @@ -18,9 +18,11 @@ MAKEFILE= ${FILESDIR}/Makefile.bsd -MAN3= cgiDebug.3 cgiFree.3 cgiFreeList.3 cgiGetCookie.3 \ - cgiGetCookies.3 cgiGetValue.3 cgiGetVariables.3 cgiHeader.3 \ - cgiInit.3 cgiRedirect.3 cgiSetHeader.3 cgiSetType.3 +PLIST_FILES= include/cgi.h lib/libcgi.a lib/libcgi.so lib/libcgi.so.1 +MAN3= cgiDebug.3 cgiFree.3 cgiFreeList.3 cgiGetCookie.3 cgiEscape.3 \ + cgiGetFile.3 cgiGetFiles.3 cgiGetCookies.3 cgiGetValue.3 \ + cgiGetVariables.3 cgiHeader.3 cgiInit.3 cgiRedirect.3 \ + cgiSetHeader.3 cgiSetType.3 post-install: ${INSTALL_DATA} ${WRKSRC}/cgi.h ${PREFIX}/include Index: distinfo =================================================================== RCS file: /home/pcvs/ports/devel/cgilib/distinfo,v retrieving revision 1.2 diff -u -u -r1.2 distinfo --- distinfo 22 Jan 2006 08:27:56 -0000 1.2 +++ distinfo 3 May 2008 17:04:41 -0000 @@ -1,3 +1,3 @@ -MD5 (cgilib-0.5.tar.gz) = 5187ba11b2ec165b6c5b6629087733b0 -SHA256 (cgilib-0.5.tar.gz) = 7e480fb0bb3e91f51130e2785acdf8e195b75e10b0273c90425e10459264cf35 -SIZE (cgilib-0.5.tar.gz) = 13991 +MD5 (cgilib-0.6.tar.gz) = 392f00a4ce90426606efcb6ce705fd75 +SHA256 (cgilib-0.6.tar.gz) = b825a7ff413c02a758af1e54641d41f24099b9c54c4530b5e6edebe21d9640dd +SIZE (cgilib-0.6.tar.gz) = 25268 Index: pkg-plist =================================================================== RCS file: pkg-plist diff -N pkg-plist --- pkg-plist 8 May 2005 18:59:20 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,4 +0,0 @@ -include/cgi.h -lib/libcgi.a -lib/libcgi.so -lib/libcgi.so.1 Index: files/Makefile.bsd =================================================================== RCS file: /home/pcvs/ports/devel/cgilib/files/Makefile.bsd,v retrieving revision 1.1 diff -u -u -r1.1 Makefile.bsd --- files/Makefile.bsd 8 May 2005 18:59:20 -0000 1.1 +++ files/Makefile.bsd 3 May 2008 17:04:41 -0000 @@ -1,10 +1,10 @@ LIB= cgi -NOPROFILE= yes +NO_PROFILE= yes SHLIB_MAJOR?= 1 SHLIB_MINOR?= 0 -SRCS= cookies.c cgi.c +SRCS= cookies.c cgi.c aux.c CFLAGS+= -I. Index: files/patch-cgi.c =================================================================== RCS file: /home/pcvs/ports/devel/cgilib/files/patch-cgi.c,v retrieving revision 1.1 diff -u -u -r1.1 patch-cgi.c --- files/patch-cgi.c 8 May 2005 18:59:20 -0000 1.1 +++ files/patch-cgi.c 3 May 2008 17:04:41 -0000 @@ -1,11 +1,33 @@ ---- cgi.c.orig Sat Aug 21 01:14:07 1999 -+++ cgi.c Sun May 8 22:42:30 2005 -@@ -31,7 +31,7 @@ - #include <unistd.h> - #include <string.h> - #include <ctype.h> --#include <malloc.h> -+#include <stdlib.h> - #include <cgi.h> +--- cgi.c.orig 2008-05-03 09:51:51.000000000 -0700 ++++ cgi.c 2008-05-03 09:52:40.000000000 -0700 +@@ -227,6 +227,30 @@ + return strdup (template); + } - int cgiDebugLevel = 0; ++ ++size_t ++strnlen(const char *s, size_t len) ++{ ++ size_t i; ++ ++ for(i = 0; i < len && s[i]; i++) ++ ; ++ return i; ++} ++ ++char * ++strndup(const char *old, size_t sz) ++{ ++ size_t len = strnlen (old, sz); ++ char *t = malloc(len + 1); ++ ++ if (t != NULL) { ++ memcpy (t, old, len); ++ t[len] = '\0'; ++ } ++ return t; ++} ++ + /* cgiReadMultipart() + * + * Decode multipart/form-data --- cgilib-0.6.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805031703.m43H3nko095291>