@@ -0,0 +1,32 @@
1+{ stdenv, fetchurl, ppp, libevent, openssl }:
2+
3+stdenv.mkDerivation rec {
4+ name = "sstp-client-${version}";
5+ version = "1.0.9";
6+
7+ src = fetchurl {
8+ url = "mirror://sourceforge/sstp-client/sstp-client/${version}/sstp-client-${version}.tar.gz";
9+ sha256 = "0kpwywbavmlgid07rk8ff0bxp75bnfa1nc28w4j0pkxjhmja5n6k";
10+ };
11+
12+ patchPhase =
13+ ''
14+ sed 's,/usr/sbin/pppd,${ppp}/sbin/pppd,' -i src/sstp-pppd.c
15+ sed "s,sstp-pppd-plugin.so,$out/lib/pppd/sstp-pppd-plugin.so," -i src/sstp-pppd.c
16+ '';
17+
18+ configureFlags = [
19+ "--with-openssl=${openssl}"
20+ "--with-runtime-dir=/run/sstpc"
21+ "--with-pppd-plugin-dir=$(out)/lib/pppd"
22+ ];
23+
24+ buildInputs = [ libevent openssl ppp ];
25+
26+ meta = {
27+ description = "SSTP client for Linux";
28+ homepage = http://sstp-client.sourceforge.net/;
29+ platforms = stdenv.lib.platforms.linux;
30+ maintainers = [ stdenv.lib.maintainers.ktosiek ];
31+ };
32+}