summaryrefslogtreecommitdiff
path: root/www/cgilib
diff options
context:
space:
mode:
authorwennmach <wennmach>1999-11-06 16:50:47 +0000
committerwennmach <wennmach>1999-11-06 16:50:47 +0000
commited4517bd5388b817a9eaa002f845153fb87fb3b1 (patch)
tree48816775745ed5abd76cbe055b28db82b9bd58fb /www/cgilib
parenta7971b3ebab5022d539104ddce5447e89c8e7438 (diff)
downloadpkgsrc-ed4517bd5388b817a9eaa002f845153fb87fb3b1.tar.gz
Initial import of cgilib-0.5: a common gateway interface library.
Provided by Berndt Josef Wulf (wulf@ping.net.au) in PR 8751 with some modifications by myself.
Diffstat (limited to 'www/cgilib')
-rw-r--r--www/cgilib/Makefile13
-rw-r--r--www/cgilib/files/md53
-rw-r--r--www/cgilib/files/patch-sum4
-rw-r--r--www/cgilib/patches/patch-aa12
-rw-r--r--www/cgilib/patches/patch-ab53
-rw-r--r--www/cgilib/pkg/COMMENT1
-rw-r--r--www/cgilib/pkg/DESCR8
-rw-r--r--www/cgilib/pkg/PLIST19
8 files changed, 113 insertions, 0 deletions
diff --git a/www/cgilib/Makefile b/www/cgilib/Makefile
new file mode 100644
index 00000000000..a86c6465de6
--- /dev/null
+++ b/www/cgilib/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/11/06 16:50:47 wennmach Exp $
+#
+
+DISTNAME= cgilib-0.5
+CATEGORIES= www
+MASTER_SITES= ftp://ftp.infodrom.north.de/pub/people/joey/cgilib/
+
+MAINTAINER= wulf@ping.net.au
+HOMEPAGE= http://www.infodrom.north.de/cgilib/
+
+BUILD_DEPENDS+= rman:../../textproc/rman
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/cgilib/files/md5 b/www/cgilib/files/md5
new file mode 100644
index 00000000000..231f171f4dc
--- /dev/null
+++ b/www/cgilib/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/11/06 16:50:47 wennmach Exp $
+
+MD5 (cgilib-0.5.tar.gz) = 5187ba11b2ec165b6c5b6629087733b0
diff --git a/www/cgilib/files/patch-sum b/www/cgilib/files/patch-sum
new file mode 100644
index 00000000000..e8d316c55dd
--- /dev/null
+++ b/www/cgilib/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 1999/11/06 16:50:47 wennmach Exp $
+
+MD5 (patch-aa) = 118b69e0833a92a704c441b49bfd8154
+MD5 (patch-ab) = 79a4b31ba3f55e1b0fbe7969a7eb844a
diff --git a/www/cgilib/patches/patch-aa b/www/cgilib/patches/patch-aa
new file mode 100644
index 00000000000..8022a6801a1
--- /dev/null
+++ b/www/cgilib/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/11/06 16:50:47 wennmach Exp $
+--- cgitest.c.ORIG Wed Nov 3 21:41:58 1999
++++ cgitest.c Wed Nov 3 21:42:15 1999
+@@ -113,7 +113,7 @@
+ cgiHeader();
+ printf ("<html>\n<head><title>cgilib</title></title>\n\n<body bgcolor=\"#ffffff\">\n");
+ printf ("<h1><a href=\"%s\">cgilib</a></h1>\n", URL);
+- printf ("<h3>Cookie "Library" set</h3>\n");
++ printf ("<h3>Cookie \"Library\" set</h3>\n");
+ printf ("<p><br><p><br><a href=\"/cgi-bin/cgitest\">Test</a><p>\n");
+ printf ("<p><br><p><br><a href=\"/cgi-bin/cgitest/redirect\">Redirect</a><p>\n");
+ printf ("<p><br><p><br><a href=\"/cgi-bin/cgitest/listall\">List Everything</a><p>\n");
diff --git a/www/cgilib/patches/patch-ab b/www/cgilib/patches/patch-ab
new file mode 100644
index 00000000000..1bcdffa9c3b
--- /dev/null
+++ b/www/cgilib/patches/patch-ab
@@ -0,0 +1,53 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/11/06 16:50:47 wennmach Exp $
+--- Makefile.orig Fri Aug 20 23:14:07 1999
++++ Makefile Sat Nov 6 16:35:49 1999
+@@ -14,30 +14,37 @@
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+
+-CFLAGS = -I. -Wall -O2 -g
++CFLAGS = -I. -Wall -O2
+ LDFLAGS = -L.
+ LIBS = -lcgi
+
+ OBJS = cgi.o cookies.o
+
++all:: libcgi.a cgitest jumpto htmlman
++
+ libcgi.a: $(OBJS)
+- ar rc $@ $^
++ ar ruv $@ $(OBJS)
+
+ cgitest: cgitest.o libcgi.a
+- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ cgitest.o $(LIBS)
+
+ jumpto: jumpto.o libcgi.a
+- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ jumpto.o $(LIBS)
+
+-all: libcgi.a cgitest jumpto
++htmlman:
++ for f in *.[35]; do \
++ nroff -mandoc $$f|rman -f HTML --title $$f -r "%s.%s.html" > $$f.html; \
++ done
+
+-install: cgitest
+- install -m 755 cgitest /usr/lib/cgi-bin
++install: all
++ install -c -m 755 cgitest ${PREFIX}/libexec/cgi-bin
++ install -c -m 755 jumpto ${PREFIX}/libexec/cgi-bin
++ install -c -m 444 libcgi.a ${PREFIX}/lib
++ install -c -m 444 cgi.h ${PREFIX}/include
++ install -d ${PREFIX}/share/doc/cgilib
++ for i in *.html; do \
++ install -c -m 444 $$i ${PREFIX}/share/doc/cgilib ; \
++ done
+
+ clean:
+ rm -f cgitest cgitest.o jumpto jumpto.o libcgi.a $(OBJS) *.[35].html
+-
+-htmlman:
+- for f in *.[35]; do \
+- man -l $$f|rman -f HTML --title $$f -r "%s.%s.html" > $$f.html; \
+- done
diff --git a/www/cgilib/pkg/COMMENT b/www/cgilib/pkg/COMMENT
new file mode 100644
index 00000000000..98e3897628f
--- /dev/null
+++ b/www/cgilib/pkg/COMMENT
@@ -0,0 +1 @@
+a common gateway interface library.
diff --git a/www/cgilib/pkg/DESCR b/www/cgilib/pkg/DESCR
new file mode 100644
index 00000000000..9c65e52245c
--- /dev/null
+++ b/www/cgilib/pkg/DESCR
@@ -0,0 +1,8 @@
+The Common Gateway Interface is a way to create dynamic
+web pages. It defines rules for interaction between a
+program and the web server while the server talks to the
+client. cgilib provides a library of CGI routines:
+cgiDebug, cgiFree, cgiFreeList, cgiGetCookie,
+cgiGetCookies, cgiGetValue, cgiGetVariables,
+cgiHeader, cgiInit, cgiRedirect, cgiSetHeader,
+cgiSetType.
diff --git a/www/cgilib/pkg/PLIST b/www/cgilib/pkg/PLIST
new file mode 100644
index 00000000000..4205556b19f
--- /dev/null
+++ b/www/cgilib/pkg/PLIST
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/11/06 16:50:47 wennmach Exp $
+include/cgi.h
+lib/libcgi.a
+libexec/cgi-bin/cgitest
+libexec/cgi-bin/jumpto
+share/doc/cgilib/cgi.5.html
+share/doc/cgilib/cgiDebug.3.html
+share/doc/cgilib/cgiFree.3.html
+share/doc/cgilib/cgiFreeList.3.html
+share/doc/cgilib/cgiGetCookie.3.html
+share/doc/cgilib/cgiGetCookies.3.html
+share/doc/cgilib/cgiGetValue.3.html
+share/doc/cgilib/cgiGetVariables.3.html
+share/doc/cgilib/cgiHeader.3.html
+share/doc/cgilib/cgiInit.3.html
+share/doc/cgilib/cgiRedirect.3.html
+share/doc/cgilib/cgiSetHeader.3.html
+share/doc/cgilib/cgiSetType.3.html
+@dirrm share/doc/cgilib