diff options
author | agc <agc@pkgsrc.org> | 2002-06-18 12:09:25 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2002-06-18 12:09:25 +0000 |
commit | 4310f377b4314c64aa08956bd6c6d52624532770 (patch) | |
tree | 691b642de679d4b9502438591f5bd302fcec3ed2 | |
parent | 6d9acca950f86b47f0a41e2a1c31d919e3e1d173 (diff) | |
download | pkgsrc-4310f377b4314c64aa08956bd6c6d52624532770.tar.gz |
Initial import of lhs-0.1 into the NetBSD Packages Collection.
Provided in PR 17227 by Dawid Szymanski (dawszy@tgr.lubin.edu.pl),
modified slightly by myself.
lhs is a beta version of very simple http server. Only static files
are supported - CGI, PHP and SSI are not allowed. However, there is
support for both IPv6 and SSL. By default it will listen on ports
8000 and 8001 and read files from ${PREFIX}/share/httpd/htdocs and
will not change uid for other unless you use the -u option.
-rw-r--r-- | www/lhs/DESCR | 5 | ||||
-rw-r--r-- | www/lhs/MESSAGE | 7 | ||||
-rw-r--r-- | www/lhs/Makefile | 25 | ||||
-rw-r--r-- | www/lhs/PLIST | 2 | ||||
-rw-r--r-- | www/lhs/distinfo | 7 | ||||
-rw-r--r-- | www/lhs/patches/patch-aa | 15 | ||||
-rw-r--r-- | www/lhs/patches/patch-ab | 15 | ||||
-rw-r--r-- | www/lhs/patches/patch-ac | 13 |
8 files changed, 89 insertions, 0 deletions
diff --git a/www/lhs/DESCR b/www/lhs/DESCR new file mode 100644 index 00000000000..27f503af00e --- /dev/null +++ b/www/lhs/DESCR @@ -0,0 +1,5 @@ +lhs is a beta version of very simple http server. Only static files +are supported - CGI, PHP and SSI are not allowed. However, there is +support for both IPv6 and SSL. By default it will listen on ports +8000 and 8001 and read files from ${PREFIX}/share/httpd/htdocs and +will not change uid for other unless you use the -u option. diff --git a/www/lhs/MESSAGE b/www/lhs/MESSAGE new file mode 100644 index 00000000000..3520c63dfb9 --- /dev/null +++ b/www/lhs/MESSAGE @@ -0,0 +1,7 @@ +================================================================================ +Web files by default should be placed under: + ${PREFIX}/share/httpd/htdocs + +For help use: + ${PREFIX}/sbin/lhs -h +================================================================================ diff --git a/www/lhs/Makefile b/www/lhs/Makefile new file mode 100644 index 00000000000..458038e83ca --- /dev/null +++ b/www/lhs/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/06/18 12:09:25 agc Exp $ +# + +DISTNAME= lhs-0.1 +CATEGORIES= www +MASTER_SITES= ftp://dev.null.pl/pub/ + +MAINTAINER= dawszy@arhea.net +HOMEPAGE= http://dev.null.pl/ +COMMENT= Lightweight HTTP Server, IPv6-aware and SSL-enabled + +WRKSRC= ${WRKDIR}/lhs + +GNU_CONFIGURE= yes + +BUILD_DEFS+= USE_INET6 + +MAKE_ENV+= OPENSSL_ROOT=${BUILDLINK_PREFIX.openssl} +MAKE_ENV+= DEFAULT_ROOT_DIR=${PREFIX}/share/httpd/htdocs + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/lhs ${PREFIX}/sbin/lhs + +.include "../../security/openssl/buildlink.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/lhs/PLIST b/www/lhs/PLIST new file mode 100644 index 00000000000..a6d56b16805 --- /dev/null +++ b/www/lhs/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/06/18 12:09:25 agc Exp $ +sbin/lhs diff --git a/www/lhs/distinfo b/www/lhs/distinfo new file mode 100644 index 00000000000..300001a3b65 --- /dev/null +++ b/www/lhs/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/06/18 12:09:25 agc Exp $ + +SHA1 (lhs-0.1.tar.gz) = 74fbb0a982cd00c668c9f07b7c3c583759f14fd6 +Size (lhs-0.1.tar.gz) = 10665 bytes +SHA1 (patch-aa) = 02c2bdd8e28c2e209ba60fe85065519b128c1eb4 +SHA1 (patch-ab) = 23fef016758618b8b6fdda949c7094aa8256c4fd +SHA1 (patch-ac) = 14b197556274187aefda11c67dd800d5dd58537b diff --git a/www/lhs/patches/patch-aa b/www/lhs/patches/patch-aa new file mode 100644 index 00000000000..b6e430b0de1 --- /dev/null +++ b/www/lhs/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/06/18 12:09:25 agc Exp $ + +--- Makefile.in.orig Sun Feb 25 14:42:39 2001 ++++ Makefile.in Tue Jun 18 12:58:26 2002 +@@ -1,7 +1,7 @@ +-CC = gcc -O2 -Wall +-LIBS = #LIBS# ++CC = gcc -O2 -Wall -DDEFAULT_ROOT_DIR='"${DEFAULT_ROOT_DIR}"' ++LIBS = -L${OPENSSL_ROOT}/lib -Wl,-R${OPENSSL_ROOT}/lib #LIBS# + +-default: lhs ++default all: lhs + + lhs: lhs.c lhs.h content-type.h icons.h + $(CC) lhs.c -o lhs $(LIBS) diff --git a/www/lhs/patches/patch-ab b/www/lhs/patches/patch-ab new file mode 100644 index 00000000000..92f03b1f093 --- /dev/null +++ b/www/lhs/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/06/18 12:09:25 agc Exp $ + +--- lhs.h 2002/06/18 11:49:31 1.1 ++++ lhs.h 2002/06/18 11:50:29 +@@ -7,7 +7,10 @@ + + #define VERSION "lhs/0.1" + ++#ifndef DEFAULT_ROOT_DIR + #define DEFAULT_ROOT_DIR "/home/httpd/html" ++#endif ++ + #define DEFAULT_HTTP_PORT 8000 + #define DEFAULT_HTTPS_PORT 8001 + #define DEFAULT_MAX_SOCKS 50 diff --git a/www/lhs/patches/patch-ac b/www/lhs/patches/patch-ac new file mode 100644 index 00000000000..5a89d7c8f03 --- /dev/null +++ b/www/lhs/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2002/06/18 12:09:25 agc Exp $ + +--- lhs.c 2002/06/18 11:54:40 1.1 ++++ lhs.c 2002/06/18 11:54:05 +@@ -592,7 +592,7 @@ + " -s version set SSL protocol version (default: SSLv2)\n" + " -c filename load certificate file (default: lhs.pem)\n" + #endif +-" -r path set server's root directory (default: /home/httpd/html)\n" ++" -r path set server's root directory (default: " DEFAULT_ROOT_DIR ")\n" + " -u user switch to other user after startup\n" + " -g group change gid to other than user's\n" + " -m socks set number of sockets (default: 50, min: 3)\n" |