cgilib (0.6-1) debian-dir only changes

Summary

 debian/NMU-Disclaimer |   45 +++++++++++++++++
 debian/changelog      |  130 ++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/control        |   16 ++++++
 debian/copyright      |   54 ++++++++++++++++++++
 debian/postinst       |    9 +++
 debian/prerm          |    7 ++
 debian/rules          |  121 ++++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 382 insertions(+)

    
download this patch

Patch contents

--- cgilib-0.6.orig/debian/NMU-Disclaimer
+++ cgilib-0.6/debian/NMU-Disclaimer
@@ -0,0 +1,45 @@
+Non Maintainer Upload of this Package
+-------------------------------------
+
+If you plan to work on an NMU for this package, read the following
+closely.  It can save you and me some grief.
+
+ 1. At first, contact the maintainer (i.e. send a mail to
+    joey@debian.org, do not cc or bounce a mail, send a plain mail,
+    not copied to any mailing list or the BTS) and ask about the
+    status of the bug you are considering to work on.
+
+ 2. In this mail include all information relevant for this problem,
+    i.e. include a description of the bug and not only its bug
+    number.
+
+ 3. If the maintainer is not able or willing to fix the problem or
+    does not respond within four days, continue with step 4.
+
+ 4. Work on the bug and prepare a patch.  Do not upload into the
+    Debian archive.
+
+ 5. Send the entire patch, together with enough explanations, to the
+    maintainer for reviewing and ask him for permission of an NMU
+    using this patch.
+
+ 6. IF AND ONLY IF the maintainer approves the patch (or doesn't
+    respond within four days), upload the NMU to the incoming
+    directory and send the patch to the BTS.  If the NMU is not
+    approved, go back to 4. or add the NMU to your homepage, but do
+    not upload it to the Debian archive.
+
+ 7. Properly sized and well-written patches sent to the BTS are always
+    appreciated, even if they are rejected later.  They demonstrate a
+    potential solution which could probably improved into a real
+    solution.
+
+ 8. NEVER change the way a package is maintained in an NMU, i.e. don't
+    remove dh_* stuff or switch to dh_* respectively.  This rule
+    applies to all NMU's, not only to an NMU for this package.
+
+These rules always apply.  They even apply if somebody declares NMUs
+as ok and reduces regular NMU rules to a delay of zero days.  Unless
+I'm on vacation or on a show I am reachable via mail, so there is
+hardly a reason not to contact me.
+
--- cgilib-0.6.orig/debian/changelog
+++ cgilib-0.6/debian/changelog
@@ -0,0 +1,130 @@
+cgilib (0.6-1) unstable; urgency=low
+
+  * New upstream version
+    . Declare some variables const (closes: Bug#162239)
+    . Add CR to Content-type output (closes: Bug#282334)
+    . Properly terminate buffer (closes: Bug#291753)
+    . Decode CGI variable names (closes: Bug#336524)
+  * Bumped Standards-Version
+  * Enhanced copyright file
+
+ -- Martin Schulze <joey@infodrom.org>  Sun, 06 Apr 2008 15:16:19 +0200
+
+cgilib (0.5-6) unstable; urgency=low
+
+  * Added conflict against libcgi-dev that also ships /usr/lib/libcgi.a
+    (closes: Bug#462944)
+
+ -- Martin Schulze <joey@infodrom.org>  Fri, 08 Feb 2008 12:56:01 +0100
+
+cgilib (0.5-5) unstable; urgency=low
+
+  * Added a disclaimer for those people who plan to NMU this package
+  * Fixed typo in NMU-Disclaimer, thanks to Petter Reinholdtsen (See:
+    Bug#225895)
+  * Added support for inclusion into C++ (closes: Bug#282329)
+
+ -- Martin Schulze <joey@infodrom.org>  Tue, 22 Jan 2008 20:14:23 +0100
+
+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 <joey@finlandia.infodrom.north.de>  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 <joey@finlandia.infodrom.north.de>  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 <joey@finlandia.infodrom.north.de>  Tue, 20 Nov 2001 22:31:59 +0100
+
+cgilib (0.5-1) unstable; urgency=low
+
+  * New upstream source
+  * Added cookie support from Mikko Torni <mtorni@mail.freenet.hut.fi>
+  * 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 <joey@finlandia.infodrom.north.de>  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 <joey@finlandia.infodrom.north.de>  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 <joey@finlandia.infodrom.north.de>  Sat, 28 Mar 1998 21:04:38 +0100
+
+cgilib (0.4-1) frozen unstable; urgency=low
+
+  * Corrected Standards-Version (typo, lintian)
+
+ -- Martin Schulze <joey@finlandia.infodrom.north.de>  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 <joey@finlandia.infodrom.north.de>  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 <joey@finlandia.infodrom.north.de>  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 <joey@finlandia.infodrom.north.de>  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 <joey@finlandia.infodrom.north.de>  Sun, 15 Feb 1998 05:45:57 +0100
+
--- cgilib-0.6.orig/debian/control
+++ cgilib-0.6/debian/control
@@ -0,0 +1,16 @@
+Source: cgilib
+Maintainer: Martin Schulze <joey@debian.org>
+Section: web
+Priority: optional
+Standards-Version: 3.7.3
+
+Package: cgilib
+Architecture: any
+Suggests: httpd
+Section: web
+Priority: optional
+Conflicts: libcgi-dev
+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.6.orig/debian/copyright
+++ cgilib-0.6/debian/copyright
@@ -0,0 +1,54 @@
+This is the Debian Linux prepackaged version of cgilib, a lightwind
+CGI programming API written by Martin Schulze <joey@infodrom.org>.
+
+This package was put together by Martin Schulze <joey@debian.org>,
+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 <joey@infodrom.north.de>
+
+    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'.
+
+More Information can be found at the projects homepage:
+
+  Web: http://www.infodrom.org/projects/cgilib/
+
+Mailing list for discussions and development:
+
+  Mail: infodrom-cgilib@lists.infodrom.org
+
+To subscribe to this list,
+
+ . send a mail to infodrom-cgilib-request@lists.infodrom.org with the word
+   "subscribe" as subject, or
+
+ . send a mail to majordomo@lists.infodrom.org with the body of
+   "subscribe infodrom-cgilib".
+
+The list is archived publicly at
+<http://lists.infodrom.org/infodrom-cgilib/>.
+
+The source of the Debian package is managed through CVS.  It is publically
+available at <http://cvs.infodrom.org/dtaus/?cvsroot=debian> or as
+<:pserver:anonymous@cvs.infodrom.org/var/cvs/debian/cgilib/>.
+
--- cgilib-0.6.orig/debian/postinst
+++ cgilib-0.6/debian/postinst
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+pkg=cgilib
+
+if [ "$1" = "configure" ]; then
+   if [ -d /usr/doc -a ! -e /usr/doc/${pkg} -a -d /usr/share/doc/${pkg} ]; then
+      ln -sf ../share/doc/${pkg} /usr/doc/${pkg}
+   fi
+fi
--- cgilib-0.6.orig/debian/prerm
+++ cgilib-0.6/debian/prerm
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+pkg=cgilib
+
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/${pkg} ]; then
+   rm -f /usr/doc/${pkg}
+fi
--- cgilib-0.6.orig/debian/rules
+++ cgilib-0.6/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
+