2009-09-07 13:45:06 +00:00
|
|
|
{ stdenv, fetchurl, gperf, guile, gmp, zlib, liboop, readline, gnum4, pam
|
|
|
|
, nettools, lsof, procps }:
|
2008-02-12 10:51:44 +00:00
|
|
|
|
2009-09-08 10:31:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2008-02-12 10:51:44 +00:00
|
|
|
name = "lsh-2.0.4";
|
|
|
|
src = fetchurl {
|
2009-09-08 10:29:22 +00:00
|
|
|
url = "mirror://gnu/lsh/${name}.tar.gz";
|
2008-02-12 10:51:44 +00:00
|
|
|
sha256 = "614b9d63e13ad3e162c82b6405d1f67713fc622a8bc11337e72949d613713091";
|
|
|
|
};
|
|
|
|
|
2009-09-08 10:29:22 +00:00
|
|
|
patches = [ ./pam-service-name.patch ./lshd-no-root-login.patch ];
|
2009-03-15 14:11:21 +00:00
|
|
|
|
2009-09-07 13:45:06 +00: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"
|
2012-04-05 16:26:44 +00:00
|
|
|
|
|
|
|
# Skip the `configure' script that checks whether /dev/ptmx & co. work as
|
|
|
|
# expected, because it relies on impurities (for instance, /dev/pts may
|
|
|
|
# be unavailable in chroots.)
|
|
|
|
export lsh_cv_sys_unix98_ptys=yes
|
2009-09-07 13:45:06 +00:00
|
|
|
'';
|
|
|
|
|
2016-03-28 16:59:34 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-std=gnu90";
|
|
|
|
|
2009-09-07 13:45:06 +00:00
|
|
|
buildInputs = [ gperf guile gmp zlib liboop readline gnum4 pam ];
|
2008-02-12 10:51:44 +00:00
|
|
|
|
|
|
|
meta = {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "GPL'd implementation of the SSH protocol";
|
2009-03-15 14:11:21 +00: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 13:45:06 +00:00
|
|
|
|
2008-02-12 10:51:44 +00:00
|
|
|
homepage = http://www.lysator.liu.se/~nisse/lsh/;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2009-09-07 13:45:06 +00:00
|
|
|
|
2015-01-13 21:33:24 +00:00
|
|
|
maintainers = [ ];
|
2014-08-08 15:58:34 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2008-02-12 10:51:44 +00:00
|
|
|
};
|
|
|
|
}
|