aboutsummaryrefslogtreecommitdiff
path: root/www/cgic
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-12-29 09:25:49 +0000
committerSteve Price <steve@FreeBSD.org>1999-12-29 09:25:49 +0000
commit7147035ad66070abedd16ebb7bc3bd39f1cf3e29 (patch)
tree9b7690bf3eb5f394412aa6ab32968d8ecc2196a4 /www/cgic
parente628032176fe5d00d344eb6cf2430c8f070521b6 (diff)
downloadports-7147035ad66070abedd16ebb7bc3bd39f1cf3e29.tar.gz
ports-7147035ad66070abedd16ebb7bc3bd39f1cf3e29.zip
Notes
Diffstat (limited to 'www/cgic')
-rw-r--r--www/cgic/Makefile36
-rw-r--r--www/cgic/distinfo1
-rw-r--r--www/cgic/files/patch-aa29
-rw-r--r--www/cgic/pkg-comment1
-rw-r--r--www/cgic/pkg-descr20
-rw-r--r--www/cgic/pkg-plist15
6 files changed, 102 insertions, 0 deletions
diff --git a/www/cgic/Makefile b/www/cgic/Makefile
new file mode 100644
index 000000000000..4d8cad509c42
--- /dev/null
+++ b/www/cgic/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: libcgic
+# Version required: 1.06
+# Date created: 27 July 1999
+# Whom: Andrey Zakhvatov
+#
+# $FreeBSD$
+#
+
+DISTNAME= cgic106
+PKGNAME= cgic-1.06
+CATEGORIES= www
+MASTER_SITES= http://www.boutell.com/cgic/
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= andy@icc.surw.chel.su
+
+ALL_TARGET= libcgic.so.1
+
+do-install:
+ @ ${INSTALL_DATA} ${WRKSRC}/cgic.h ${PREFIX}/include
+ @ ${INSTALL_DATA} ${WRKSRC}/libcgic.so.1 ${PREFIX}/lib
+ @ ${LN} -s ${PREFIX}/lib/libcgic.so.1 ${PREFIX}/lib/libcgic.so
+ @ ${LDCONFIG} -m ${PREFIX}/lib
+ @ ${MKDIR} ${PREFIX}/share/examples/cgic
+ @ ${INSTALL_DATA} ${WRKSRC}/capture.c ${PREFIX}/share/examples/cgic
+ @ ${INSTALL_DATA} ${WRKSRC}/cgictest.c ${PREFIX}/share/examples/cgic
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${PREFIX}/share/doc/cgic
+.for file in cgic.html cgic.txt license.txt readme.txt support.txt testform.html
+ @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/cgic
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/www/cgic/distinfo b/www/cgic/distinfo
new file mode 100644
index 000000000000..569c65b80f6a
--- /dev/null
+++ b/www/cgic/distinfo
@@ -0,0 +1 @@
+MD5 (cgic106.tar.Z) = 84d67045866991359da9ab51a3c3345f
diff --git a/www/cgic/files/patch-aa b/www/cgic/files/patch-aa
new file mode 100644
index 000000000000..c13d472a32bd
--- /dev/null
+++ b/www/cgic/files/patch-aa
@@ -0,0 +1,29 @@
+--- Makefile Fri Feb 16 00:20:09 1996
++++ /home/andy/tmp/wrk/Makefile Tue Jul 27 15:40:18 1999
+@@ -3,16 +3,15 @@
+ #or the system() function, respectively. Non-unix systems
+ #will also definitely have different linker syntax.
+
+-CFLAGS=
+-CC=gcc
++#CFLAGS=
++#CC=gcc
+ AR=ar
+ LIBS=-L./ -lcgic
+
+ all: libcgic.a cgictest capture
+
+-libcgic.a: cgic.o cgic.h
+- rm -f libcgic.a
+- $(AR) rc libcgic.a cgic.o
++libcgic.so.1: cgic.o
++ $(CC) $(CFLAGS) -shared -Wl,-soname,libcgic.so.1 -o libcgic.so.1 cgic.o
+
+ cgictest: cgictest.o libcgic.a
+ gcc cgictest.o -o cgictest ${LIBS}
+@@ -20,3 +19,5 @@
+ capture: capture.o libcgic.a
+ gcc capture.o -o capture ${LIBS}
+
++cgic.o: cgic.c cgic.h
++ $(CC) $(CFLAGS) -fPIC -o cgic.o -c -s cgic.c
diff --git a/www/cgic/pkg-comment b/www/cgic/pkg-comment
new file mode 100644
index 000000000000..b771e166a4b6
--- /dev/null
+++ b/www/cgic/pkg-comment
@@ -0,0 +1 @@
+ANSI C library for CGI programming
diff --git a/www/cgic/pkg-descr b/www/cgic/pkg-descr
new file mode 100644
index 000000000000..05052fb36945
--- /dev/null
+++ b/www/cgic/pkg-descr
@@ -0,0 +1,20 @@
+cgic is an ANSI C-language library for the creation of CGI-based World
+Wide Web applications. For basic information about the CGI standard,
+see the CGI documentation at NCSA.
+
+ cgic performs the following tasks:
+ * Parses form data, correcting for defective and/or inconsistent
+ browsers
+ * Transparently accepts both GET and POST form data
+ * Handles line breaks in form fields in a consistent manner
+ * Provides string, integer, floating-point, and single- and
+ multiple-choice functions to retrieve form data
+ * Provides bounds checking for numeric fields
+ * Loads CGI environment variables into C strings which are always
+ non-null
+ * Provides a way to capture CGI situations for replay in a debugging
+ environment
+
+cgic should be compatible with any CGI-compliant server environment.
+
+WWW: http://www.boutell.com/cgic/
diff --git a/www/cgic/pkg-plist b/www/cgic/pkg-plist
new file mode 100644
index 000000000000..f843d442810d
--- /dev/null
+++ b/www/cgic/pkg-plist
@@ -0,0 +1,15 @@
+include/cgic.h
+lib/libcgic.so
+lib/libcgic.so.1
+@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
+@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
+share/doc/cgic/cgic.html
+share/doc/cgic/cgic.txt
+share/doc/cgic/license.txt
+share/doc/cgic/readme.txt
+share/doc/cgic/support.txt
+share/doc/cgic/testform.html
+share/examples/cgic/capture.c
+share/examples/cgic/cgictest.c
+@dirrm share/doc/cgic
+@dirrm share/examples/cgic