2021-01-11 08:54:33 +01:00
|
|
|
{lib, stdenv, fetchurl, openssh}:
|
2010-05-27 21:43:57 +02:00
|
|
|
|
2015-03-09 19:26:35 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2021-02-02 14:29:54 +01:00
|
|
|
pname = "autossh";
|
|
|
|
version = "1.4g";
|
2019-03-16 16:53:49 +01:00
|
|
|
|
2012-07-25 22:28:58 +02:00
|
|
|
src = fetchurl {
|
2021-02-02 14:29:54 +01:00
|
|
|
url = "http://www.harding.motd.ca/autossh/${pname}-${version}.tgz";
|
2019-01-24 22:03:05 +01:00
|
|
|
sha256 = "0xqjw8df68f4kzkns5gcah61s5wk0m44qdk2z1d6388w6viwxhsz";
|
2012-07-25 22:28:58 +02:00
|
|
|
};
|
2019-03-16 16:53:49 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export ac_cv_func_malloc_0_nonnull=yes
|
|
|
|
export ac_cv_func_realloc_0_nonnull=yes
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ openssh ];
|
|
|
|
|
2021-02-02 14:29:54 +01:00
|
|
|
installPhase = ''
|
2012-07-25 22:28:58 +02:00
|
|
|
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
|
|
|
|
'';
|
2019-03-16 16:53:49 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.harding.motd.ca/autossh/";
|
2012-07-25 22:28:58 +02:00
|
|
|
description = "Automatically restart SSH sessions and tunnels";
|
2021-02-02 14:29:54 +01:00
|
|
|
license = licenses.bsd1;
|
2015-12-26 22:46:34 +01:00
|
|
|
platforms = platforms.unix;
|
2015-03-09 19:26:35 +01:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2012-07-25 22:28:58 +02:00
|
|
|
};
|
2010-05-27 21:43:57 +02:00
|
|
|
}
|