debian/0000755000000000000000000000000011733276771007204 5ustar debian/micro-httpd.postinst0000755000000000000000000000436411716170764013251 0ustar #!/bin/sh set -e PATH="/sbin:/bin:/usr/sbin:/usr/bin" PACKAGE=$(basename $0 | sed 's/\..*//') WWWDIR=/var/www conf=/etc/inetd.conf pkgdir=/usr/share/$PACKAGE port="www" entry="$port\tstream\ttcp\tnowait nobody:www-data\t/usr/sbin/tcpd /usr/sbin/$PACKAGE $WWWDIR" Debhelper () { : #DEBHELPER# } Which () { which "$1" > /dev/null 2>&1 } Warn () { echo "$*" >&2 } IsInetd () { [ -x /usr/sbin/update-inetd ] } IsInetdConf () { [ -f $conf ] } IsInInetd () { [ -f $conf ] || return 10 # Debian may have inetd.conf entry already grep -q "^[[:space:]]*$port.*$PACKAGE" $conf || # check for other PORT alias name as well grep -q "^[[:space:]]*(http|80)[[:space:]].*$PACKAGE" $conf } IsConflictInetd () { # Check if some other service already uses PORT grep -q "^[[:space:]#]*$port" $conf } HttpdWarning () { # There isn't much point of inetd if apache already installed and # occupies port 80 if ls /etc/init.d/apache* > /dev/null 2>&1 ; then Warn "$0: [WARN] Apache found. $PACKAGE $conf uses port '$port'" \ "which may be same as in Apache (you may need to change $PACKAGE port)" fi } InetdName () { local name= if [ -f /etc/init.d/inetutils-inetd ]; then name=inetutils-inetd elif [ -f /etc/init.d/openbsd-inetd ]; then name="openbsd-inetd" elif [ -f /etc/init.d/rlinetd ]; then name="rlinetd" fi [ ! "$name" ] || echo $name } CallInetd () { local name=$1 local cmd=$2 [ "$cmd" ] || return 0 if Which invoke-rc.d ; then invoke-rc.d $name $cmd else /etc/init.d/$name $cmd fi } InstallInetd () { Warn "$0: adding new $conf entry" update-inetd --group STANDARD --add "$entry" # This directory must be there [ ! -d $WWWDIR ] && mkdir -p $WWWDIR local name=$(InetdName) CallInetd $name reload } MainInetd () { if [ "$1" = "install" ] || [ "$1" = "configure" ] then if IsConflictInetd ; then Warn "$PACKAGE: [WARNING] Not installing to $conf" \ "due to existing '$port' entry" else IsInInetd || InstallInetd HttpdWarning fi fi } Main () { if IsInetd ; then MainInetd "$@" fi Debhelper } Main "$@" # End of file debian/debian-vars.mk0000644000000000000000000000476411716171126011730 0ustar #!/usr/bin/make -f # # debian-vars.mk -- Common variables # # Copyright # # Copyright (C) 2005-2010 Jari Aalto # # License # # 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, see . # # Description # # This is GNU makefile part that defines common variables and # macros to be used from debian/rules. To install, add following # to the beginning of debian/rules: # # PACKAGE = foo # include debian/debian-vars.mk ifneq (,) This makefile requires GNU Make. endif PACKAGE ?= foo PIXPACKAGE ?= $(PACKAGE) ICONPACKAGE ?= $(PACKAGE) TOPDIR := $(shell pwd) PKGDIR = $(shell pwd)/debian/$(PACKAGE) SHAREROOTDIR = $(PKGDIR)/usr/share SHAREDIR = $(SHAREROOTDIR)/$(PACKAGE) DOCROOTDIR = $(SHAREROOTDIR)/doc PKGDOCDIR = $(DOCROOTDIR)/$(PACKAGE) SITELISPDIR = $(SHAREROOTDIR)/emacs/site-lisp PKGLISPDIR = $(SITELISPDIR)/$(PACKAGE) DESKTOPDIR = $(SHAREROOTDIR)/applications XSESSIONDIR = $(SHAREROOTDIR)/xsessions LOCALEDIR = $(SHAREROOTDIR)/locale INFODIR = $(SHAREROOTDIR)/info PIXDIR = $(SHAREROOTDIR)/pixmaps PKGPIXDIR = $(PIXDIR)/$(PIXPACKAGE) ICONDIR = $(SHAREROOTDIR)/icons PKGICONDIR = $(ICONDIR)/$(ICONPACKAGE) MANROOTDIR = $(SHAREROOTDIR)/man MAN1DIR = $(MANROOTDIR)/man1 MAN5DIR = $(MANROOTDIR)/man5 MAN7DIR = $(MANROOTDIR)/man7 MAN8DIR = $(MANROOTDIR)/man8 LIBROOTDIR = $(PKGDIR)/usr/lib LIBDIR = $(LIBROOTDIR)/$(PACKAGE) LIBPERLDIR = $(LIBROOTDIR)/perl BINDIR = $(PKGDIR)/usr/bin ETCDIR = $(PKGDIR)/etc PKGETCDIR = $(PKGDIR)/etc/$(PACKAGE) SBINDIR = $(PKGDIR)/usr/sbin GAMEBINDIR = $(PKGDIR)/usr/games INSTALL ?= /usr/bin/install INSTALL_DIR = $(INSTALL) -m 755 -d INSTALL_DATA = $(INSTALL) -p -m 644 # The difference is that "BIN" may contain binary strip option INSTALL_SCRIPT = $(INSTALL) -p -m 755 INSTALL_BIN = $(INSTALL) -p -m 755 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_BIN += -s endif # End of Makefile part debian/micro-httpd.8.pod0000644000000000000000000000727011716170764012312 0ustar # Copyright # # Copyright (C) 2007-2009 Jari Aalto # # License # # 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, see . # # Description # # To learn what TOP LEVEL section to use in manual pages, # see POSIX/Susv standard and "tility Description Defaults" at # http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap01.html#tag_01_11 # # This is manual page in Perl POD format. Read more at # http://perldoc.perl.org/perlpod.html or run command: # # perldoc perlpod | less # # To check the syntax: # # podchecker *.pod # # Create manual page with command: # # pod2man PAGE.N.pod > PAGE.N =pod =head1 NAME micro-httpd - really small HTTP server =head1 SYNOPSIS micro-httpd DIRECTORY =head1 OPTIONS None. =head1 DESCRIPTION micro-httpd is a very small HTTP server all in 150 lines of code. It runs from inetd, which means its performance is poor. But for low-traffic sites, it is quite adequate. It implements all the basic features of an HTTP server, including: * Security against ".." filename snooping. * The common MIME types. * Trailing-slash redirection. * index.html * Directory listings. To install it, add a line like this to /etc/inetd.conf: micro-http stream tcp nowait nobody \ /usr/sbin/micro-httpd micro-httpd dir Make sure the path to the executable is correct, and change "dir" to be the directory you want to serve. You could add line like this to /etc/services: micro-http port/tcp #Micro HTTP server Change "port" to the port number you want to use: 80, 8000, whatever. Restart inetd by sending it a "HUP" signal. On some systems, inetd has a maximum spawn rate - if you try to run inetd services faster than a certain number of times per minute, it assumed there is either a bug of an attack going on and it shuts down for a few minutes. If you run into this problem - look for syslog messages about too-rapid looping - you will need to find out how to increase the limit. Unfortunately this varies from OS to OS. On FreeBSD, you add a "-R 10000" flag to inetd's initial command line. On some Linux systems, you can set the limit on a per-service basis in inetd.conf, by changing "nowait" to "nowait.10000". Note that you can use micro-httpd to serve HTTPS, if you like, by running it from stunnel. First fetch and install stunnel - FreeBSD users can just go to /usr/ports/security/stunnel and do a "make cert ; make install". Then as root run: stunnel -p /usr/local/certs/stunnel.pem -d 443 -l \ /usr/sbin/micro-httpd -- micro-httpd dir Make sure the paths to the certificate and executable are correct, and again don not forget to change "dir" to the directory you want to serve. =head1 ENVIRONMENT None. =head1 FILES None. =head1 SEE ALSO inetd(8) micro-inetd(8) xinetd(8) =head1 AUTHORS Copyright (C) 1999 Jef Poskanzer . All rights reserved. This manual page was updated by Jari Aalto . Released under license GNU GPL v2 or (at your option) any later version. For more information about license, visit . =cut debian/micro-httpd.manpages0000644000000000000000000000001311716170764013141 0ustar debian/*.1 debian/patches/0000755000000000000000000000000011716170764010627 5ustar debian/patches/30-makefile-strip-fix.patch0000644000000000000000000000111311716170764015564 0ustar From 917abd26c62787e87b959cae77dd3372d0eddd1d Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Sun, 26 Oct 2008 14:46:49 +0200 Subject: [PATCH] Remove strip Signed-off-by: Jari Aalto --- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 7cdc785..52bb489 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CC = gcc CFLAGS = -O #CFLAGS = -g #SYSVLIBS = -lnsl -lsocket -LDFLAGS = -s ${SYSVLIBS} +LDFLAGS = ${SYSVLIBS} #LDFLAGS = -g ${SYSVLIBS} all: micro_httpd -- 1.6.5 debian/patches/20-micro-httpd.c--utf-8.patch0000644000000000000000000000221111716170764015554 0ustar From 3842cd28126855628254e0e2701d988e38fc34d8 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Sun, 26 Oct 2008 14:46:25 +0200 Subject: [PATCH] charset=iso-8859-1 to utf-8 Signed-off-by: Jari Aalto --- micro_httpd.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/micro_httpd.c b/micro_httpd.c index c87034a..2ebbd48 100644 --- a/micro_httpd.c +++ b/micro_httpd.c @@ -197,9 +197,9 @@ get_mime_type( char* name ) dot = strrchr( name, '.' ); if ( dot == (char*) 0 ) - return "text/plain; charset=iso-8859-1"; + return "text/plain; utf-8"; if ( strcmp( dot, ".html" ) == 0 || strcmp( dot, ".htm" ) == 0 ) - return "text/html; charset=iso-8859-1"; + return "text/html; utf-8"; if ( strcmp( dot, ".jpg" ) == 0 || strcmp( dot, ".jpeg" ) == 0 ) return "image/jpeg"; if ( strcmp( dot, ".gif" ) == 0 ) @@ -228,7 +228,7 @@ get_mime_type( char* name ) return "application/ogg"; if ( strcmp( dot, ".pac" ) == 0 ) return "application/x-ns-proxy-autoconfig"; - return "text/plain; charset=iso-8859-1"; + return "text/plain; utf-8"; } -- 1.6.5 debian/patches/21-micro-httpd.c--swf.patch0000644000000000000000000000153411716170764015420 0ustar From c7edcfdbf962f2135b09b8ce8388233cd9500d81 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Sun, 26 Oct 2008 14:46:41 +0200 Subject: [PATCH] added shockwave flash mime type support for .swf files Signed-off-by: Jari Aalto --- micro_httpd.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/micro_httpd.c b/micro_httpd.c index c87034a..66417d5 100644 --- a/micro_httpd.c +++ b/micro_httpd.c @@ -214,6 +214,8 @@ get_mime_type( char* name ) return "audio/wav"; if ( strcmp( dot, ".avi" ) == 0 ) return "video/x-msvideo"; + if ( strcmp( dot, ".swf" ) == 0 ) + return "application/x-shockwave-flash"; if ( strcmp( dot, ".mov" ) == 0 || strcmp( dot, ".qt" ) == 0 ) return "video/quicktime"; if ( strcmp( dot, ".mpeg" ) == 0 || strcmp( dot, ".mpe" ) == 0 ) -- 1.6.5 debian/patches/series0000644000000000000000000000012611716170764012043 0ustar 20-micro-httpd.c--utf-8.patch 21-micro-httpd.c--swf.patch 30-makefile-strip-fix.patch debian/compat0000644000000000000000000000000211733135554010373 0ustar 9 debian/README.Debian-source0000644000000000000000000000051111716170764012534 0ustar micro-http Debian sources ------------------------- The original micro_httpd.8 was converted into debian/micro-httpd.8.pod for easier maintenece. The accompanying debian/patches/ to the manual page were integrated to POD and these patches were removed. -- Jari Aalto , Sun, 26 Oct 2008 13:36:24 +0300 debian/control0000644000000000000000000000161511733135563010603 0ustar Source: micro-httpd Section: httpd Priority: optional Maintainer: Jari Aalto Build-Depends: debhelper (>= 9) Standards-Version: 3.9.3.1 Vcs-Browser: http://git.debian.org/?p=collab-maint/micro-httpd.git Vcs-Git: git://git.debian.org/git/collab-maint/micro-httpd.git Homepage: http://www.acme.com/software/micro_httpd Package: micro-httpd Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, openbsd-inetd | inet-superserver | micro-inetd | netcat-traditional Suggests: micro-proxy Provides: httpd Description: really small HTTP server A very small HTTP server implemented in 150 lines of code. Program can be used to serve HTTPS by wrapping it with stunnel. It implements all the basic features of an HTTP server, including: . * Security against ".." filename snooping * The common MIME types * Trailing-slash redirection * index.html * Directory listings debian/NEWS.Debian0000644000000000000000000000066311716170764011065 0ustar micro-httpd (20051212-5) unstable; urgency=low The binary name has changed from micro_httpd to the micro-httpd. If you have hand written /etc/inetd.conf or /etc/xinet.d/* entry for previous version, please change the binary name. The package now installs /etc/inetd.conf entry automatically, but only if it is not yet occupied by another 'www' entry. -- Jari Aalto Thu, 25 Jan 2007 23:15:19 +0200 debian/changelog0000644000000000000000000001566711733276710011066 0ustar micro-httpd (20051212-15) unstable; urgency=low * debian/rules - Enable all hardening flags. - Use DEB_*_MAINT_* variables. -- Jari Aalto Sat, 24 Mar 2012 03:54:48 -0400 micro-httpd (20051212-14) unstable; urgency=low * debian/compat - Update to 9 * debian/control - (Build-Depends): Update to debhelper 9. - (Standards-Version): Update to 3.9.3.1. * debian/copyright - Update to format 1.0. * debian/rules - Delete rules no longer used. - (override_dh_auto_build): New. Use hardened CFLAGS. http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags -- Jari Aalto Wed, 21 Mar 2012 05:43:27 -0400 micro-httpd (20051212-13) unstable; urgency=low * debian/compat - Update to 8. * debian/control - (Build-Depends): Update to debhelper 8. - (Standards-Version): update to 3.9.1. * debian/micro-httpd.{postinst,prerm} - Use /stc/init.d script if invoke-rc.d is not available. See LP#394949. -- Jari Aalto Mon, 25 Oct 2010 17:35:49 +0300 micro-httpd (20051212-12) unstable; urgency=low * Move to format: 3.0 (quilt). * debian/clean - Move content from debian/rules for dh(1). * debian/control - (Build-Depends): Remove dpatch. - (Depends): add ${misc:Depends} for debhelper. - (Standards-Version): update to 3.8.3. - (Section) [source]: Correct to httpd. - (Section) [binary]: Remove duplicate header (lintian). * debian/copyright - Use FSF URL (FSF recommendation). * debian/micro-httpd.8.pod - Add copyright. * debian/micro-httpd.manpages - Move content from debian/rules for dh(1). * debian/README.source - Delete, obsoleted by format 3.0. * debian/patches - Convert to quilt. * debian/rules - Remove dpatch. - Remove rules obsoleted by dh(1). * debian/source/format - New file. -- Jari Aalto Sat, 19 Dec 2009 16:41:06 +0200 micro-httpd (20051212-11) unstable; urgency=low * debian/compat: update to 7. * debian/control - (Build-Depends): update debhelper 7. - (Section): change web to httpd as per http://news.gmane.org/find-root.php?message_id=%3c87r60yiwu7.fsf%40vorlon.ganneff.de%3e - (Standards-Version): Update to 3.8.2. * debian/micro-httpd.postinst - (entry): Check for port name 'http'; do not run as root, but nobody:www-data (Closes: #517705). - (InetdName): No default value (Closes: #535203). * debian/micro-httpd.prerm - (InetdName): No default value. * debian/rules - (install): add dh_lintian. * debian/*.8 - Delete. Generated from *.pod. * debian/*.mk - Update variables and make macros. * debian/*.overrides - update-inetd is not called without checks. -- Jari Aalto Sat, 08 Aug 2009 23:00:55 +0000 micro-httpd (20051212-10) unstable; urgency=low * debian/README.Debian-source: - New file. Epxlain debian/*.8. * debian/*.8 - New file generated form *.8.pod. Original manual page is no longer used. * debian/control: - (Description): Make more compact. - (Depends): Add alternatives 'micro-inetd | netcat-traditional' Closes: #482082. Remove unused ${misc:Depends}. - (Homepage): New field. - (Standards-Version): Update to 3.8.0. - (Suggests): move micro-inetd to 'Depends:' alternatives. - (Vcs-*): Add new fields. * debian/micro-httpd.{postinst,prerm}: - Check if update-inetd command exists (superserver is not requirement). - Set PATH. - (IsInetd): New. - (MainInetd): New. * debian/rules: - (man): New target. - (install): Adjust install calls - (binary-arch): Install manual page form debian/*.8 * debian/debian-vars.mk - New file -- Jari Aalto Sun, 26 Oct 2008 12:14:05 +0300 micro-httpd (20051212-9) unstable; urgency=low * debian/control: - (Standards-Version): 3.7.3 * debian/patches: - (12_micro_httpd.8--hyphen-fix.dpatch): New file. Fix hyphenation in manual page. - (30_makefile-strip-fix.dpatch): Add description (lintian fix). Closes #437563 -- Jari Aalto Tue, 11 Dec 2007 11:04:12 +0000 micro-httpd (20051212-8) unstable; urgency=low * debian/copyright: - Update to latest dh-make template (formatting). * debian/rules: (clean): - Check Makefile before running clean (lintian fix). * debian: micro-httpd.{prerm,postinst}: - (InetdName): Support rlinetd (Closes: #454655) - Remove &> bashism (lintian fix). * debian/watch: - New file -- Jari Aalto Fri, 07 Dec 2007 11:58:02 +0000 micro-httpd (20051212-7) unstable; urgency=low * debian/control: (Depends): replaced update-inetd with openbsd-inetd | inet-superserver. * debian/patches: (30): Added *.swf Shockwave support. Patch by Nick Schmalenberger . Thanks. -- Jari Aalto Sun, 29 Jul 2007 14:40:45 +0300 micro-httpd (20051212-6) unstable; urgency=low * ACK NMU diff by Luk Claes * debian/dirs: Removed. Moved directory creation xto debian/rules. * debian/patches/20_micro_httpd.c-utf-8.patch: New file. Changed charset=iso-8859-1 to utf-8. Patch thanks to Nick Schmalenberger -- Jari Aalto Wed, 13 Jun 2007 12:44:08 +0300 micro-httpd (20051212-5.1) unstable; urgency=high * Non-maintainer upload during BSP. * Add dependency on update-inetd: it is used in postinst (Closes: #417017). -- Luk Claes Thu, 17 May 2007 01:27:33 +0200 micro-httpd (20051212-5) unstable; urgency=low * New maintainer (Closes: #407661). * Added inetd installation (Closes: #297450). * debian/rules: install binary with same name as package. -- Jari Aalto Thu, 25 Jan 2007 22:00:13 +0200 micro-httpd (20051212-4) unstable; urgency=low * Orphaning package. -- Daniel Baumann Sat, 20 Jan 2007 12:23:00 +0100 micro-httpd (20051212-3) unstable; urgency=low * hrm, I'm too lazy to change the address in control :( -- Daniel Baumann Mon, 14 Aug 2006 14:24:00 +0200 micro-httpd (20051212-2) unstable; urgency=low * New email address. * Removed dependency on inetd packages (Closes: #382679). * Bumped policy version. -- Daniel Baumann Mon, 14 Aug 2006 14:14:00 +0200 micro-httpd (20051212-1) unstable; urgency=low * New upstream release. -- Daniel Baumann Sat, 22 Apr 2006 18:27:00 +0100 micro-httpd (20050629-1) unstable; urgency=low * New upstream release (Closes: #336222). * Bumped policy version. * Minor formal cleanups. -- Daniel Baumann Sat, 5 Nov 2005 13:07:00 +0100 micro-httpd (20011214-1) unstable; urgency=low * Initial Release. * Makefile rewritten. -- Daniel Baumann Sun, 5 Dec 2004 20:12:42 +0100 debian/watch0000644000000000000000000000011611716170764010227 0ustar version=3 http://www.acme.com/software/micro_httpd/ .*micro_httpd_(.+).tar.gz debian/rules0000755000000000000000000000152611733135553010260 0ustar #!/usr/bin/make -f PACKAGE = micro-httpd BIN = micro_httpd include debian/debian-vars.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed man: # target: man -- convert *.pod to manual page $(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) \ MANSECT=8 makeman override_dh_auto_build: man # Notify Makefile about compilation. We skip the *.o step. touch micro_httpd.o $(CC) $(CFLAGS) $(CPPFLAGS) micro_httpd.c $(LDFLAGS) -o $(BIN) override_dh_auto_install: install -d -m 0755 $(SBINDIR) $(MAN8DIR) $(MAKE) install BINDIR=$(SBINDIR) MANDIR=$(MAN8DIR) # rename binary mv $(SBINDIR)/$(BIN) $(SBINDIR)/$(PACKAGE) # replace original manual page rm -f $(MAN8DIR)/* $(INSTALL_DATA) debian/*.8 $(MAN8DIR) %: dh $@ .PHONY: man # End of file debian/micro-httpd.prerm0000755000000000000000000000217511716170764012511 0ustar #!/bin/sh set -e PATH="/sbin:/bin:/usr/sbin:/usr/bin" PACKAGE=$(basename $0 | sed 's/\..*//') pkgdir=/usr/share/$PACKAGE conf=/etc/inetd.conf port="www" entry= Debhelper () { : #DEBHELPER# } Which () { which "$1" > /dev/null 2>&1 } Die () { echo "$0: $*" >&2 exit 1 } IsInetd () { [ -x /usr/sbin/update-inetd ] } IsInetdConf () { [ -f $conf ] } InetdName () { local name= if [ -f /etc/init.d/inetutils-inetd ]; then name=inetutils-inetd elif [ -f /etc/init.d/openbsd-inetd ]; then name="openbsd-inetd" elif [ -f /etc/init.d/rlinetd ]; then name="rlinetd" fi [ ! "$name" ] || echo $name } CallInetd () { local name=$1 local cmd=$2 [ "$cmd" ] || return 0 if Which invoke-rc.d ; then invoke-rc.d $name $cmd else /etc/init.d/$name $cmd fi } MainInetd () { if [ "$1" = "remove" ]; then echo "$0: removing $conf entry" >&2 update-inetd --group STANDARD --remove "$port.*$PACKAGE" local name=$(InetdName) CallInetd $name reload fi } Main () { if IsInetd ; then MainInetd "$@" fi Debhelper } Main "$@" # End of file debian/copyright0000644000000000000000000000324211732317254011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: micro-httpd Upstream-Contact: Jef Poskanzer Source: http://www.acme.com/software/micro_httpd Files: * Copyright: 1999-2005 Jef Poskanzer License: BSD-2-Clause Files: debian/* Copyright: 2009-2012 Jari Aalto 2004-2007 Daniel Baumann License: BSD-2-Clause License: BSD-2-Clause 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. debian/source/0000755000000000000000000000000011716170764010500 5ustar debian/source/format0000644000000000000000000000001411716170764011706 0ustar 3.0 (quilt) debian/pod2man.mk0000644000000000000000000000345311716171126011067 0ustar # pod2man.mk -- Makefile portion to convert *.pod files to manual pages # # Copyright information # # Copyright (C) 2008-2010 Jari Aalto # # License # # 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, see . # # Description # # Convert *.pod files to manual pages. Add this to Makefile: # # PACKAGE = package # # man: # make -f pod2man.mk PACKAGE=$(PACKAGE) makeman # # build: man ifneq (,) This makefile requires GNU Make. endif # This variable *must* be set when called PACKAGE ?= package # Optional variables to set MANSECT ?= 1 PODCENTER ?= User Commands PODDATE ?= $$(date "+%Y-%m-%d") # Directories MANSRC ?= MANDEST ?= $(MANSRC) MANPOD ?= $(MANSRC)$(PACKAGE).$(MANSECT).pod MANPAGE ?= $(MANDEST)$(PACKAGE).$(MANSECT) POD2MAN ?= pod2man POD2MAN_FLAGS ?= --utf8 makeman: $(MANPAGE) $(MANPAGE): $(MANPOD) # make target - create manual page from a *.pod page podchecker $(MANPOD) LC_ALL= LANG=C $(POD2MAN) $(POD2MAN_FLAGS) \ --center="$(PODCENTER)" \ --date="$(PODDATE)" \ --name="$(PACKAGE)" \ --section="$(MANSECT)" \ $(MANPOD) \ | sed 's,[Pp]erl v[0-9.]\+,$(PACKAGE),' \ > $(MANPAGE) && \ rm -f pod*.tmp # End of of Makefile part debian/clean0000644000000000000000000000001711716170764010203 0ustar debian/*.[0-9]