2013-07-29 06:38:59 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "thttpd-${version}";
|
2016-03-08 23:57:22 +00:00
|
|
|
version = "2.27";
|
2013-07-29 06:38:59 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://acme.com/software/thttpd/${name}.tar.gz";
|
2016-03-08 23:57:22 +00:00
|
|
|
sha256 = "0ykda5k1zzzag59zbd4bkzj1psavq0xnpy7vpk19rhx7mlvvri5i";
|
2013-07-29 06:38:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i -e 's/getline/getlineX/' extras/htpasswd.c
|
2017-06-26 20:13:41 +01:00
|
|
|
sed -i -e 's/chmod 2755/chmod 755/' extras/Makefile.in
|
2013-07-29 06:38:59 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p "$out/man/man1"
|
2013-07-29 06:38:59 +01:00
|
|
|
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;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-07-29 06:38:59 +01:00
|
|
|
};
|
|
|
|
}
|