Merge pull request #6064 from ktosiek/sstp

Add sstp client.
This commit is contained in:
lethalman 2015-01-31 13:30:08 +01:00
commit 87377cec15
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ stdenv, fetchurl, ppp, libevent, openssl }:
stdenv.mkDerivation rec {
name = "sstp-client-${version}";
version = "1.0.9";
src = fetchurl {
url = "mirror://sourceforge/sstp-client/sstp-client/${version}/sstp-client-${version}.tar.gz";
sha256 = "0kpwywbavmlgid07rk8ff0bxp75bnfa1nc28w4j0pkxjhmja5n6k";
};
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 = [
"--with-openssl=${openssl}"
"--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 ];
};
}

View File

@ -2555,6 +2555,8 @@ let
sshuttle = callPackage ../tools/security/sshuttle { };
sstp = callPackage ../tools/networking/sstp {};
sudo = callPackage ../tools/security/sudo { };
suidChroot = builderDefsPackage (import ../tools/system/suid-chroot) { };