thttpd: New package, version 2.25b.

We already have mini_httpd, but IMHO it is *too* minimal as in not very
flexible in configuration (for example, I haven't found any runtime
configuration for disabling logging), so that's why I decided to add
thttpd, which serves quite well as an ad-hoc HTTPd.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2013-07-29 07:38:59 +02:00
parent cd4b5e1a35
commit b42eb45429
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "thttpd-${version}";
version = "2.25b";
src = fetchurl {
url = "http://acme.com/software/thttpd/${name}.tar.gz";
sha256 = "0q13sfkh6amn5wk0ccbmxq3mnhlm8g5pnyk910fa5xngn449nw87";
};
prePatch = ''
sed -i -e 's/getline/getlineX/' extras/htpasswd.c
'';
preInstall = ''
ensureDir "$out/man/man1"
sed -i -e 's/-o bin -g bin *//' Makefile
sed -i -e '/chgrp/d' extras/Makefile
'';
meta = {
description = "Tiny/turbo/throttling HTTP server";
homepage = "http://www.acme.com/software/thttpd/";
license = stdenv.lib.licenses.bsd2;
};
}

View file

@ -6103,6 +6103,8 @@ let
});
squid = squids.squid31; # has ipv6 support
thttpd = callPackage ../servers/http/thttpd { };
tomcat5 = callPackage ../servers/http/tomcat/5.0.nix { };
tomcat6 = callPackage ../servers/http/tomcat/6.0.nix { };