diff options
author | jmmv <jmmv> | 2004-01-09 09:44:55 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2004-01-09 09:44:55 +0000 |
commit | 69fb26905d7019f02272255936c4e15295f19961 (patch) | |
tree | a7767511e07ded49aff3a53a2f16f4bd7a63370a | |
parent | 72cdbefee4083756f51c21cc911bfbeb942454ef (diff) | |
download | pkgsrc-69fb26905d7019f02272255936c4e15295f19961.tar.gz |
Initial import of micro_httpd, version 20011214:
micro_httpd is a very small HTTP server. It runs from inetd, which means
its performance is poor. But for low-traffic sites, it's 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.
All in 150 lines of code.
Package by Bruce J.A. Nourish from pkgsrc-wip with several changes by me.
-rw-r--r-- | www/micro_httpd/DESCR | 11 | ||||
-rw-r--r-- | www/micro_httpd/Makefile | 24 | ||||
-rw-r--r-- | www/micro_httpd/PLIST | 3 | ||||
-rw-r--r-- | www/micro_httpd/distinfo | 5 | ||||
-rw-r--r-- | www/micro_httpd/patches/patch-aa | 16 |
5 files changed, 59 insertions, 0 deletions
diff --git a/www/micro_httpd/DESCR b/www/micro_httpd/DESCR new file mode 100644 index 00000000000..c47d4e5c99e --- /dev/null +++ b/www/micro_httpd/DESCR @@ -0,0 +1,11 @@ +micro_httpd is a very small HTTP server. It runs from inetd, which means +its performance is poor. But for low-traffic sites, it's 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. + +All in 150 lines of code. diff --git a/www/micro_httpd/Makefile b/www/micro_httpd/Makefile new file mode 100644 index 00000000000..67207278345 --- /dev/null +++ b/www/micro_httpd/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/01/09 09:44:55 jmmv Exp $ + +DISTNAME= micro_httpd_14dec2001 +PKGNAME= micro_httpd-20011214 +WRKSRC= ${WRKDIR}/micro_httpd +CATEGORIES= www +MASTER_SITES= http://www.acme.com/software/micro_httpd/ + +MAINTAINER= bjan+pkgsrc@bjan.freeshell.org +HOMEPAGE= http://www.acme.com/software/micro_httpd/ +COMMENT= Really small HTTP server than runs from inetd(8) + +PKG_INSTALLATION_TYPES= overwrite pkgviews + +USE_BUILDLINK3= yes +NO_CONFIGURE= yes + +INSTALLATION_DIRS= man/man8 sbin + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/micro_httpd ${PREFIX}/sbin/ + ${INSTALL_MAN} ${WRKSRC}/micro_httpd.8 ${PREFIX}/man/man8/ + +.include "../../mk/bsd.pkg.mk" diff --git a/www/micro_httpd/PLIST b/www/micro_httpd/PLIST new file mode 100644 index 00000000000..d1d7a488d76 --- /dev/null +++ b/www/micro_httpd/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/09 09:44:55 jmmv Exp $ +man/man8/micro_httpd.8 +sbin/micro_httpd diff --git a/www/micro_httpd/distinfo b/www/micro_httpd/distinfo new file mode 100644 index 00000000000..8a48122744b --- /dev/null +++ b/www/micro_httpd/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/01/09 09:44:55 jmmv Exp $ + +SHA1 (micro_httpd_14dec2001.tar.gz) = 52a8bd4489424c43055a714ac144d44f8a07f52c +Size (micro_httpd_14dec2001.tar.gz) = 4665 bytes +SHA1 (patch-aa) = c42274a95b90c15926c21c0d6785a8af0f01d192 diff --git a/www/micro_httpd/patches/patch-aa b/www/micro_httpd/patches/patch-aa new file mode 100644 index 00000000000..c42bdfb3159 --- /dev/null +++ b/www/micro_httpd/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/01/09 09:44:55 jmmv Exp $ + +--- Makefile.orig 1999-09-17 09:17:18.000000000 +0200 ++++ Makefile +@@ -1,11 +1,5 @@ + BINDIR = /usr/local/sbin + MANDIR = /usr/local/man/man8 +-CC = gcc +-CFLAGS = -O +-#CFLAGS = -g +-#SYSVLIBS = -lnsl -lsocket +-LDFLAGS = -s ${SYSVLIBS} +-#LDFLAGS = -g ${SYSVLIBS} + + all: micro_httpd + |