shellinabox: drop
This commit is contained in:
@@ -1,50 +0,0 @@
|
||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pam, openssl, openssh, shadow, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.20";
|
||||
pname = "shellinabox";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "shellinabox";
|
||||
repo = "shellinabox";
|
||||
rev = "v${version}";
|
||||
sha256 = "1hmfayh21cks2lyj572944ll0mmgsxbnj981b3hq3nhdg8ywzjfr";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./shellinabox-minus.patch
|
||||
(fetchpatch {
|
||||
name = "CVE-2018-16789.patch";
|
||||
url = "https://github.com/shellinabox/shellinabox/commit/4f0ecc31ac6f985e0dd3f5a52cbfc0e9251f6361.patch";
|
||||
sha256 = "1mpm6acxdb0fms9pa2b88fx6hp07ph87ahxi82yyqj2m7p79jx7a";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook makeWrapper ];
|
||||
buildInputs = [ pam openssl openssh ];
|
||||
|
||||
# Disable GSSAPIAuthentication errors. Also, paths in certain source files are
|
||||
# hardcoded. Replace the hardcoded paths with correct paths.
|
||||
preConfigure = ''
|
||||
substituteInPlace ./shellinabox/service.c --replace "-oGSSAPIAuthentication=no" ""
|
||||
substituteInPlace ./shellinabox/launcher.c --replace "/usr/games" "${openssh}/bin"
|
||||
substituteInPlace ./shellinabox/service.c --replace "/bin/login" "${shadow}/bin/login"
|
||||
substituteInPlace ./shellinabox/launcher.c --replace "/bin/login" "${shadow}/bin/login"
|
||||
substituteInPlace ./libhttp/ssl.c --replace "/usr/bin" "${openssl.bin}/bin"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/shellinaboxd \
|
||||
--prefix LD_LIBRARY_PATH : ${openssl.out}/lib
|
||||
mkdir -p $out/lib
|
||||
cp shellinabox/* $out/lib
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/shellinabox/shellinabox";
|
||||
description = "Web based AJAX terminal emulator";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ tomberek lihop ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
diff -ru shellinabox-2.14/shellinabox/vt100.jspp shellinabox-2.14.new/shellinabox/vt100.jspp
|
||||
--- shellinabox-2.14/shellinabox/vt100.jspp 2012-04-21 21:30:44.000000000 +0400
|
||||
+++ shellinabox-2.14.new/shellinabox/vt100.jspp 2014-03-27 16:33:31.012344164 +0400
|
||||
@@ -2676,6 +2676,7 @@
|
||||
switch (key) {
|
||||
case 33: /* Page Up */ this.scrollBack(); return;
|
||||
case 34: /* Page Down */ this.scrollFore(); return;
|
||||
+ case 173: /* _ */ ch = this.applyModifiers(95, event); break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
@@ -2738,6 +2739,7 @@
|
||||
case 123: /* F12 */ ch = '\u001B[24~'; break;
|
||||
case 144: /* Num Lock */ return;
|
||||
case 145: /* Scroll Lock */ return;
|
||||
+ case 173: /* - */ ch = this.applyModifiers(45, event); break;
|
||||
case 186: /* ; */ ch = this.applyModifiers(59, event); break;
|
||||
case 187: /* = */ ch = this.applyModifiers(61, event); break;
|
||||
case 188: /* , */ ch = this.applyModifiers(44, event); break;
|
||||
@@ -2882,6 +2884,7 @@
|
||||
case 109: /* - -> _ */ u = 45; s = 95; break;
|
||||
case 111: /* / -> ? */ u = 47; s = 63; break;
|
||||
|
||||
+ case 173: /* - -> _ */ u = 45; s = 95; break;
|
||||
case 186: /* ; -> : */ u = 59; s = 58; break;
|
||||
case 187: /* = -> + */ u = 61; s = 43; break;
|
||||
case 188: /* , -> < */ u = 44; s = 60; break;
|
||||
|
||||
@@ -951,6 +951,7 @@ mapAliases ({
|
||||
seg3d = throw "seg3d has been removed from nixpkgs (2019-11-10)";
|
||||
sepolgen = throw "sepolgen was merged into selinux-python"; # added 2021-11-11
|
||||
shared_mime_info = shared-mime-info; # added 2018-02-25
|
||||
shellinabox = throw "shellinabox has been removed from nixpkgs, as it was unmaintained upstream"; # added 2021-12-15
|
||||
sickbeard = throw "sickbeard has been removed from nixpkgs, as it was unmaintained."; # added 2022-01-01
|
||||
sickrage = throw "sickbeard has been removed from nixpkgs, as it was unmaintained."; # added 2022-01-01
|
||||
sigurlx = throw "sigurlx has been removed (upstream is gone)"; # added 2022-01-24
|
||||
|
||||
@@ -9642,10 +9642,6 @@ with pkgs;
|
||||
|
||||
shout = nodePackages.shout;
|
||||
|
||||
shellinabox = callPackage ../servers/shellinabox {
|
||||
openssl = openssl_1_0_2;
|
||||
};
|
||||
|
||||
shrikhand = callPackage ../data/fonts/shrikhand { };
|
||||
|
||||
shunit2 = callPackage ../tools/misc/shunit2 { };
|
||||
|
||||
Reference in New Issue
Block a user