diff options
author | Dmitry Sivachenko <demon@FreeBSD.org> | 2005-05-08 18:59:20 +0000 |
---|---|---|
committer | Dmitry Sivachenko <demon@FreeBSD.org> | 2005-05-08 18:59:20 +0000 |
commit | 53c417e3fda2c456233c476576cbce9f313fb4f1 (patch) | |
tree | 1171e56a567556e20afe92cce3febc0efdc1716c | |
parent | - Update to 0.11 (diff) |
New port: cgilib.
This is quite a simple library that provides an easy interface to the common
gateway interface, known as CGI. The purpose is to provide an easy to use
interface to CGI if you need to write your program in C instead of perl.
It is needed for modern rrdtool.
Notes
Notes:
svn path=/head/; revision=134875
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/cgilib/Makefile | 28 | ||||
-rw-r--r-- | devel/cgilib/distinfo | 2 | ||||
-rw-r--r-- | devel/cgilib/files/Makefile.bsd | 13 | ||||
-rw-r--r-- | devel/cgilib/files/patch-cgi.c | 11 | ||||
-rw-r--r-- | devel/cgilib/pkg-descr | 5 | ||||
-rw-r--r-- | devel/cgilib/pkg-plist | 4 |
7 files changed, 64 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index deee03d4ca6c..66231d282d25 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -115,6 +115,7 @@ SUBDIR += cedet-emacs20 SUBDIR += cflow SUBDIR += cflow2vcg + SUBDIR += cgilib SUBDIR += cgprof SUBDIR += chora SUBDIR += cil diff --git a/devel/cgilib/Makefile b/devel/cgilib/Makefile new file mode 100644 index 000000000000..172c173e1cb8 --- /dev/null +++ b/devel/cgilib/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: cgilib +# Date created: 8 May 2005 +# Whom: Dmitry Sivachenko <demon@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= cgilib +PORTVERSION= 0.5 +CATEGORIES= devel www +MASTER_SITES= http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/libs/ + +MAINTAINER= demon@FreeBSD.org +COMMENT= A library of procedures for developing CGI programs in C + +INSTALLS_SHLIB= yes + +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 + +post-install: + ${INSTALL_DATA} ${WRKSRC}/cgi.h ${PREFIX}/include + ${INSTALL_MAN} ${WRKSRC}/*.3 ${PREFIX}/man/man3 + +.include <bsd.port.mk> diff --git a/devel/cgilib/distinfo b/devel/cgilib/distinfo new file mode 100644 index 000000000000..65aebb223271 --- /dev/null +++ b/devel/cgilib/distinfo @@ -0,0 +1,2 @@ +MD5 (cgilib-0.5.tar.gz) = 5187ba11b2ec165b6c5b6629087733b0 +SIZE (cgilib-0.5.tar.gz) = 13991 diff --git a/devel/cgilib/files/Makefile.bsd b/devel/cgilib/files/Makefile.bsd new file mode 100644 index 000000000000..ad32abca8b8d --- /dev/null +++ b/devel/cgilib/files/Makefile.bsd @@ -0,0 +1,13 @@ +LIB= cgi + +NOPROFILE= yes +SHLIB_MAJOR?= 1 +SHLIB_MINOR?= 0 + +SRCS= cookies.c cgi.c + +CFLAGS+= -I. + +LIBDIR= ${PREFIX}/lib + +.include <bsd.lib.mk> diff --git a/devel/cgilib/files/patch-cgi.c b/devel/cgilib/files/patch-cgi.c new file mode 100644 index 000000000000..ff6ed6251db6 --- /dev/null +++ b/devel/cgilib/files/patch-cgi.c @@ -0,0 +1,11 @@ +--- 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> + + int cgiDebugLevel = 0; diff --git a/devel/cgilib/pkg-descr b/devel/cgilib/pkg-descr new file mode 100644 index 000000000000..2759a8b60685 --- /dev/null +++ b/devel/cgilib/pkg-descr @@ -0,0 +1,5 @@ +This is quite a simple library that provides an easy interface to the common +gateway interface, known as CGI. The purpose is to provide an easy to use +interface to CGI if you need to write your program in C instead of perl. + +WWW: http://www.infodrom.org/projects/cgilib/ diff --git a/devel/cgilib/pkg-plist b/devel/cgilib/pkg-plist new file mode 100644 index 000000000000..e4b2f0021767 --- /dev/null +++ b/devel/cgilib/pkg-plist @@ -0,0 +1,4 @@ +include/cgi.h +lib/libcgi.a +lib/libcgi.so +lib/libcgi.so.1 |