head 1.11; access; symbols pkgsrc-2014Q3:1.10.0.46 pkgsrc-2014Q3-base:1.10 pkgsrc-2014Q2:1.10.0.44 pkgsrc-2014Q2-base:1.10 pkgsrc-2014Q1:1.10.0.42 pkgsrc-2014Q1-base:1.10 pkgsrc-2013Q4:1.10.0.40 pkgsrc-2013Q4-base:1.10 pkgsrc-2013Q3:1.10.0.38 pkgsrc-2013Q3-base:1.10 pkgsrc-2013Q2:1.10.0.36 pkgsrc-2013Q2-base:1.10 pkgsrc-2013Q1:1.10.0.34 pkgsrc-2013Q1-base:1.10 pkgsrc-2012Q4:1.10.0.32 pkgsrc-2012Q4-base:1.10 pkgsrc-2012Q3:1.10.0.30 pkgsrc-2012Q3-base:1.10 pkgsrc-2012Q2:1.10.0.28 pkgsrc-2012Q2-base:1.10 pkgsrc-2012Q1:1.10.0.26 pkgsrc-2012Q1-base:1.10 pkgsrc-2011Q4:1.10.0.24 pkgsrc-2011Q4-base:1.10 pkgsrc-2011Q3:1.10.0.22 pkgsrc-2011Q3-base:1.10 pkgsrc-2011Q2:1.10.0.20 pkgsrc-2011Q2-base:1.10 pkgsrc-2011Q1:1.10.0.18 pkgsrc-2011Q1-base:1.10 pkgsrc-2010Q4:1.10.0.16 pkgsrc-2010Q4-base:1.10 pkgsrc-2010Q3:1.10.0.14 pkgsrc-2010Q3-base:1.10 pkgsrc-2010Q2:1.10.0.12 pkgsrc-2010Q2-base:1.10 pkgsrc-2010Q1:1.10.0.10 pkgsrc-2010Q1-base:1.10 pkgsrc-2009Q4:1.10.0.8 pkgsrc-2009Q4-base:1.10 pkgsrc-2009Q3:1.10.0.6 pkgsrc-2009Q3-base:1.10 pkgsrc-2009Q2:1.10.0.4 pkgsrc-2009Q2-base:1.10 pkgsrc-2009Q1:1.10.0.2 pkgsrc-2009Q1-base:1.10 pkgsrc-2008Q4:1.9.0.22 pkgsrc-2008Q4-base:1.9 pkgsrc-2008Q3:1.9.0.20 pkgsrc-2008Q3-base:1.9 cube-native-xorg:1.9.0.18 cube-native-xorg-base:1.9 pkgsrc-2008Q2:1.9.0.16 pkgsrc-2008Q2-base:1.9 cwrapper:1.9.0.14 pkgsrc-2008Q1:1.9.0.12 pkgsrc-2008Q1-base:1.9 pkgsrc-2007Q4:1.9.0.10 pkgsrc-2007Q4-base:1.9 pkgsrc-2007Q3:1.9.0.8 pkgsrc-2007Q3-base:1.9 pkgsrc-2007Q2:1.9.0.6 pkgsrc-2007Q2-base:1.9 pkgsrc-2007Q1:1.9.0.4 pkgsrc-2007Q1-base:1.9 pkgsrc-2006Q4:1.9.0.2 pkgsrc-2006Q4-base:1.9 pkgsrc-2006Q3:1.8.0.14 pkgsrc-2006Q3-base:1.8 pkgsrc-2006Q2:1.8.0.12 pkgsrc-2006Q2-base:1.8 pkgsrc-2006Q1:1.8.0.10 pkgsrc-2006Q1-base:1.8 pkgsrc-2005Q4:1.8.0.8 pkgsrc-2005Q4-base:1.8 pkgsrc-2005Q3:1.8.0.6 pkgsrc-2005Q3-base:1.8 pkgsrc-2005Q2:1.8.0.4 pkgsrc-2005Q2-base:1.8 pkgsrc-2005Q1:1.8.0.2 pkgsrc-2005Q1-base:1.8 pkgsrc-2004Q4:1.7.0.12 pkgsrc-2004Q4-base:1.7 pkgsrc-2004Q3:1.7.0.10 pkgsrc-2004Q3-base:1.7 pkgsrc-2004Q2:1.7.0.8 pkgsrc-2004Q2-base:1.7 pkgsrc-2004Q1:1.7.0.6 pkgsrc-2004Q1-base:1.7 pkgsrc-2003Q4:1.7.0.4 pkgsrc-2003Q4-base:1.7 netbsd-1-6-1:1.7.0.2 netbsd-1-6-1-base:1.7 netbsd-1-6:1.6.0.4 netbsd-1-6-RELEASE-base:1.6 pkgviews:1.5.0.4 pkgviews-base:1.5 buildlink2:1.5.0.2 buildlink2-base:1.5 netbsd-1-5-PATCH003:1.5 netbsd-1-5-PATCH001:1.4 netbsd-1-5-RELEASE:1.2 netbsd-1-4-PATCH003:1.2 netbsd-1-4-PATCH002:1.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.11 date 2014.11.24.05.23.17; author mef; state dead; branches; next 1.10; commitid 6V7j4gAM5HieHoZx; 1.10 date 2009.02.16.19.16.57; author joerg; state Exp; branches; next 1.9; 1.9 date 2006.11.12.01.51.52; author rillig; state Exp; branches; next 1.8; 1.8 date 2005.03.14.20.41.19; author tv; state Exp; branches; next 1.7; 1.7 date 2002.12.27.14.36.02; author cjep; state Exp; branches; next 1.6; 1.6 date 2002.08.10.13.59.34; author skrll; state Exp; branches; next 1.5; 1.5 date 2001.09.10.21.36.20; author dmcmahill; state Exp; branches; next 1.4; 1.4 date 2001.05.03.14.24.47; author jlam; state Exp; branches; next 1.3; 1.3 date 2001.05.03.14.23.36; author jlam; state Exp; branches; next 1.2; 1.2 date 99.11.08.17.25.00; author wennmach; state Exp; branches; next 1.1; 1.1 date 99.11.06.16.50.47; author wennmach; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.11.06.16.50.47; author wennmach; state Exp; branches; next ; desc @@ 1.11 log @Version 0.7, 2008/02/08 . Allow cookies without regular CGI POST/GET variables . Use GNU autotools for strndup() detection and shared library building Version 0.6, 2008/04/06 . Support for ';' as delimiter . Properly return NULL when no value was found . Support for multipart/form-data . Support for file upload . Added support for inclusion into C++ . Declare some arguments const (Neil Spring) . Decode variable names and data @ text @$NetBSD: patch-ab,v 1.10 2009/02/16 19:16:57 joerg Exp $ --- Makefile.orig 1999-08-20 23:14:07.000000000 +0200 +++ Makefile 2006-11-12 02:49:34.000000000 +0100 @@@@ -14,25 +14,31 @@@@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. -CFLAGS = -I. -Wall -O2 -g +MANDIR?= ${PREFIX}/man + +CFLAGS += -I. -Wall -O2 LDFLAGS = -L. -LIBS = -lcgi +LIBS = libcgi.la OBJS = cgi.o cookies.o -libcgi.a: $(OBJS) - ar rc $@@ $^ +all: libcgi.la cgitest jumpto + +.SUFFIXES: .lo -cgitest: cgitest.o libcgi.a - $(CC) $(CFLAGS) $(LDFLAGS) -o $@@ $^ $(LIBS) +.c.lo: + ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -o $@@ -c $< -jumpto: jumpto.o libcgi.a - $(CC) $(CFLAGS) $(LDFLAGS) -o $@@ $^ $(LIBS) +libcgi.la: $(OBJS:.o=.lo) + ${LIBTOOL} --mode=link ${CC} -o $@@ ${OBJS:.o=.lo} \ + -rpath ${PREFIX}/lib \ + -version-info 0:0 -all: libcgi.a cgitest jumpto +cgitest: cgitest.lo libcgi.la + ${LIBTOOL} --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@@ cgitest.lo $(LIBS) -install: cgitest - install -m 755 cgitest /usr/lib/cgi-bin +jumpto: jumpto.lo libcgi.la + ${LIBTOOL} --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@@ jumpto.lo $(LIBS) clean: rm -f cgitest cgitest.o jumpto jumpto.o libcgi.a $(OBJS) *.[35].html @@@@ -41,3 +47,19 @@@@ htmlman: for f in *.[35]; do \ man -l $$f|rman -f HTML --title $$f -r "%s.%s.html" > $$f.html; \ done + +install: + ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/libexec/cgi-bin + ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/cgilib + ${BSD_INSTALL_DATA} cgitest.c ${DESTDIR}${PREFIX}/share/examples/cgilib + ${BSD_INSTALL_DATA} jumpto.c ${DESTDIR}${PREFIX}/share/examples/cgilib + ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libcgi.la ${DESTDIR}${PREFIX}/lib + ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} cgitest ${DESTDIR}${PREFIX}/libexec/cgi-bin + ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} jumpto ${DESTDIR}${PREFIX}/libexec/cgi-bin + ${BSD_INSTALL_DATA} cgi.h ${DESTDIR}${PREFIX}/include + for i in *.3; do \ + ${BSD_INSTALL_MAN} $$i ${DESTDIR}${MANDIR}/man3/; \ + done + for i in *.5; do \ + ${BSD_INSTALL_MAN} $$i ${DESTDIR}${MANDIR}/man5/; \ + done @ 1.10 log @DESTDIR support @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.9 2006/11/12 01:51:52 rillig Exp $ @ 1.9 log @Fixed PKGMANDIR. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.8 2005/03/14 20:41:19 tv Exp $ d54 8 a61 8 + ${BSD_INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/cgi-bin + ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/examples/cgilib + ${BSD_INSTALL_DATA} cgitest.c ${PREFIX}/share/examples/cgilib + ${BSD_INSTALL_DATA} jumpto.c ${PREFIX}/share/examples/cgilib + ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libcgi.la ${PREFIX}/lib + ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} cgitest ${PREFIX}/libexec/cgi-bin + ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} jumpto ${PREFIX}/libexec/cgi-bin + ${BSD_INSTALL_DATA} cgi.h ${PREFIX}/include d63 1 a63 1 + ${BSD_INSTALL_MAN} $$i ${MANDIR}/man3/; \ d66 1 a66 1 + ${BSD_INSTALL_MAN} $$i ${MANDIR}/man5/; \ @ 1.8 log @This doesn't need nroff or rman, neither of which are present by default on some systems. Since the manpages are distributed as ... manpages, install them as (...drum roll please...) manpages! Also fix permissions by using BSD_INSTALL_* macros. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- Makefile.orig 1999-08-20 17:14:07.000000000 -0400 +++ Makefile @@@@ -14,25 +14,29 @@@@ d10 2 d22 2 d27 2 a28 1 +.SUFFIXES: .lo a31 4 +.c.lo: + ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -o $@@ -c $< -all: libcgi.a cgitest jumpto d37 4 a42 3 +cgitest: cgitest.lo libcgi.la + ${LIBTOOL} --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@@ cgitest.lo $(LIBS) + d48 1 a48 1 @@@@ -41,3 +45,19 @@@@ htmlman: d63 1 a63 1 + ${BSD_INSTALL_MAN} $$i ${PREFIX}/man/man3/; \ d66 1 a66 1 + ${BSD_INSTALL_MAN} $$i ${PREFIX}/man/man5/; \ @ 1.7 log @Make this package build on SunOS. @ text @d3 1 a3 1 --- Makefile.orig Fri Aug 20 22:14:07 1999 d5 1 a5 1 @@@@ -14,30 +14,50 @@@@ a9 2 +NROFF= nroff -mandoc + d19 1 a19 1 +all: libcgi.la cgitest jumpto htmlman d40 1 a40 3 -clean: - rm -f cgitest cgitest.o jumpto jumpto.o libcgi.a $(OBJS) *.[35].html d44 3 a46 1 htmlman: d48 1 a48 2 - man -l $$f|rman -f HTML --title $$f -r "%s.%s.html" > $$f.html; \ + ${NROFF} $$f|rman -f HTML --title $$f -r "%s.%s.html" > $$f.html; \ d52 13 a64 11 + -mkdir -p ${PREFIX}/libexec/cgi-bin + -mkdir -p ${PREFIX}/share/examples/cgilib + ${INSTALL} -c -m 444 cgitest.c ${PREFIX}/share/examples/cgilib + ${INSTALL} -c -m 444 jumpto.c ${PREFIX}/share/examples/cgilib + ${LIBTOOL} --mode=install ${INSTALL} -c -m 444 libcgi.la ${PREFIX}/lib + ${LIBTOOL} --mode=install ${INSTALL} -c -m 755 cgitest ${PREFIX}/libexec/cgi-bin + ${LIBTOOL} --mode=install ${INSTALL} -c -m 755 jumpto ${PREFIX}/libexec/cgi-bin + ${INSTALL} -c -m 444 cgi.h ${PREFIX}/include + -mkdir -p ${PREFIX}/share/doc/html/cgilib + for i in *.html; do \ + ${INSTALL} -c -m 444 $$i ${PREFIX}/share/doc/html/cgilib ; \ a65 3 + +clean: + rm -f cgitest cgitest.o jumpto jumpto.o libcgi.a $(OBJS) *.[35].html @ 1.6 log @Make a shared libcgi as rrdtool wants to link it into a DSO. Rearrange several bits of the rrdtool build mechanism so that we're not cheating quite as much. The end result is that rrdtool now compiles on both ELF and a.out. Closes pkg/14606 from Tim Preston @ text @d5 1 a5 1 @@@@ -14,30 +14,48 @@@@ d10 2 d51 1 a51 1 + nroff -mandoc $$f|rman -f HTML --title $$f -r "%s.%s.html" > $$f.html; \ d57 6 a62 6 + install -c -m 444 cgitest.c ${PREFIX}/share/examples/cgilib + install -c -m 444 jumpto.c ${PREFIX}/share/examples/cgilib + ${LIBTOOL} --mode=install install -c -m 444 libcgi.la ${PREFIX}/lib + ${LIBTOOL} --mode=install install -c -m 755 cgitest ${PREFIX}/libexec/cgi-bin + ${LIBTOOL} --mode=install install -c -m 755 jumpto ${PREFIX}/libexec/cgi-bin + install -c -m 444 cgi.h ${PREFIX}/include d65 1 a65 1 + install -c -m 444 $$i ${PREFIX}/share/doc/html/cgilib ; \ @ 1.5 log @- install the source to the example program (as recommended by the program author and desired by at least one package user). - format string patch for 64-bit systems - add message notifying users that an executible cgi program has been installed in their cgi-bin directory (since they may wish to disable them). @ text @d3 4 a6 3 --- Makefile.orig Fri Aug 20 17:14:07 1999 +++ Makefile Mon Sep 10 15:46:59 2001 @@@@ -15,5 +15,5 @@@@ d12 3 a14 2 LIBS = -lcgi @@@@ -21,23 +21,34 @@@@ d17 1 a17 3 +all:: libcgi.a cgitest jumpto htmlman + libcgi.a: $(OBJS) d19 1 a19 1 + ar ruv $@@ $(OBJS) d21 1 a21 1 cgitest: cgitest.o libcgi.a d23 1 a23 1 + $(CC) $(CFLAGS) $(LDFLAGS) -o $@@ cgitest.o $(LIBS) d25 1 a25 1 jumpto: jumpto.o libcgi.a d27 2 a28 1 + $(CC) $(CFLAGS) $(LDFLAGS) -o $@@ jumpto.o $(LIBS) d31 4 a34 4 +htmlman: + for f in *.[35]; do \ + nroff -mandoc $$f|rman -f HTML --title $$f -r "%s.%s.html" > $$f.html; \ + done d38 14 d57 3 a59 3 + install -c -m 755 cgitest ${PREFIX}/libexec/cgi-bin + install -c -m 755 jumpto ${PREFIX}/libexec/cgi-bin + install -c -m 444 libcgi.a ${PREFIX}/lib d65 3 a67 8 clean: rm -f cgitest cgitest.o jumpto jumpto.o libcgi.a $(OBJS) *.[35].html - -htmlman: - for f in *.[35]; do \ - man -l $$f|rman -f HTML --title $$f -r "%s.%s.html" > $$f.html; \ - done @ 1.4 log @Honor CFLAGS passed in from environment during build. @ text @d1 5 a5 5 $NetBSD: patch-ab,v 1.3 2001/05/03 14:23:36 jlam Exp $ --- Makefile.orig Fri Aug 20 23:14:07 1999 +++ Makefile Mon Nov 8 18:06:31 1999 @@@@ -14,30 +14,38 @@@@ # along with this program; if not, write to the Free Software d12 1 a12 1 d39 3 @ 1.3 log @Only depend on rman if not in base system, and install HTML documentation under ${PREFIX}/share/doc/html. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.2 1999/11/08 17:25:00 wennmach Exp $ d9 1 a9 1 +CFLAGS = -I. -Wall -O2 @ 1.2 log @Create directory ${PREFIX}/libexec/cgi-bin if it does not yet exist. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1.1.1 1999/11/06 16:50:47 wennmach Exp $ d43 1 a43 1 + -mkdir -p ${PREFIX}/share/doc/cgilib d45 1 a45 1 + install -c -m 444 $$i ${PREFIX}/share/doc/cgilib ; \ @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 +++ Makefile Sat Nov 6 16:35:49 1999 @@@@ -14,30 +14,37 @@@@ d37 2 a38 1 +install: all d43 1 a43 1 + install -d ${PREFIX}/share/doc/cgilib @ 1.1.1.1 log @Initial import of cgilib-0.5: a common gateway interface library. Provided by Berndt Josef Wulf (wulf@@ping.net.au) in PR 8751 with some modifications by myself. @ text @@