summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2001-09-10 21:36:19 +0000
committerdmcmahill <dmcmahill>2001-09-10 21:36:19 +0000
commit453633a0fc3caf74f6a46b124cf6bafd5e9c98d1 (patch)
tree17c6a5eb8c7c76a78916be727526bddfc09c1e5d /www
parent2b07b0f740bc8588c2d3ebe912222c93a9fe5798 (diff)
downloadpkgsrc-453633a0fc3caf74f6a46b124cf6bafd5e9c98d1.tar.gz
- install the source to the example program (as recommended by the
program author and desired by at least one package user). - format string patch for 64-bit systems - add message notifying users that an executible cgi program has been installed in their cgi-bin directory (since they may wish to disable them).
Diffstat (limited to 'www')
-rw-r--r--www/cgilib/distinfo8
-rw-r--r--www/cgilib/patches/patch-aa17
-rw-r--r--www/cgilib/patches/patch-ab15
-rw-r--r--www/cgilib/patches/patch-ac11
-rw-r--r--www/cgilib/patches/patch-ad18
-rw-r--r--www/cgilib/pkg/MESSAGE15
-rw-r--r--www/cgilib/pkg/PLIST5
7 files changed, 73 insertions, 16 deletions
diff --git a/www/cgilib/distinfo b/www/cgilib/distinfo
index aaf2c5d0096..2a66096d521 100644
--- a/www/cgilib/distinfo
+++ b/www/cgilib/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.4 2001/05/03 14:24:47 jlam Exp $
+$NetBSD: distinfo,v 1.5 2001/09/10 21:36:19 dmcmahill Exp $
SHA1 (cgilib-0.5.tar.gz) = 3ba65e9fac43b875427a126ebbaaa6155e9692df
Size (cgilib-0.5.tar.gz) = 13991 bytes
-SHA1 (patch-aa) = 697abdf17ee09793360d216097cfb46b3630ae8b
-SHA1 (patch-ab) = 6351e13675291fbfff0995f01af544bca5ad668e
+SHA1 (patch-aa) = 9b92cde49f84a22d53044b230b05798dc90085ef
+SHA1 (patch-ab) = 3f463bee9f814e4bd77cca36c28ccb9b3844ff8a
+SHA1 (patch-ac) = 0f3929094024de5357d97b00abb9bd12cdd2fbc8
+SHA1 (patch-ad) = 94b9179073afd4494258ac72fed2d275415fb67d
diff --git a/www/cgilib/patches/patch-aa b/www/cgilib/patches/patch-aa
index 8022a6801a1..4f7a915ba2e 100644
--- a/www/cgilib/patches/patch-aa
+++ b/www/cgilib/patches/patch-aa
@@ -1,12 +1,17 @@
-$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();
+$NetBSD: patch-aa,v 1.2 2001/09/10 21:36:20 dmcmahill Exp $
+
+--- cgitest.c.orig Tue Aug 17 09:21:20 1999
++++ cgitest.c Mon Sep 10 16:08:57 2001
+@@ -24,4 +24,5 @@
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <cgi.h>
+
+@@ -114,5 +115,5 @@
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
index fbd107c8411..0d60970242e 100644
--- a/www/cgilib/patches/patch-ab
+++ b/www/cgilib/patches/patch-ab
@@ -1,15 +1,15 @@
-$NetBSD: patch-ab,v 1.4 2001/05/03 14:24:47 jlam Exp $
---- Makefile.orig Fri Aug 20 23:14:07 1999
-+++ Makefile Mon Nov 8 18:06:31 1999
-@@ -14,30 +14,38 @@
- # along with this program; if not, write to the Free Software
+$NetBSD: patch-ab,v 1.5 2001/09/10 21:36:20 dmcmahill Exp $
+
+--- Makefile.orig Fri Aug 20 17:14:07 1999
++++ Makefile Mon Sep 10 15:46:59 2001
+@@ -15,5 +15,5 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
-CFLAGS = -I. -Wall -O2 -g
+CFLAGS += -I. -Wall -O2
LDFLAGS = -L.
LIBS = -lcgi
-
+@@ -21,23 +21,34 @@
OBJS = cgi.o cookies.o
+all:: libcgi.a cgitest jumpto htmlman
@@ -36,6 +36,9 @@ $NetBSD: patch-ab,v 1.4 2001/05/03 14:24:47 jlam Exp $
- install -m 755 cgitest /usr/lib/cgi-bin
+install:
+ -mkdir -p ${PREFIX}/libexec/cgi-bin
++ -mkdir -p ${PREFIX}/share/examples/cgilib
++ install -c -m 444 cgitest.c ${PREFIX}/share/examples/cgilib
++ install -c -m 444 jumpto.c ${PREFIX}/share/examples/cgilib
+ 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
diff --git a/www/cgilib/patches/patch-ac b/www/cgilib/patches/patch-ac
new file mode 100644
index 00000000000..627a7777786
--- /dev/null
+++ b/www/cgilib/patches/patch-ac
@@ -0,0 +1,11 @@
+$NetBSD: patch-ac,v 1.1 2001/09/10 21:36:20 dmcmahill Exp $
+
+--- cgi.c.orig Fri Aug 20 17:14:07 1999
++++ cgi.c Mon Sep 10 16:06:58 2001
+@@ -381,5 +381,5 @@
+ {
+ if (url && strlen(url)) {
+- printf ("Content-type: text/html\nContent-length: %d\n", 77+(strlen(url)*2));
++ printf ("Content-type: text/html\nContent-length: %ld\n",(long)( 77+(strlen(url)*2)));
+ printf ("Status: 302 Temporal Relocation\n");
+ printf ("Location: %s\n\n", url);
diff --git a/www/cgilib/patches/patch-ad b/www/cgilib/patches/patch-ad
new file mode 100644
index 00000000000..bbb6e63ce11
--- /dev/null
+++ b/www/cgilib/patches/patch-ad
@@ -0,0 +1,18 @@
+$NetBSD: patch-ad,v 1.1 2001/09/10 21:36:21 dmcmahill Exp $
+
+--- jumpto.c.orig Fri Aug 20 17:14:07 1999
++++ jumpto.c Mon Sep 10 16:18:39 2001
+@@ -42,5 +42,5 @@
+ s_cgi *cgiArg;
+
+-void main()
++int main()
+ {
+ char *url;
+@@ -58,4 +58,6 @@
+ } else
+ cgiRedirect(url);
++
++ return 0;
+ }
+
diff --git a/www/cgilib/pkg/MESSAGE b/www/cgilib/pkg/MESSAGE
new file mode 100644
index 00000000000..6d37a5f40c9
--- /dev/null
+++ b/www/cgilib/pkg/MESSAGE
@@ -0,0 +1,15 @@
+======================================================================
+$NetBSD: MESSAGE,v 1.1 2001/09/10 21:36:22 dmcmahill Exp $
+
+Please note that this package has installed two CGI programs to
+${PREFIX}/libexec/cgi-bin/
+
+If this is not what you wanted (perhaps because this system is a
+"live" web server and you don't want these 2 cgi programs available),
+you may want to remove execute permissions from those two files by
+doing:
+
+ chmod a-x ${PREFIX}/libexec/cgi-bin/cgitest
+ chmod a-x ${PREFIX}/libexec/cgi-bin/jumpto
+
+======================================================================
diff --git a/www/cgilib/pkg/PLIST b/www/cgilib/pkg/PLIST
index 2ed487bae3c..dff69e95b04 100644
--- a/www/cgilib/pkg/PLIST
+++ b/www/cgilib/pkg/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2001/05/03 14:23:37 jlam Exp $
+@comment $NetBSD: PLIST,v 1.3 2001/09/10 21:36:22 dmcmahill Exp $
include/cgi.h
lib/libcgi.a
libexec/cgi-bin/cgitest
@@ -16,4 +16,7 @@ share/doc/html/cgilib/cgiInit.3.html
share/doc/html/cgilib/cgiRedirect.3.html
share/doc/html/cgilib/cgiSetHeader.3.html
share/doc/html/cgilib/cgiSetType.3.html
+share/examples/cgilib/cgitest.c
+share/examples/cgilib/jumpto.c
@dirrm share/doc/html/cgilib
+@dirrm share/examples/cgilib