--- libcgic-2.05.orig/debian/libcgic-dev.examples +++ libcgic-2.05/debian/libcgic-dev.examples @@ -0,0 +1,2 @@ +capture.c +cgictest.c --- libcgic-2.05.orig/debian/libcgic-dev.docs +++ libcgic-2.05/debian/libcgic-dev.docs @@ -0,0 +1 @@ +cgic.html --- libcgic-2.05.orig/debian/watch +++ libcgic-2.05/debian/watch @@ -0,0 +1,4 @@ +version=3 +opts="uversionmangle=s/^(\d)(\d\d)$/$1.$2/" \ +http://www.boutell.com/cgic/ \ +cgic(.*)\.t.* --- libcgic-2.05.orig/debian/control +++ libcgic-2.05/debian/control @@ -0,0 +1,57 @@ +Source: libcgic +Section: libs +Priority: optional +Maintainer: Bart Martens +Build-Depends: cdbs, debhelper (>= 5) +Standards-Version: 3.8.0 +Homepage: http://www.boutell.com/cgic/ + +Package: libcgic2 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Recommends: httpd +Description: C library for developing CGI applications + Cgic is an ANSI-C library for the creation of CGI-based World Wide Web + applications. Cgic provides the following: + . + * Parses form data, correcting for defective and/or inconsistent + browsers + * Transparently accepts both GET and POST form data + * Handles line breaks in form fields in a consistent manner + * Provides string, integer, floating-point, and single- and + multiple-choice functions to retrieve form data + * Provides bounds checking for numeric fields + * Loads CGI environment variables into C strings which are always + non-null + * Provides a way to capture CGI situations for replay in a debugging + environment + . + This package provides a shared library version of cgic. + +Package: libcgic-dev +Section: libdevel +Architecture: any +Depends: libcgic2 (= ${binary:Version}), libc6-dev +Suggests: httpd +Conflicts: libcgicg1-dev +Replaces: libcgicg1-dev +Description: C library for developing CGI applications + Cgic is an ANSI-C library for the creation of CGI-based World Wide Web + applications. Cgic provides the following: + . + * Parses form data, correcting for defective and/or inconsistent + browsers + * Transparently accepts both GET and POST form data + * Handles line breaks in form fields in a consistent manner + * Provides string, integer, floating-point, and single- and + multiple-choice functions to retrieve form data + * Provides bounds checking for numeric fields + * Loads CGI environment variables into C strings which are always + non-null + * Provides a way to capture CGI situations for replay in a debugging + environment + . + This package provides a static library version of cgic, examples of using + cgic (including a CGI application that captures a CGI environment for use + in debugging), and header files. --- libcgic-2.05.orig/debian/libcgic2.install +++ libcgic-2.05/debian/libcgic2.install @@ -0,0 +1 @@ +libcgic.so.2.05 usr/lib/ --- libcgic-2.05.orig/debian/compat +++ libcgic-2.05/debian/compat @@ -0,0 +1 @@ +5 --- libcgic-2.05.orig/debian/libcgic-dev.links +++ libcgic-2.05/debian/libcgic-dev.links @@ -0,0 +1 @@ +/usr/lib/libcgic.so.2.05 /usr/lib/libcgic.so --- libcgic-2.05.orig/debian/rules +++ libcgic-2.05/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/makefile.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +clean:: + rm -f libcgic.so.2.05 --- libcgic-2.05.orig/debian/libcgic-dev.install +++ libcgic-2.05/debian/libcgic-dev.install @@ -0,0 +1,2 @@ +cgic.h usr/include/ +libcgic.a usr/lib/ --- libcgic-2.05.orig/debian/changelog +++ libcgic-2.05/debian/changelog @@ -0,0 +1,175 @@ +libcgic (2.05-2) unstable; urgency=low + + * debian/control: Standards-Version, Homepage. + + -- Bart Martens Sun, 13 Jul 2008 09:31:48 +0200 + +libcgic (2.05-1) unstable; urgency=low + + * New maitnainer. Closes: #438643. + * New upstream release. + * debian/*: Repackaged with cdbs. + * debian/changelog-upstream.html: Removed. + * debian/Makefile.examples: Removed. + * debian/README.Debian: Removed. + * debian/copyright: Updated. + * debian/watch: Updated. + + -- Bart Martens Sun, 19 Aug 2007 09:18:53 +0200 + +libcgic (1.07-3) unstable; urgency=low + + * Policy version 3.5.8: + - CFLAGS now always contains -g; DEB_BUILD_OPTIONS=debug just adds + -DCGICDEBUG. + - Support DEB_BUILD_OPTIONS=noopt to build without optimizations. + - Drop /usr/doc symlink. + * Use debhelper in version 3 mode. + * Suggest libgd1-noxpm and libgd-noxpm-dev as real alternatives for the + virtual packages libgd1 and libgd-dev respectively. + + -- Colin Watson Fri, 24 Jan 2003 22:25:57 +0000 + +libcgic (1.07-2) unstable; urgency=low + + * debian/rules: Use dpkg-parsechangelog rather than parsing `pwd`. Other + cleanups. + * Policy version 3.5.6. + + -- Colin Watson Sun, 16 Sep 2001 06:22:55 +0100 + +libcgic (1.07-1) unstable; urgency=low + + * New maintainer (closes: #68591). + * New upstream release: + - Fixed a fencepost error causing various functions to return + cgiFormTruncated if the returned string fit the buffer exactly. + * Standards-Version: 3.5.0: + - Build dependencies. + - Support DEB_BUILD_OPTIONS. + - Don't install shared libraries executable (though dh_fixperms fixed + this anyway). + - The postinst of libcgicg1 didn't have a debhelper token, so the + /usr/doc link got lost. Fixed. + - Added postrm with missing ldconfig call (triggers lintian bug #82479). + * Build with debhelper v2. + * Build libraries with -D_REENTRANT, as per policy 2.1.3.0. (Does anyone + actually use threaded CGI scripts?) + + * Removed old libc5 packages libcgic1 and libcgic1-altdev, and got rid of + the consequent cruft from debian/rules (to all intents and purposes this + closes: #74254, especially since the libgd development packages for + libc5 have also been dropped; also see the next changelog entry). + * Use new names of libgd packages (libgd1 and libgd-dev) (closes: #74212). + * Moved support.txt to the runtime package. + * Constructed an upstream changelog from cgic.html. + * Removed unnecessary call to dh_suidregister. + * Other miscellaneous packaging cleanups. + + * Correctly prototype cgiMain() (closes: #77544). + * Applied Ian Jackson's suggestions for cgic-capture (closes: #77652): + - Change all /tmp references to use the current directory instead. Added + documentation that the current directory needs to be writeable. + - Revert an earlier Debian patch which coped with the security issues of + writing into /tmp by opening with O_WRONLY | O_CREAT | O_EXCL. Since a + CGI script's current directory may reasonably be assumed to be secure, + this isn't necessary. + - Since capture is far from the best way to debug CGI scripts, we don't + ship it as a separate package any more. Instead, install it as one of + the examples in libcgicg1-dev, like cgictest.c; those who need it for + debugging can compile it themselves, since they must be doing the same + for the script they're debugging anyway. An abridged copy of the main + Makefile is provided. + - Check return code of cgiReadEnvironment() and cgiWriteEnvironment() in + cgictest.c and capture.c respectively. + * Fix format string in cgictest.c (%s -> %d). + + -- Colin Watson Wed, 7 Feb 2001 00:33:25 +0000 + +libcgic (1.06-4) unstable; urgency=low + + * Debian QA upload. + * debian/rules: Build libc5 packages conditionally (closes: #51181). + + -- Torsten Landschoff Thu, 25 Nov 1999 11:42:32 +0100 + +libcgic (1.06-3) unstable; urgency=low + + * Fix /home/boutell/... nonsense. (closes: #42514, #43062) + * Orphaned package. + + -- Brian Bassett Thu, 14 Oct 1999 00:09:39 -0700 + +libcgic (1.06-2) unstable; urgency=low + + * Recompile against potato libraries. (#40341, #40342) + * Downgrade httpd Depends on library packages to Recommends. + + -- Brian Bassett Wed, 28 Jul 1999 08:30:25 -0700 + +libcgic (1.06-1) frozen unstable; urgency=high + + * New upstream version. + + Fixes cgiFormEntryString buffer overflow exploit. + + Removes cgiSaferSystem. + + -- Brian Bassett Fri, 15 Jan 1999 17:29:48 -0800 + +libcgic (1.05-8) unstable; urgency=low + + * Fixed lintian errors + + postinst-must-call-ldconfig + + reade-debian-is-debmake-template + + -- Brian Bassett Wed, 26 Aug 1998 20:18:06 -0700 + +libcgic (1.05-7) unstable; urgency=low + + * Moved package to main, as the announcement requirement is no more + onerous than the BSD license. + * Changed maintainer address. + + -- Brian Bassett Sun, 23 Aug 1998 01:03:12 -0700 + +libcgic (1.05-6) unstable; urgency=low + + * Fixed more lintian stuff. + - Especially the ldconfig-symlinks (#19348) + + -- Brian Bassett Sat, 14 Mar 1998 15:52:39 -0800 + +libcgic (1.05-5) unstable; urgency=low + + * Fixed lintian warnings/errors. + + -- Brian Bassett Tue, 10 Feb 1998 15:52:09 -0800 + +libcgic (1.05-4) unstable; urgency=low + + * Fixed debian/rules not to hardcode /usr/i486-linuxlibc1 in -altdev. + Apologies for the brain fart. :-) + + -- Brian Bassett Sat, 17 Jan 1998 21:24:34 -0800 + +libcgic (1.05-3) unstable; urgency=low + + * Fixed libgdg1 => libgd1g + * Switched from debmake to debhelper + - As a result, build libc5 libs only on i386. (Haven't figure out how + to do this like it used to be done with debmake. :-< ) + * Added cgic-capture package + + -- Brian Bassett Sun, 14 Dec 1997 14:51:27 -0800 + +libcgic (1.05-2) unstable; urgency=low + + * Changed package names to more policy-compliant libcgic* from old cgic* + * Added Suggests: control line for libgd + + -- Brian Bassett Sat, 6 Dec 1997 00:52:15 -0800 + +cgic (1.05-1) unstable; urgency=low + + * Initial Release. + + -- Brian Bassett Tue, 11 Nov 1997 17:28:04 -0800 --- libcgic-2.05.orig/debian/links +++ libcgic-2.05/debian/links @@ -0,0 +1 @@ +/usr/lib/libcgic.so.2.05 /usr/lib/libcgic.so.2 --- libcgic-2.05.orig/debian/copyright +++ libcgic-2.05/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Brian Bassett brian@butterfly.ml.org on +Tue, 11 Nov 1997 17:28:04 -0800. + +It was downloaded from: + + http://www.boutell.com/cgic/ + +Upstream author: + + Thomas Boutell + +Copyright: + + Copyright (C) 1996-2004 by Thomas Boutell and Boutell.Com, Inc. + +License: + + CGIC, copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, + 2004 by Thomas Boutell and Boutell.Com, Inc.. Permission is granted to + use CGIC in any application, commercial or noncommercial, at no cost. + HOWEVER, this copyright paragraph must appear on a "credits" page + accessible in the public online and offline documentation of the program. + Modified versions of the CGIC library should not be distributed without + the attachment of a clear statement regarding the author of the + modifications, and this notice may in no case be removed. + Modifications may also be submitted to the author for inclusion + in the main CGIC distribution. + --- libcgic-2.05.orig/debian/patches/01_Makefile.diff +++ libcgic-2.05/debian/patches/01_Makefile.diff @@ -0,0 +1,31 @@ +--- ../orig/cgic205/Makefile 2004-04-22 22:49:47.000000000 +0200 ++++ Makefile 2007-08-19 09:36:16.000000000 +0200 +@@ -1,21 +1,25 @@ +-CFLAGS=-g -Wall + CC=gcc + AR=ar + RANLIB=ranlib + LIBS=-L./ -lcgic + +-all: libcgic.a cgictest.cgi capture ++all: libcgic.a libcgic.so.2.05 + + install: libcgic.a + cp libcgic.a /usr/local/lib + cp cgic.h /usr/local/include + @echo libcgic.a is in /usr/local/lib. cgic.h is in /usr/local/include. + +-libcgic.a: cgic.o cgic.h ++libcgic.a: cgic.c cgic.h + rm -f libcgic.a ++ gcc $(CFLAGS) -D_REENTRANT -pipe -c cgic.c -o cgic.o + $(AR) rc libcgic.a cgic.o + $(RANLIB) libcgic.a + ++libcgic.so.2.05: cgic.c cgic.h ++ gcc $(CFLAGS) -D_REENTRANT -fPIC -pipe -c cgic.c -o cgic.o ++ gcc -shared -Wl,-soname,libcgic.so.2 -o libcgic.so.2.05 cgic.o -lc ++ + #mingw32 and cygwin users: replace .cgi with .exe + + cgictest.cgi: cgictest.o libcgic.a