2015-02-12 15:21:36 +03:00
|
|
|
{ stdenv, fetchurl, libcap, libconfig, perl, tcp_wrappers }:
|
2015-02-05 02:36:27 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sslh-${version}";
|
|
|
|
version = "1.16";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/yrutschle/sslh/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0xwi2bflvq4phrqjic84xch20jkg3wdys219mw2cy23sjkzk63mb";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = "patchShebangs *.sh";
|
|
|
|
|
2015-02-12 15:21:36 +03:00
|
|
|
buildInputs = [ libcap libconfig perl tcp_wrappers ];
|
2015-02-05 02:36:27 +03:00
|
|
|
|
2015-02-12 15:21:36 +03:00
|
|
|
makeFlags = "USELIBCAP=1 USELIBWRAP=1";
|
2015-02-05 02:36:27 +03:00
|
|
|
|
|
|
|
installFlags = "PREFIX=$(out)";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Applicative Protocol Multiplexer (e.g. share SSH and HTTPS on the same port)";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
homepage = http://www.rutschle.net/tech/sslh.shtml;
|
|
|
|
maintainers = [ maintainers.koral ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|