2014-04-15 07:54:58 +00:00
|
|
|
{ stdenv, fetchurl, pcre }:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2014-04-15 07:54:58 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--enable-runas-user=nobody" ];
|
2014-04-15 07:54:58 +00:00
|
|
|
|
2017-06-28 19:26:24 +00:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace Makefile.in --replace 02770 0770
|
|
|
|
'';
|
|
|
|
|
2014-09-04 20:45:55 +00:00
|
|
|
preConfigure = ''
|
|
|
|
# configure uses id to check environment; we don't want this check
|
|
|
|
sed -re 's/^ID[=].*/ID="echo whatever"/' -i configure
|
|
|
|
'';
|
|
|
|
|
2014-04-15 07:54:58 +00:00
|
|
|
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 = {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://leafnode.sourceforge.net/;
|
2014-04-15 07:54:58 +00:00
|
|
|
description = "Leafnode implements a store & forward NNTP proxy";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-04-15 07:54:58 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|