mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Add ecgi 0.6.2, a library for the creation of CGI-based Web
applications. PR: 25080 Submitted by: George Reid <greid@ukug.uk.freebsd.org>
This commit is contained in:
parent
e006d23d0f
commit
8a738c0aa7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39699
8 changed files with 124 additions and 0 deletions
|
@ -83,6 +83,7 @@
|
|||
SUBDIR += dotconf
|
||||
SUBDIR += doxygen
|
||||
SUBDIR += dryad
|
||||
SUBDIR += ecgi
|
||||
SUBDIR += elftoaout
|
||||
SUBDIR += elib-emacs
|
||||
SUBDIR += elib-emacs20
|
||||
|
|
28
devel/ecgi/Makefile
Normal file
28
devel/ecgi/Makefile
Normal file
|
@ -0,0 +1,28 @@
|
|||
# New ports collection makefile for: ecgi
|
||||
# Date created: 13 February 2001
|
||||
# Whom: George Reid <greid@ukug.uk.freebsd.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ecgi
|
||||
PORTVERSION= 0.6.2
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://www.global-owl.com/ecgi/download/
|
||||
|
||||
MAINTAINER= ports@freebsd.org
|
||||
|
||||
USE_GMAKE= yes
|
||||
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/libecgi.a ${PREFIX}/lib
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/libecgi.so ${PREFIX}/lib
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/html2h/html2h ${PREFIX}/bin
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${PREFIX}/share/doc/ecgi
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/ecgitut.txt ${PREFIX}/share/doc/ecgi
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
devel/ecgi/distinfo
Normal file
1
devel/ecgi/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (ecgi-0.6.2.tar.gz) = 1d2b17b1e0540b34f704ffedb9d154e5
|
56
devel/ecgi/files/patch-Makefile
Normal file
56
devel/ecgi/files/patch-Makefile
Normal file
|
@ -0,0 +1,56 @@
|
|||
--- Makefile.orig Tue Feb 13 23:46:51 2001
|
||||
+++ Makefile Tue Feb 13 23:47:50 2001
|
||||
@@ -1,14 +1,14 @@
|
||||
SHAREDOPT = -shared
|
||||
-LIBDIR = /usr/lib
|
||||
-INCDIR = /usr/include
|
||||
+LIBDIR = $(PREFIX)/usr/lib
|
||||
+INCDIR = $(PREFIX)/include
|
||||
AR = ar
|
||||
-CC = gcc
|
||||
+CC?= gcc
|
||||
INCS = -Iinclude/ -I.
|
||||
-FLAGS = -Wall
|
||||
+CFLAGS += -Wall
|
||||
|
||||
all: obj/ecgi.o obj/ecgitk.o libecgi.a
|
||||
- make -C html2h/
|
||||
- make libecgi.so
|
||||
+ $(MAKE) -C html2h/
|
||||
+ $(MAKE) libecgi.so
|
||||
|
||||
shared: libecgi.so
|
||||
cp libecgi.so /usr/lib
|
||||
@@ -26,25 +26,25 @@
|
||||
cp ecgi.h $(INCDIR)
|
||||
cp include/memfile.h $(INCDIR)
|
||||
cp ecgitk.h $(INCDIR)
|
||||
- make -C html2h/ install
|
||||
+ $(MAKE) -C html2h/ install
|
||||
cp libecgi.so $(LIBDIR)
|
||||
|
||||
tests: all
|
||||
- $(CC) tests/test.c -o tests/test.cgi $(INCS) $(FLAGS) libecgi.a
|
||||
- $(CC) tests/testload.c -o tests/testload libecgi.a $(INCS) $(FLAGS)
|
||||
+ $(CC) tests/test.c -o tests/test.cgi $(INCS) $(CFLAGS) libecgi.a
|
||||
+ $(CC) tests/testload.c -o tests/testload libecgi.a $(INCS) $(CFLAGS)
|
||||
|
||||
obj/ecgi.o: src/ecgi.c ecgi.h obj/memfile.o
|
||||
- $(CC) -c src/ecgi.c $(INCS) $(FLAGS) -o obj/ecgi.o
|
||||
+ $(CC) -c src/ecgi.c $(INCS) $(CFLAGS) -o obj/ecgi.o
|
||||
|
||||
obj/memfile.o: src/memfile.c include/memfile.h
|
||||
- $(CC) -o obj/memfile.o -c src/memfile.c $(INCS) $(FLAGS)
|
||||
+ $(CC) -o obj/memfile.o -c src/memfile.c $(INCS) $(CFLAGS)
|
||||
|
||||
obj/ecgitk.o: src/ecgitk.c ecgitk.h
|
||||
- $(CC) -c src/ecgitk.c $(INCS) $(FLAGS) -o obj/ecgitk.o
|
||||
+ $(CC) -c src/ecgitk.c $(INCS) $(CFLAGS) -o obj/ecgitk.o
|
||||
|
||||
clean:
|
||||
rm -f obj/* *.a *.so -f tests/test.cgi tests/testload
|
||||
- make -C html2h/ clean
|
||||
+ $(MAKE) -C html2h/ clean
|
||||
|
||||
zip: clean
|
||||
rm -f ../ecgi-0.6.2.zip
|
21
devel/ecgi/files/patch-html2h::Makefile
Normal file
21
devel/ecgi/files/patch-html2h::Makefile
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- html2h/Makefile Tue Feb 13 23:46:49 2001
|
||||
+++ html2h/Makefile Tue Feb 13 23:49:09 2001
|
||||
@@ -1,14 +1,14 @@
|
||||
-CC = gcc
|
||||
+CC?= gcc
|
||||
INCS = -I../include/ -I.
|
||||
-FLAGS = -Wall
|
||||
+CFLAGS += -Wall
|
||||
|
||||
all: html2h
|
||||
|
||||
html2h: html2h.c html2h.h
|
||||
- $(CC) html2h.c -o html2h $(INCS) $(FLAGS) ../obj/memfile.o
|
||||
+ $(CC) html2h.c -o html2h $(INCS) $(CFLAGS) ../obj/memfile.o
|
||||
|
||||
install: all
|
||||
cp html2h /usr/bin
|
||||
|
||||
clean:
|
||||
- rm -f html2h
|
||||
+ rm -f html2h
|
1
devel/ecgi/pkg-comment
Normal file
1
devel/ecgi/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
A library for the creation of CGI-based Web applications
|
12
devel/ecgi/pkg-descr
Normal file
12
devel/ecgi/pkg-descr
Normal file
|
@ -0,0 +1,12 @@
|
|||
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
|
4
devel/ecgi/pkg-plist
Normal file
4
devel/ecgi/pkg-plist
Normal file
|
@ -0,0 +1,4 @@
|
|||
lib/libecgi.a
|
||||
lib/libecgi.so
|
||||
share/doc/ecgi/ecgitut.txt
|
||||
@dirrm share/doc/ecgi
|
Loading…
Add table
Reference in a new issue