--- cgilib-0.5.orig/Makefile +++ cgilib-0.5/Makefile @@ -1,4 +1,4 @@ -# Copyright (c) 1998,9 by Martin Schulze +# Copyright (c) 1998,9,2001 by Martin Schulze # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,20 +14,23 @@ # 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 +CFLAGS = -Wall -O2 -g +IFLAGS = -I. LDFLAGS = -L. LIBS = -lcgi OBJS = cgi.o cookies.o +CC += $(IFLAGS) + libcgi.a: $(OBJS) ar rc $@ $^ cgitest: cgitest.o libcgi.a - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + $(CC) $(CFLAGS) $(IFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) jumpto: jumpto.o libcgi.a - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + $(CC) $(CFLAGS) $(IFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) all: libcgi.a cgitest jumpto --- cgilib-0.5.orig/cgi.5 +++ cgilib-0.5/cgi.5 @@ -95,7 +95,7 @@ the same machine for several servers. .TP .B SERVER_PROTOCOL -This is the nae and version of the information protocol the request +This is the name and version of the information protocol the request came in with. Normally this is "HTTP/1.0" or "HTTP/1.1". .TP .B SERVER_PORT --- cgilib-0.5.orig/debian/control +++ cgilib-0.5/debian/control @@ -0,0 +1,17 @@ +Source: cgilib +Maintainer: Martin Schulze +Section: web +Priority: optional +Standards-Version: 3.6.2 +Build-Conflicts: libc6-dev (<< 2.3.5), libc6.1-dev (<< 2.3.5) + +Package: cgilib +Architecture: any +Suggests: httpd +Conflicts: libcgi-dev +Section: web +Priority: optional +Description: Simple CGI Library + This library provides a simple programming API to the Common Gateway + Interface (CGI). It features HTTP Redirect, provides read access to + FORM variables, sets HTTP Cookies and reads them. --- cgilib-0.5.orig/debian/rules +++ cgilib-0.5/debian/rules @@ -0,0 +1,121 @@ +#! /usr/bin/make -f + +# Copyright 1994-9 joey@infodrom.north.de (Martin Schulze) +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 dated June, 1991. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +SHELL=/bin/bash +# The name and version of the source +# +source = $(shell grep "^Source: " debian/control|head -1|sed 's/Source: \(.*\)/\1/g') +package = $(shell grep "^Package: " debian/control|head -1|sed 's/Package: \(.*\)/\1/g') +version = $(shell grep "^$(source) " debian/changelog|head -1 |sed 's/.*(\(.*\)\-[^\-]*).*/\1/g') +revision = $(shell grep "^$(source) " debian/changelog|head -1 |sed 's/.*([^\-]*\-\(.*\)).*/\1/g') + +installbin = install -g root -o root -m 755 +installdoc = install -g root -o root -m 644 + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +CFLAGS = -g -O2 -Wall +else +CFLAGS = -O2 -Wall +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) +STRIP = strip +else +STRIP = echo +endif + +build: + $(MAKE) CFLAGS="$(CFLAGS)" + touch stamp-build + +clean: debclean + rm -f stamp-build + $(MAKE) clean + find . -name '*~' -exec rm {} \; + +debclean: +# Cleans debian binary directories to allow binary creation + rm -rf debian/tmp + rm -f debian/{files,substvars} + +binary-indep: +# Nothing to be done here + +binary-arch: debclean + rm -rf debian/tmp + test -f stamp-build || $(MAKE) -f debian/rules build + $(installbin) -d debian/tmp/DEBIAN + chown -R root.root debian/tmp + chmod -R g-ws debian/tmp + # + $(installbin) -d debian/tmp/usr/share/doc/$(package)/examples + $(installdoc) debian/copyright debian/tmp/usr/share/doc/$(package) + $(installdoc) readme debian/tmp/usr/share/doc/$(package) + $(installdoc) cookies.txt debian/tmp/usr/share/doc/$(package) + $(installdoc) CHANGES debian/tmp/usr/share/doc/$(package)/changelog + $(installdoc) debian/changelog debian/tmp/usr/share/doc/$(package)/changelog.Debian + $(installdoc) CREDITS debian/tmp/usr/share/doc/$(package)/credits + $(installdoc) cgitest.c debian/tmp/usr/share/doc/$(package)/examples + $(installdoc) jumpto.c debian/tmp/usr/share/doc/$(package)/examples + gzip -9f debian/tmp/usr/share/doc/$(package)/changelog{,.Debian} + # + $(installbin) -d debian/tmp/usr/share/man/man{3,5} + for page in *.3; do \ + $(installdoc) $${page} debian/tmp/usr/share/man/man3/$${page}; \ + done + $(installdoc) cgi.5 debian/tmp/usr/share/man/man5/cgi.5 + gzip -9f debian/tmp/usr/share/man/man?/* + # + $(installbin) -d debian/tmp/usr/include + $(installdoc) cgi.h debian/tmp/usr/include + $(installbin) -d debian/tmp/usr/lib + $(installdoc) libcgi.a debian/tmp/usr/lib + strip --strip-debug libcgi.a debian/tmp/usr/lib/libcgi.a +# $(installdoc) $(target)/tmp/$(MSHLIB) debian/tmp/usr/lib +# ln -sf $(MSHLIB) debian/tmp/usr/tmp/$(MSHLIB0) +# ln -sf $(MSHLIB0) debian/tmp/usr/tmp/$(MSHLIB00) +# chown root.root debian/tmp/usr/tmp/$(MSHLIB0) debian/tmp/usr/tmp/$(MSHLIB00) +# strip --strip-unneeded debian/tmp/usr/tmp/$(MSHLIB0) + # +# dpkg-shlibdeps debian/tmp/usr/tmp/$(MSHLIB0) + dpkg-gencontrol -isp + dpkg --build debian/tmp .. + +binary: binary-indep binary-arch + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b' or dsc; false + +dsc: + -test -d debian/tmp && $(MAKE) -f debian/rules clean + if [ ! -f ../$(source)_$(version).orig.tar.gz -a -f ../orig/$(source)_$(version).orig.tar.gz ]; \ + then \ + ln -s orig/$(source)_$(version).orig.tar.gz ../$(source)_$(version).orig.tar.gz; \ + touch /tmp/stamp-$(source)-link; \ + fi; \ + cd .. && dpkg-source -b $(source)-$(version) + if [ -f /tmp/stamp-$(source)-link ]; then \ + rm ../$(source)_$(version).orig.tar.gz /tmp/stamp-$(source)-link; \ + fi + +checkroot: + $(checkdir) + test root = "`whoami`" + +dist: binary dsc + +.PHONY: binary binary-arch binary-indep clean checkroot + --- cgilib-0.5.orig/debian/changelog +++ cgilib-0.5/debian/changelog @@ -0,0 +1,118 @@ +cgilib (0.5-4.1build1) gutsy; urgency=low + + * No-change rebuild to include stack protector. + + -- Kees Cook Tue, 31 Jul 2007 10:21:22 -0700 + +cgilib (0.5-4.1) unstable; urgency=low + + * NMU. + * Rebuild to get rid of unresolved symbols (closes: #322884). + * Add a conflict to libcgi-dev (closes: #303326). + * Remove debian/postinst, debian/prerm (doc symlinks). + * Set Standards-Version to 3.6.2. + + -- Matthias Klose Sat, 13 Aug 2005 11:50:59 +0200 + +cgilib (0.5-4) unstable; urgency=medium + + * Darn, f*cking DEB_BUILD_OPTIONS support broke the build system. Found + a way to workaround this by cheating but it seems to work this + time. (closes: Bug#122892, Bug#123296, Bug#121827) + + -- Martin Schulze Fri, 14 Dec 2001 19:08:08 +0100 + +cgilib (0.5-3) unstable; urgency=low + + * Added convenience code to support $DEB_BUILD_OPTIONS + + -- Martin Schulze Thu, 22 Nov 2001 09:24:06 +0100 + +cgilib (0.5-2) unstable; urgency=low + + * Incorporated useful changes from Drew Parsons NMU + * Whoops, there was only one... (the following) However, this happily + invalidates a fucked up C source file and a typoed manpage (closes: Bug#76095) + * Updated link in copyright file to /usr/share/common-licenses/GPL. + * Moved documentation to /usr/share/doc and /usr/share/man, also added + convenience calls to prerm and postinst (closes: Bug#91129, Bug#91408) + * Added -isp to dpkg-gencontrol, so Section and Priority will be copied + * Updated Standards-Version + + -- Martin Schulze Tue, 20 Nov 2001 22:31:59 +0100 + +cgilib (0.5-1) unstable; urgency=low + + * New upstream source + * Added cookie support from Mikko Torni + * Added a proper install target to Makefile, will be used by debian/rules + * Added some braces as suggested by gcc + * Oops, fixed simple length+1byte bug (closes: Bug#32834) + * Makefile::clean now removes libcgi.a, debian/rules now uses pristine source + * Added cgiGetVariables(3) + * Extended test suite + * Now also includes upstream changelog + * Fixes prefix name problem (closes: Bug#42736, Bug#42813) + * Added missing call to decode HTTP string (closes: Bug#42733) + * Fixes string allocation bug (closes: Bug#42846) + * Added Cookie documentation + + -- Martin Schulze Fri, 20 Aug 1999 23:29:18 +0200 + +cgilib (0.4-3) unstable; urgency=low + + * Switched from bzero() to memset(), thanks Shaleh + * Corrected typo in cgiInit(3), thanks Shaleh + * Removed unneeded dependency field. + * Fixed typo in jump.c comments, thanks Shaleh. + + -- Martin Schulze Sat, 12 Sep 1998 02:55:32 +0200 + +cgilib (0.4-2) frozen unstable; urgency=low, closes=20352 + + * Made debian/rules executable (closes: Bug#20352) + + -- Martin Schulze Sat, 28 Mar 1998 21:04:38 +0100 + +cgilib (0.4-1) frozen unstable; urgency=low + + * Corrected Standards-Version (typo, lintian) + + -- Martin Schulze Tue, 24 Mar 1998 00:38:49 +0100 + +cgilib (0.4) unstable; urgency=low + + * Corrected html code in redirection + * Corrected number of bytes in redirection + + -- Martin Schulze Fri, 20 Mar 1998 09:20:51 +0100 + +cgilib (0.3) unstable; urgency=low + + * Fixed little mistake in offline mode + * Included another example, jumpto + + -- Martin Schulze Mon, 23 Feb 1998 11:03:21 +0100 + +cgilib (0.2) unstable; urgency=low + + * Corrected debugging + * Added cgiRedirect() + * Added cgiRedirect(3) manpage + * Added call to cgiRedirect() to example cgitest.c + * Added compile notice to cgitest.c + * Added support for the GET method + * Reorganized POST/GET/stdin support + * Implemented support for multiple fields and updated manpage + + -- Martin Schulze Wed, 18 Feb 1998 11:26:21 +0100 + +cgilib (0.1-1) unstable; urgency=low + + * New package + * DFSG Free cgi library + * Very small package + * Contains all important manpages + + -- Martin Schulze Sun, 15 Feb 1998 05:45:57 +0100 + --- cgilib-0.5.orig/debian/copyright +++ cgilib-0.5/debian/copyright @@ -0,0 +1,30 @@ +This is the Debian Linux prepackaged version of cgilib, a lightwind +CGI programming API written by Martin Schulze . + +This package was put together by Martin Schulze , +from sources obtained from: + + http://www.infodrom.org/projects/cgilib/download/ + +Homepage: http://www.infodrom.org/projects/cgilib/ + +This package is + + Copyright (c) 1998,9 by Martin Schulze + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- cgilib-0.5.orig/readme +++ cgilib-0.5/readme @@ -29,7 +29,7 @@ The CGI Library - http://www.infodrom.north.de/cgilib/ + http://www.infodrom.org/projects/cgilib/ HTTP Return Codes @@ -47,4 +47,4 @@ Infodrom Oldenburg Martin Schulze -joey@infodrom.north.de +joey@infodrom.org --- cgilib-0.5.orig/cgitest.c +++ cgilib-0.5/cgitest.c @@ -113,7 +113,7 @@ cgiHeader(); printf ("\ncgilib\n\n\n"); printf ("

cgilib

\n", URL); - printf ("

Cookie "Library" set

\n"); + printf ("

Cookie Library set

\n"); printf ("



Test

\n"); printf ("



Redirect

\n"); printf ("



List Everything

\n");