2019-04-01 18:09:17 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, ppp, libevent, openssl }:
|
2015-01-30 00:33:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "sstp-client";
|
2020-10-16 00:50:24 +02:00
|
|
|
version = "1.0.13";
|
2015-01-30 00:33:13 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-10-16 00:50:24 +02:00
|
|
|
url = "mirror://sourceforge/sstp-client/sstp-client/sstp-client-${version}.tar.gz";
|
|
|
|
sha256 = "06rjyncmgdy212xf9l9z6mfh4gdmgk7l4y841gb8lpbrl3y5h4ln";
|
2015-01-30 00:33:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase =
|
|
|
|
''
|
|
|
|
sed 's,/usr/sbin/pppd,${ppp}/sbin/pppd,' -i src/sstp-pppd.c
|
|
|
|
sed "s,sstp-pppd-plugin.so,$out/lib/pppd/sstp-pppd-plugin.so," -i src/sstp-pppd.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
2016-04-16 19:44:32 +02:00
|
|
|
"--with-openssl=${openssl.dev}"
|
2015-01-30 00:33:13 +01:00
|
|
|
"--with-runtime-dir=/run/sstpc"
|
|
|
|
"--with-pppd-plugin-dir=$(out)/lib/pppd"
|
|
|
|
];
|
|
|
|
|
2019-04-01 18:09:17 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2015-01-30 00:33:13 +01:00
|
|
|
buildInputs = [ libevent openssl ppp ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SSTP client for Linux";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://sstp-client.sourceforge.net/";
|
2015-01-30 00:33:13 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ktosiek ];
|
2018-08-04 16:59:43 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2015-01-30 00:33:13 +01:00
|
|
|
};
|
|
|
|
}
|