aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devel/Makefile1
-rw-r--r--devel/ecgi/Makefile28
-rw-r--r--devel/ecgi/distinfo1
-rw-r--r--devel/ecgi/files/patch-Makefile56
-rw-r--r--devel/ecgi/files/patch-html2h::Makefile21
-rw-r--r--devel/ecgi/pkg-comment1
-rw-r--r--devel/ecgi/pkg-descr12
-rw-r--r--devel/ecgi/pkg-plist4
8 files changed, 124 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index a4c1dd0ef8fc..0bffee6bcdc8 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -83,6 +83,7 @@
SUBDIR += dotconf
SUBDIR += doxygen
SUBDIR += dryad
+ SUBDIR += ecgi
SUBDIR += elftoaout
SUBDIR += elib-emacs
SUBDIR += elib-emacs20
diff --git a/devel/ecgi/Makefile b/devel/ecgi/Makefile
new file mode 100644
index 000000000000..278ab4e7a630
--- /dev/null
+++ b/devel/ecgi/Makefile
@@ -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>
diff --git a/devel/ecgi/distinfo b/devel/ecgi/distinfo
new file mode 100644
index 000000000000..3b04580ff1d9
--- /dev/null
+++ b/devel/ecgi/distinfo
@@ -0,0 +1 @@
+MD5 (ecgi-0.6.2.tar.gz) = 1d2b17b1e0540b34f704ffedb9d154e5
diff --git a/devel/ecgi/files/patch-Makefile b/devel/ecgi/files/patch-Makefile
new file mode 100644
index 000000000000..19a535ac36de
--- /dev/null
+++ b/devel/ecgi/files/patch-Makefile
@@ -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
diff --git a/devel/ecgi/files/patch-html2h::Makefile b/devel/ecgi/files/patch-html2h::Makefile
new file mode 100644
index 000000000000..7ec659184ed7
--- /dev/null
+++ b/devel/ecgi/files/patch-html2h::Makefile
@@ -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
diff --git a/devel/ecgi/pkg-comment b/devel/ecgi/pkg-comment
new file mode 100644
index 000000000000..403c9e7ae974
--- /dev/null
+++ b/devel/ecgi/pkg-comment
@@ -0,0 +1 @@
+A library for the creation of CGI-based Web applications
diff --git a/devel/ecgi/pkg-descr b/devel/ecgi/pkg-descr
new file mode 100644
index 000000000000..53d080a34e47
--- /dev/null
+++ b/devel/ecgi/pkg-descr
@@ -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
diff --git a/devel/ecgi/pkg-plist b/devel/ecgi/pkg-plist
new file mode 100644
index 000000000000..130667b0c379
--- /dev/null
+++ b/devel/ecgi/pkg-plist
@@ -0,0 +1,4 @@
+lib/libecgi.a
+lib/libecgi.so
+share/doc/ecgi/ecgitut.txt
+@dirrm share/doc/ecgi