2014-03-28 11:51:41 +01:00
|
|
|
{ stdenv, fetchurl, pam, openssl, openssh, shadow }:
|
2013-12-07 06:13:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "shellinabox-2.14";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://shellinabox.googlecode.com/files/shellinabox-2.14.tar.gz";
|
|
|
|
sha1 = "9e01f58c68cb53211b83d0f02e676e0d50deb781";
|
|
|
|
};
|
2014-03-28 11:51:41 +01:00
|
|
|
|
2013-12-07 06:13:35 +01:00
|
|
|
buildInputs = [pam openssl openssh];
|
|
|
|
|
2014-03-28 11:51:41 +01:00
|
|
|
patches = [ ./shellinabox-minus.patch ];
|
|
|
|
|
2013-12-07 06:13:35 +01:00
|
|
|
# Disable GSSAPIAuthentication errors as well as correct hardcoded path. Take /usr/games's place.
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace ./shellinabox/service.c --replace "-oGSSAPIAuthentication=no" ""
|
|
|
|
substituteInPlace ./shellinabox/launcher.c --replace "/usr/games" "${openssh}/bin"
|
2014-03-28 11:51:41 +01:00
|
|
|
substituteInPlace ./shellinabox/service.c --replace "/bin/login" "${shadow}/bin/login"
|
|
|
|
substituteInPlace ./shellinabox/launcher.c --replace "/bin/login" "${shadow}/bin/login"
|
2013-12-07 06:13:35 +01:00
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
homepage = https://code.google.com/p/shellinabox;
|
|
|
|
description = "Web based AJAX terminal emulator";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-12-07 06:13:35 +01:00
|
|
|
maintainers = [stdenv.lib.maintainers.tomberek];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|