Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Feb 2001 00:03:59 +0000 (GMT)
From:      George Reid <greid@dogma.freebsd-uk.eu.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/25080: New port: ecgi: A library for the creation of CGI-based Web applications
Message-ID:  <Pine.BSF.4.21.0102140003250.4068-100000@sobek.openirc.co.uk>

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

>Number:         25080
>Category:       ports
>Synopsis:       New port: ecgi: A library for the creation of CGI-based Web applications
>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 Feb 13 16:00:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     George Reid
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
FreeBSD UKUG
>Environment:
n/a
>Description:
ecgi (easy CGI Libary) is an ANSI C library for the creation of
CGI-based Web applications. It transparently supports the CGI methods
GET and POST and also multipart/form-data file uploads. The user
interface is designed as easy as possible and maintains full
compatibility to cgic 0.5.

It also contains a library independent introduction to CGI programming
with C, a .html to .h HTML template preprocessor, and fast,
block-allocating memory files.

- George Reid
greid@ukug.uk.freebsd.org
>How-To-Repeat:
n/a
>Fix:
# 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:
#
#	ecgi
#	ecgi/Makefile
#	ecgi/distinfo
#	ecgi/pkg-descr
#	ecgi/pkg-comment
#	ecgi/files
#	ecgi/files/patch-aa
#	ecgi/files/patch-ab
#	ecgi/pkg-plist
#
echo c - ecgi
mkdir -p ecgi > /dev/null 2>&1
echo x - ecgi/Makefile
sed 's/^X//' >ecgi/Makefile << 'END-of-ecgi/Makefile'
X# New ports collection makefile for:   ecgi
X# Date created:        13 February 2001
X# Whom:                George Reid <greid@ukug.uk.freebsd.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=       ecgi
XPORTVERSION=	0.6.2
XCATEGORIES=     devel
XMASTER_SITES=   http://www.global-owl.com/ecgi/download/
X
XMAINTAINER=	ports@freebsd.org
X
XUSE_GMAKE=	yes
X
XINSTALLS_SHLIB=	yes
X
Xdo-install:
X	${INSTALL_DATA} ${WRKSRC}/libecgi.a ${PREFIX}/lib
X	${INSTALL_PROGRAM} ${WRKSRC}/libecgi.so ${PREFIX}/lib
X	${INSTALL_PROGRAM} ${WRKSRC}/html2h/html2h ${PREFIX}/bin
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/ecgi
X	${INSTALL_DATA} ${WRKSRC}/doc/ecgitut.txt ${PREFIX}/share/doc/ecgi
X.endif
X
X.include <bsd.port.mk>
END-of-ecgi/Makefile
echo x - ecgi/distinfo
sed 's/^X//' >ecgi/distinfo << 'END-of-ecgi/distinfo'
XMD5 (ecgi-0.6.2.tar.gz) = 1d2b17b1e0540b34f704ffedb9d154e5
END-of-ecgi/distinfo
echo x - ecgi/pkg-descr
sed 's/^X//' >ecgi/pkg-descr << 'END-of-ecgi/pkg-descr'
Xecgi (easy CGI Libary) is an ANSI C library for the creation of
XCGI-based Web applications. It transparently supports the CGI methods
XGET and POST and also multipart/form-data file uploads. The user
Xinterface is designed as easy as possible and maintains full
Xcompatibility to cgic 0.5.
X
XIt also contains a library independent introduction to CGI programming
Xwith C, a .html to .h HTML template preprocessor, and fast,
Xblock-allocating memory files.
X
X- George Reid
Xgreid@ukug.uk.freebsd.org
END-of-ecgi/pkg-descr
echo x - ecgi/pkg-comment
sed 's/^X//' >ecgi/pkg-comment << 'END-of-ecgi/pkg-comment'
XA library for the creation of CGI-based Web applications
END-of-ecgi/pkg-comment
echo c - ecgi/files
mkdir -p ecgi/files > /dev/null 2>&1
echo x - ecgi/files/patch-aa
sed 's/^X//' >ecgi/files/patch-aa << 'END-of-ecgi/files/patch-aa'
X--- Makefile.orig	Tue Feb 13 23:46:51 2001
X+++ Makefile	Tue Feb 13 23:47:50 2001
X@@ -1,14 +1,14 @@
X SHAREDOPT = -shared
X-LIBDIR = /usr/lib
X-INCDIR = /usr/include
X+LIBDIR = $(PREFIX)/usr/lib
X+INCDIR = $(PREFIX)/include
X AR = ar
X-CC = gcc
X+CC?= gcc
X INCS =  -Iinclude/ -I.
X-FLAGS = -Wall
X+CFLAGS += -Wall
X 
X all: obj/ecgi.o obj/ecgitk.o libecgi.a
X-	make -C html2h/
X-	make libecgi.so
X+	$(MAKE) -C html2h/
X+	$(MAKE) libecgi.so
X 
X shared: libecgi.so
X 	cp libecgi.so /usr/lib
X@@ -26,25 +26,25 @@
X 	cp ecgi.h $(INCDIR)
X 	cp include/memfile.h $(INCDIR)
X 	cp ecgitk.h $(INCDIR)
X-	make -C html2h/ install
X+	$(MAKE) -C html2h/ install
X 	cp libecgi.so $(LIBDIR)
X 
X tests:	all
X-	$(CC) tests/test.c -o tests/test.cgi $(INCS) $(FLAGS) libecgi.a
X-	$(CC) tests/testload.c -o tests/testload libecgi.a $(INCS) $(FLAGS)
X+	$(CC) tests/test.c -o tests/test.cgi $(INCS) $(CFLAGS) libecgi.a
X+	$(CC) tests/testload.c -o tests/testload libecgi.a $(INCS) $(CFLAGS)
X 
X obj/ecgi.o: src/ecgi.c ecgi.h obj/memfile.o
X-	$(CC) -c src/ecgi.c $(INCS) $(FLAGS) -o obj/ecgi.o
X+	$(CC) -c src/ecgi.c $(INCS) $(CFLAGS) -o obj/ecgi.o
X 
X obj/memfile.o:  src/memfile.c include/memfile.h
X-	$(CC) -o obj/memfile.o -c src/memfile.c $(INCS) $(FLAGS)
X+	$(CC) -o obj/memfile.o -c src/memfile.c $(INCS) $(CFLAGS)
X 
X obj/ecgitk.o: src/ecgitk.c ecgitk.h
X-	$(CC) -c src/ecgitk.c $(INCS) $(FLAGS) -o obj/ecgitk.o
X+	$(CC) -c src/ecgitk.c $(INCS) $(CFLAGS) -o obj/ecgitk.o
X 
X clean:
X 	rm -f obj/* *.a *.so -f tests/test.cgi tests/testload
X-	make -C html2h/ clean
X+	$(MAKE) -C html2h/ clean
X 
X zip: clean
X 	rm -f ../ecgi-0.6.2.zip
END-of-ecgi/files/patch-aa
echo x - ecgi/files/patch-ab
sed 's/^X//' >ecgi/files/patch-ab << 'END-of-ecgi/files/patch-ab'
X--- html2h/Makefile	Tue Feb 13 23:46:49 2001
X+++ html2h/Makefile	Tue Feb 13 23:49:09 2001
X@@ -1,14 +1,14 @@
X-CC = gcc
X+CC?= gcc
X INCS =  -I../include/ -I.
X-FLAGS = -Wall
X+CFLAGS += -Wall
X 
X all: html2h
X 
X html2h: html2h.c html2h.h
X-	$(CC) html2h.c -o html2h $(INCS) $(FLAGS) ../obj/memfile.o
X+	$(CC) html2h.c -o html2h $(INCS) $(CFLAGS) ../obj/memfile.o
X 
X install: all
X 	cp html2h /usr/bin
X 
X clean:
X-	rm -f html2h
X+	rm -f html2h
END-of-ecgi/files/patch-ab
echo x - ecgi/pkg-plist
sed 's/^X//' >ecgi/pkg-plist << 'END-of-ecgi/pkg-plist'
Xlib/libecgi.a
Xlib/libecgi.so
Xshare/doc/ecgi/ecgitut.txt
X@dirrm share/doc/ecgi
END-of-ecgi/pkg-plist
exit



>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?Pine.BSF.4.21.0102140003250.4068-100000>