2015-01-30 00:33:13 +01:00
|
|
|
{ stdenv, fetchurl, ppp, libevent, openssl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sstp-client-${version}";
|
2015-06-08 00:23:46 +02:00
|
|
|
version = "1.0.10";
|
2015-01-30 00:33:13 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/sstp-client/sstp-client/${version}/sstp-client-${version}.tar.gz";
|
2015-06-08 00:23:46 +02:00
|
|
|
sha256 = "096lw3a881hjqnffms3bl077pjyq77870kjaf83chhjcakc8942z";
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ libevent openssl ppp ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SSTP client for Linux";
|
|
|
|
homepage = http://sstp-client.sourceforge.net/;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ktosiek ];
|
|
|
|
};
|
|
|
|
}
|