2009-09-07 15:45:06 +02:00
|
|
|
{ stdenv, fetchurl, gperf, guile, gmp, zlib, liboop, readline, gnum4, pam
|
|
|
|
, nettools, lsof, procps }:
|
2008-02-12 11:51:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "lsh-2.0.4";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.lysator.liu.se/~nisse/archive/lsh-2.0.4.tar.gz;
|
|
|
|
sha256 = "614b9d63e13ad3e162c82b6405d1f67713fc622a8bc11337e72949d613713091";
|
|
|
|
};
|
|
|
|
|
2009-03-15 15:11:21 +01:00
|
|
|
patches = [ ./pam-service-name.patch ];
|
|
|
|
|
2009-09-07 15:45:06 +02:00
|
|
|
preConfigure = ''
|
|
|
|
# Patch `lsh-make-seed' so that it can gather enough entropy.
|
|
|
|
sed -i "src/lsh-make-seed.c" \
|
|
|
|
-e "s|/usr/sbin/arp|${nettools}/sbin/arp|g ;
|
|
|
|
s|/usr/bin/netstat|${nettools}/bin/netstat|g ;
|
|
|
|
s|/usr/local/bin/lsof|${lsof}/bin/lsof|g ;
|
|
|
|
s|/bin/vmstat|${procps}/bin/vmstat|g ;
|
|
|
|
s|/bin/ps|${procps}/bin/sp|g ;
|
|
|
|
s|/usr/bin/w|${procps}/bin/w|g ;
|
|
|
|
s|/usr/bin/df|$(type -P df)|g ;
|
|
|
|
s|/usr/bin/ipcs|$(type -P ipcs)|g ;
|
|
|
|
s|/usr/bin/uptime|$(type -P uptime)|g"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ gperf guile gmp zlib liboop readline gnum4 pam ];
|
2008-02-12 11:51:44 +01:00
|
|
|
|
|
|
|
meta = {
|
2008-03-20 15:35:03 +01:00
|
|
|
description = "GNU lsh, a GPL'd implementation of the SSH protocol";
|
2009-03-15 15:11:21 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
lsh is a free implementation (in the GNU sense) of the ssh
|
|
|
|
version 2 protocol, currently being standardised by the IETF
|
|
|
|
SECSH working group.
|
|
|
|
'';
|
2009-09-07 15:45:06 +02:00
|
|
|
|
2008-02-12 11:51:44 +01:00
|
|
|
homepage = http://www.lysator.liu.se/~nisse/lsh/;
|
2009-03-15 15:11:21 +01:00
|
|
|
license = "GPLv2+";
|
2009-09-07 15:45:06 +02:00
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2008-02-12 11:51:44 +01:00
|
|
|
};
|
|
|
|
}
|