2014-04-15 09:54:58 +02:00
|
|
|
{ stdenv, fetchurl, pcre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "leafnode-2.0.0.alpha20121101a.12";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://home.pages.de/~mandree/leafnode/beta/leafnode-2.0.0.alpha20121101a.tar.bz2";
|
|
|
|
sha256 = "096w4gxj08m3vwmyv4sxpmbl8dn6mzqfmrhc32jgyca6qzlrdin8";
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = "--enable-runas-user=nobody";
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
# The is_validfqdn is far too restrictive, and only allows
|
|
|
|
# Internet-facing servers to run. In order to run leafnode via
|
|
|
|
# localhost only, we need to disable this check.
|
|
|
|
sed -i validatefqdn.c -e 's/int is_validfqdn(const char \*f) {/int is_validfqdn(const char *f) { return 1;/;'
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ pcre];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://leafnode.sourceforge.net/";
|
|
|
|
description = "Leafnode implements a store & forward NNTP proxy";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-04-15 09:54:58 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-08-21 17:10:32 +02:00
|
|
|
broken = true; # The user check in the configure does not work in a chroot
|
2014-04-15 09:54:58 +02:00
|
|
|
};
|
|
|
|
}
|