networkmanager_fortisslvpn: init at 1.2.4

This commit is contained in:
Stefan Lau 2017-05-19 14:42:36 +02:00 committed by Stefan Lau
parent 0f59c9ce83
commit a3696aa090
5 changed files with 47 additions and 2 deletions

View file

@ -124,7 +124,7 @@ in {
type = types.attrsOf types.package;
default = { inherit networkmanager modemmanager wpa_supplicant
networkmanager_openvpn networkmanager_vpnc
networkmanager_openconnect
networkmanager_openconnect networkmanager_fortisslvpn
networkmanager_pptp networkmanager_l2tp; };
internal = true;
};
@ -222,6 +222,9 @@ in {
{ source = "${networkmanager_openconnect}/etc/NetworkManager/VPN/nm-openconnect-service.name";
target = "NetworkManager/VPN/nm-openconnect-service.name";
}
{ source = "${networkmanager_fortisslvpn}/etc/NetworkManager/VPN/nm-fortisslvpn-service.name";
target = "NetworkManager/VPN/nm-fortisslvpn-service.name";
}
{ source = "${networkmanager_pptp}/etc/NetworkManager/VPN/nm-pptp-service.name";
target = "NetworkManager/VPN/nm-pptp-service.name";
}

View file

@ -186,7 +186,7 @@ in {
networking.networkmanager.basePackages =
{ inherit (pkgs) networkmanager modemmanager wpa_supplicant;
inherit (gnome3) networkmanager_openvpn networkmanager_vpnc
networkmanager_openconnect networkmanager_pptp
networkmanager_openconnect networkmanager_fortisslvpn networkmanager_pptp
networkmanager_l2tp; };
# Needed for themes and backgrounds

View file

@ -212,6 +212,10 @@ let
inherit gnome3;
};
networkmanager_fortisslvpn = pkgs.networkmanager_fortisslvpn.override {
inherit gnome3;
};
networkmanager_l2tp = pkgs.networkmanager_l2tp.override {
inherit gnome3;
};

View file

@ -0,0 +1,36 @@
{ stdenv, fetchurl, openfortivpn, automake, autoconf, libtool, intltool, pkgconfig,
networkmanager, ppp, lib, libsecret, withGnome ? true, gnome3, procps, kmod }:
stdenv.mkDerivation rec {
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
pname = "NetworkManager-fortisslvpn";
major = "1.2";
version = "${major}.4";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${major}/${pname}-${version}.tar.xz";
sha256 = "0wsbj5lvf9l1w8k5nmaqnzmldilh482bn4z4k8a3wnm62xfxgscr";
};
buildInputs = [ openfortivpn networkmanager ppp libtool libsecret ]
++ stdenv.lib.optionals withGnome [ gnome3.gtk gnome3.libgnome_keyring gnome3.gconf gnome3.networkmanagerapplet ];
nativeBuildInputs = [ automake autoconf intltool pkgconfig ];
configureFlags = [
"${if withGnome then "--with-gnome" else "--without-gnome"}"
"--disable-static"
"--localstatedir=/tmp"
];
preConfigure = ''
substituteInPlace "src/nm-fortisslvpn-service.c" \
--replace "/bin/openfortivpn" "${openfortivpn}/bin/openfortivpn"
'';
meta = {
description = "NetworkManager's FortiSSL plugin";
inherit (networkmanager.meta) maintainers platforms;
};
}

View file

@ -3192,6 +3192,8 @@ with pkgs;
networkmanager_openconnect = callPackage ../tools/networking/network-manager/openconnect.nix { };
networkmanager_fortisslvpn = callPackage ../tools/networking/network-manager/fortisslvpn.nix { };
networkmanager_strongswan = callPackage ../tools/networking/network-manager/strongswan.nix { };
networkmanagerapplet = newScope gnome2 ../tools/networking/network-manager-applet { };