2010-05-27 20:43:57 +01:00
|
|
|
{stdenv, fetchurl, openssh}:
|
|
|
|
|
2015-03-09 18:26:35 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-24 18:34:46 +00:00
|
|
|
name = "autossh-1.4f";
|
2012-07-25 21:28:58 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-03-09 18:26:35 +00:00
|
|
|
url = "http://www.harding.motd.ca/autossh/${name}.tgz";
|
2018-03-24 18:34:46 +00:00
|
|
|
sha256 = "1wpqwa2872nqgqbhnb6nnkrlzpdawd5k69gh1qp68354pvhyawh1";
|
2012-07-25 21:28:58 +01: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 21:28:58 +01:00
|
|
|
homepage = http://www.harding.motd.ca/autossh/;
|
|
|
|
description = "Automatically restart SSH sessions and tunnels";
|
2015-12-26 21:46:34 +00:00
|
|
|
platforms = platforms.unix;
|
2015-03-09 18:26:35 +00:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2012-07-25 21:28:58 +01:00
|
|
|
};
|
2010-05-27 20:43:57 +01:00
|
|
|
}
|