summaryrefslogtreecommitdiff
path: root/www/micro_httpd
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-01-09 09:44:55 +0000
committerjmmv <jmmv@pkgsrc.org>2004-01-09 09:44:55 +0000
commit844da9b77631ba25306cebc2ee86213a9cb3b000 (patch)
treea7767511e07ded49aff3a53a2f16f4bd7a63370a /www/micro_httpd
parent55c72b7c3146352dac8146c8284ad4c4e01de0c0 (diff)
downloadpkgsrc-844da9b77631ba25306cebc2ee86213a9cb3b000.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.
Diffstat (limited to 'www/micro_httpd')
-rw-r--r--www/micro_httpd/DESCR11
-rw-r--r--www/micro_httpd/Makefile24
-rw-r--r--www/micro_httpd/PLIST3
-rw-r--r--www/micro_httpd/distinfo5
-rw-r--r--www/micro_httpd/patches/patch-aa16
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
+