--- micro-inetd-20050629.orig/debian/copyright +++ micro-inetd-20050629/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by Daniel Baumann on +Sun, 5 Dec 2004 20:44:32 +0100. + +It was downloaded from . + +Upstream Author: Jef Poskanzer + +License: + + Copyright 1996-2005 Jef Poskanzer + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + THE POSSIBILITY OF SUCH DAMAGE. + +The Debian packaging is Copyright 2004-2007, Daniel Baumann and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- micro-inetd-20050629.orig/debian/watch +++ micro-inetd-20050629/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://http://acme.com/software/micro_inetd/micro_inetd_(.*)\.tar\.gz debian update --- micro-inetd-20050629.orig/debian/dirs +++ micro-inetd-20050629/debian/dirs @@ -0,0 +1,2 @@ +/usr/bin +/usr/share/man/man1 --- micro-inetd-20050629.orig/debian/control +++ micro-inetd-20050629/debian/control @@ -0,0 +1,27 @@ +Source: micro-inetd +Section: net +Priority: optional +Maintainer: Herve Rousseau +Build-Depends: debhelper (>= 5), dpatch +Standards-Version: 3.8.3 + +Package: micro-inetd +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: micro-httpd, micro-proxy +Homepage: http://www.acme.com/software/micro_inetd/ +Description: simple network service spawner + Like inetd, this program listens on the net for requests and spawns a server to + handle them. However, it only handles one port and one program. The intended + use is when you have a server that expects to be run by inetd, but you only + want to run it temporarily and don't want to bother with putting it into + /etc/services and /etc/inetd.conf and restarting inetd. Instead, just start up + micro_inetd, and when you're done just ^C it. Other limitations: + . + * Full inetd lets you specify the socket type as one of stream, dgram, raw, + rdm, or seqpacket; micro_inetd only implements stream. + * Full inetd lets you specify wait or nowait; micro_inetd only implements + nowait. + * Full inetd lets you specify a user-id to run the server as; micro_inetd + doesn't try to switch user-ids. + . --- micro-inetd-20050629.orig/debian/compat +++ micro-inetd-20050629/debian/compat @@ -0,0 +1 @@ +5 --- micro-inetd-20050629.orig/debian/rules +++ micro-inetd-20050629/debian/rules @@ -0,0 +1,61 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 +include /usr/share/dpatch/dpatch.make + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +build: build-stamp +build-stamp: patch-stamp + dh_testdir + + CFLAGS="$(CFLAGS)" $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + $(MAKE) clean + + dpatch deapply-all + rm -rf patch-stamp debian/patched + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install BINDIR=$(CURDIR)/debian/micro-inetd/usr/bin MANDIR=$(CURDIR)/debian/micro-inetd/usr/share/man/man1 + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_install + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- micro-inetd-20050629.orig/debian/README.source +++ micro-inetd-20050629/debian/README.source @@ -0,0 +1,6 @@ +# +# Comments about Debian specific changes to the sourcecode via patches +# + + - Makefile changed to generate a binary and manpage called "micro-inetd" + instead of "micro_inetd" --- micro-inetd-20050629.orig/debian/changelog +++ micro-inetd-20050629/debian/changelog @@ -0,0 +1,40 @@ +micro-inetd (20050629-5) unstable; urgency=low + + * Renamed micro_inetd to micro-inetd (Closes: #540581). + * Fixed nostrip handling (Closes: #437564). + + -- Herve Rousseau Thu, 20 Aug 2009 13:03:00 +0200 + +micro-inetd (20050629-4) unstable; urgency=low + + * New maintainer (Closes: #407656). + + -- Herve Rousseau Fri, 13 Apr 2007 20:03:00 +0200 + +micro-inetd (20050629-3) unstable; urgency=low + + * Orphaning package. + + -- Daniel Baumann Sat, 20 Jan 2007 12:30:00 +0100 + +micro-inetd (20050629-2) unstable; urgency=low + + * New email address. + * Bumped policy version. + + -- Daniel Baumann Mon, 14 Aug 2006 14:29:00 +0200 + +micro-inetd (20050629-1) unstable; urgency=low + + * New upstream release. + * Fixed depends (Closes: #337556). + * Bumped policy version. + * Minor formal cleanups. + + -- Daniel Baumann Sat, 5 Nov 2005 13:38:00 +0100 + +micro-inetd (20020102-1) unstable; urgency=low + + * Initial Release. + + -- Daniel Baumann Sun, 5 Dec 2004 20:44:32 +0100 --- micro-inetd-20050629.orig/debian/patches/00list +++ micro-inetd-20050629/debian/patches/00list @@ -0,0 +1 @@ +rename_binary.dpatch --- micro-inetd-20050629.orig/debian/patches/rename_binary.dpatch +++ micro-inetd-20050629/debian/patches/rename_binary.dpatch @@ -0,0 +1,38 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## rename_binary.dpatch by Herve Rousseau +## +## DP: Patch against Makefile to handle stripping and rename +## DP: binaries and manpages "micro_inetd" in "micro-inetd" + +@DPATCH@ +diff -urNad micro-inetd-20050629~/Makefile micro-inetd-20050629/Makefile +--- micro-inetd-20050629~/Makefile 2002-01-02 06:24:29.000000000 +0100 ++++ micro-inetd-20050629/Makefile 2009-08-20 15:43:47.000000000 +0200 +@@ -7,20 +7,20 @@ + + CC = gcc + CFLAGS = -O +-LDFLAGS = -s $(SYSV_LIBS) ++LDFLAGS = $(SYSV_LIBS) + BINDIR = /usr/local/bin + MANDIR = /usr/local/man/man1 + + all: micro_inetd + + micro_inetd: micro_inetd.c +- $(CC) $(CFLAGS) micro_inetd.c $(LDFLAGS) -o micro_inetd ++ $(CC) $(CFLAGS) micro_inetd.c $(LDFLAGS) -o micro-inetd + + install: all +- rm -f $(BINDIR)/micro_inetd +- cp micro_inetd $(BINDIR) +- rm -f $(MANDIR)/micro_inetd.1 +- cp micro_inetd.1 $(MANDIR) ++ rm -f $(BINDIR)/micro-inetd ++ cp micro-inetd $(BINDIR) ++ rm -f $(MANDIR)/micro-inetd.1 ++ cp micro_inetd.1 $(MANDIR)/micro-inetd.1 + + clean: +- rm -f micro_inetd *.o core ++ rm -f micro-inetd micro_inetd *.o core