2010-05-27 21:43:57 +02:00
|
|
|
{stdenv, fetchurl, openssh}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-10-08 19:02:38 +02:00
|
|
|
name = "autossh-1.4d";
|
2012-07-25 22:28:58 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-10-08 19:02:38 +02:00
|
|
|
url = "http://www.harding.motd.ca/autossh/autossh-1.4d.tgz";
|
|
|
|
sha256 = "05nwvqfyk0kbalwabj4z3xx11i0qdqg6xadzk17ckr5xb3j8y000";
|
2012-07-25 22:28:58 +02: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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.harding.motd.ca/autossh/;
|
|
|
|
description = "Automatically restart SSH sessions and tunnels";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2010-05-27 21:43:57 +02:00
|
|
|
}
|