2010-05-27 19:43:57 +00:00
|
|
|
{stdenv, fetchurl, openssh}:
|
|
|
|
|
2015-03-09 18:26:35 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "autossh-1.4e";
|
2012-07-25 20:28:58 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-03-09 18:26:35 +00:00
|
|
|
url = "http://www.harding.motd.ca/autossh/${name}.tgz";
|
|
|
|
sha256 = "0mlicw28vq2jxa0jf0dys5ja75v0fxpjavlq9dpif6bnknji13ly";
|
2012-07-25 20:28:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssh ];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
install -D -m755 autossh $out/bin/autossh || return 1
|
|
|
|
install -D -m644 CHANGES $out/share/doc/autossh/CHANGES || return 1
|
|
|
|
install -D -m644 README $out/share/doc/autossh/README || return 1
|
|
|
|
install -D -m644 autossh.host $out/share/autossh/examples/autossh.host || return 1
|
|
|
|
install -D -m644 rscreen $out/share/autossh/examples/rscreen || return 1
|
|
|
|
install -D -m644 autossh.1 $out/man/man1/autossh.1 || return 1
|
|
|
|
'';
|
|
|
|
|
2015-03-09 18:26:35 +00:00
|
|
|
meta = with stdenv.lib; {
|
2012-07-25 20:28:58 +00:00
|
|
|
homepage = http://www.harding.motd.ca/autossh/;
|
|
|
|
description = "Automatically restart SSH sessions and tunnels";
|
2015-03-09 18:26:35 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2012-07-25 20:28:58 +00:00
|
|
|
};
|
2010-05-27 19:43:57 +00:00
|
|
|
}
|