Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jul 1999 16:49:03 +0400 (MSD)
From:      Andrey Zakhvatov <andy@icc.surw.chel.su>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/12835: New port: libcgic-1.06
Message-ID:  <199907271249.QAA26647@icc.surw.chel.su>

next in thread | raw e-mail | index | archive | help

>Number:         12835
>Category:       ports
>Synopsis:       New port: libcgic-1.06
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 27 05:50:02 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Zakhvatov
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
South Ural Railway ICC
>Environment:

>Description:

   This is a port of ANSI C library for CGI programming.
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/


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libcgic-1.06
#	libcgic-1.06/Makefile
#	libcgic-1.06/files
#	libcgic-1.06/files/md5
#	libcgic-1.06/patches
#	libcgic-1.06/patches/patch-aa
#	libcgic-1.06/pkg
#	libcgic-1.06/pkg/PLIST
#	libcgic-1.06/pkg/COMMENT
#	libcgic-1.06/pkg/DESCR
#
echo c - libcgic-1.06
mkdir -p libcgic-1.06 > /dev/null 2>&1
echo x - libcgic-1.06/Makefile
sed 's/^X//' >libcgic-1.06/Makefile << 'END-of-libcgic-1.06/Makefile'
X# New ports collection makefile for:	libcgic
X# Version required:			1.06
X# Date created:				27 July 1999
X# Whom:					Andrey Zakhvatov
X#
X# $Id$
X#
X
XDISTNAME=	cgic106
XPKGNAME=	libcgic-1.06
XCATEGORIES=	www
XMASTER_SITES=	http://www.boutell.com/cgic/
XEXTRACT_SUFX=	.tar.Z
X
XALL_TARGET=	libcgic.so.1
X
XMAINTAINER=	andy@icc.surw.chel.su
X
Xdo-install:
X	@ ${INSTALL_DATA} ${WRKSRC}/cgic.h ${PREFIX}/include
X	@ ${INSTALL_DATA} ${WRKSRC}/libcgic.so.1 ${PREFIX}/lib
X	@ ${LN} -s ${PREFIX}/lib/libcgic.so.1 ${PREFIX}/lib/libcgic.so
X	@ ${LDCONFIG} -m ${PREFIX}/lib
X	@ ${MKDIR} ${PREFIX}/share/examples/cgic
X	@ ${INSTALL_DATA} ${WRKSRC}/capture.c ${PREFIX}/share/examples/cgic
X	@ ${INSTALL_DATA} ${WRKSRC}/cgictest.c ${PREFIX}/share/examples/cgic
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@ ${MKDIR} ${PREFIX}/share/doc/cgic
X.for file in cgic.html cgic.txt license.txt readme.txt support.txt testform.html
X	@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/cgic
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-libcgic-1.06/Makefile
echo c - libcgic-1.06/files
mkdir -p libcgic-1.06/files > /dev/null 2>&1
echo x - libcgic-1.06/files/md5
sed 's/^X//' >libcgic-1.06/files/md5 << 'END-of-libcgic-1.06/files/md5'
XMD5 (cgic106.tar.Z) = 84d67045866991359da9ab51a3c3345f
END-of-libcgic-1.06/files/md5
echo c - libcgic-1.06/patches
mkdir -p libcgic-1.06/patches > /dev/null 2>&1
echo x - libcgic-1.06/patches/patch-aa
sed 's/^X//' >libcgic-1.06/patches/patch-aa << 'END-of-libcgic-1.06/patches/patch-aa'
X--- Makefile	Fri Feb 16 00:20:09 1996
X+++ /home/andy/tmp/wrk/Makefile	Tue Jul 27 15:40:18 1999
X@@ -3,16 +3,15 @@
X #or the system() function, respectively. Non-unix systems
X #will also definitely have different linker syntax.
X 
X-CFLAGS=
X-CC=gcc
X+#CFLAGS=
X+#CC=gcc
X AR=ar
X LIBS=-L./ -lcgic
X 
X all: libcgic.a cgictest capture
X 
X-libcgic.a: cgic.o cgic.h
X-	rm -f libcgic.a
X-	$(AR) rc libcgic.a cgic.o
X+libcgic.so.1: cgic.o
X+	$(CC) $(CFLAGS) -shared -Wl,-soname,libcgic.so.1 -o libcgic.so.1 cgic.o
X 
X cgictest: cgictest.o libcgic.a
X 	gcc cgictest.o -o cgictest ${LIBS}
X@@ -20,3 +19,5 @@
X capture: capture.o libcgic.a
X 	gcc capture.o -o capture ${LIBS}
X 
X+cgic.o: cgic.c cgic.h
X+	$(CC) $(CFLAGS) -fPIC -o cgic.o -c -s cgic.c
END-of-libcgic-1.06/patches/patch-aa
echo c - libcgic-1.06/pkg
mkdir -p libcgic-1.06/pkg > /dev/null 2>&1
echo x - libcgic-1.06/pkg/PLIST
sed 's/^X//' >libcgic-1.06/pkg/PLIST << 'END-of-libcgic-1.06/pkg/PLIST'
Xinclude/cgic.h
Xlib/libcgic.so
Xlib/libcgic.so.1
Xshare/doc/cgic/cgic.html
Xshare/doc/cgic/cgic.txt
Xshare/doc/cgic/license.txt
Xshare/doc/cgic/readme.txt
Xshare/doc/cgic/support.txt
Xshare/doc/cgic/testform.html
Xshare/examples/cgic/capture.c
Xshare/examples/cgic/cgictest.c
X@exec /sbin/ldconfig -m %B
X@unexec /sbin/ldconfig -R
X@dirrm share/doc/cgic
X@dirrm share/examples/cgic
END-of-libcgic-1.06/pkg/PLIST
echo x - libcgic-1.06/pkg/COMMENT
sed 's/^X//' >libcgic-1.06/pkg/COMMENT << 'END-of-libcgic-1.06/pkg/COMMENT'
XANSI C library for CGI programming
END-of-libcgic-1.06/pkg/COMMENT
echo x - libcgic-1.06/pkg/DESCR
sed 's/^X//' >libcgic-1.06/pkg/DESCR << 'END-of-libcgic-1.06/pkg/DESCR'
Xcgic is an ANSI C-language library for the creation of CGI-based World
XWide Web applications. For basic information about the CGI standard,
Xsee the CGI documentation at NCSA.
X   
X   cgic performs the following tasks:
X     * Parses form data, correcting for defective and/or inconsistent
X       browsers
X     * Transparently accepts both GET and POST form data
X     * Handles line breaks in form fields in a consistent manner
X     * Provides string, integer, floating-point, and single- and
X       multiple-choice functions to retrieve form data
X     * Provides bounds checking for numeric fields
X     * Loads CGI environment variables into C strings which are always
X       non-null
X     * Provides a way to capture CGI situations for replay in a debugging
X       environment
X       
Xcgic should be compatible with any CGI-compliant server environment.
X
XWWW: http://www.boutell.com/cgic/
END-of-libcgic-1.06/pkg/DESCR
exit


>How-To-Repeat:

>Fix:

   Please, check and commit this port.


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907271249.QAA26647>