mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
NetworkManager-strongswan: init at 1.4.0
This commit is contained in:
parent
a40f20f8d4
commit
4094d63dea
|
@ -198,6 +198,9 @@ in {
|
||||||
{ source = "${networkmanager_l2tp}/etc/NetworkManager/VPN/nm-l2tp-service.name";
|
{ source = "${networkmanager_l2tp}/etc/NetworkManager/VPN/nm-l2tp-service.name";
|
||||||
target = "NetworkManager/VPN/nm-l2tp-service.name";
|
target = "NetworkManager/VPN/nm-l2tp-service.name";
|
||||||
}
|
}
|
||||||
|
{ source = "${networkmanager_strongswan}/etc/NetworkManager/VPN/nm-strongswan-service.name";
|
||||||
|
target = "NetworkManager/VPN/nm-strongswan-service.name";
|
||||||
|
}
|
||||||
] ++ optional (cfg.appendNameservers == [] || cfg.insertNameservers == [])
|
] ++ optional (cfg.appendNameservers == [] || cfg.insertNameservers == [])
|
||||||
{ source = overrideNameserversScript;
|
{ source = overrideNameserversScript;
|
||||||
target = "NetworkManager/dispatcher.d/02overridedns";
|
target = "NetworkManager/dispatcher.d/02overridedns";
|
||||||
|
|
34
pkgs/tools/networking/network-manager/strongswan.nix
Normal file
34
pkgs/tools/networking/network-manager/strongswan.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ stdenv, fetchurl, intltool, pkgconfig, networkmanager, procps
|
||||||
|
, gnome3, libgnome_keyring, libsecret }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
pname = "NetworkManager-strongswan";
|
||||||
|
version = "1.4.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://download.strongswan.org/NetworkManager/${name}.tar.bz2";
|
||||||
|
sha256 = "0qfnylg949lkyw1nmyggz2ipgmy154ic5q5ljjcwcgi14r90ys02";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i "s,nm_plugindir=.*,nm_plugindir=$out/lib/NetworkManager," "configure"
|
||||||
|
sed -i "s,nm_libexecdir=.*,nm_libexecdir=$out/libexec," "configure"
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ networkmanager libsecret ]
|
||||||
|
++ (with gnome3; [ gtk libgnome_keyring networkmanagerapplet ]);
|
||||||
|
|
||||||
|
nativeBuildInputs = [ intltool pkgconfig ];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
substituteInPlace "configure" \
|
||||||
|
--replace "/sbin/sysctl" "${procps}/bin/sysctl"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "NetworkManager's strongswan plugin";
|
||||||
|
inherit (networkmanager.meta) platforms;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -2832,6 +2832,8 @@ in
|
||||||
|
|
||||||
networkmanager_openconnect = callPackage ../tools/networking/network-manager/openconnect.nix { };
|
networkmanager_openconnect = callPackage ../tools/networking/network-manager/openconnect.nix { };
|
||||||
|
|
||||||
|
networkmanager_strongswan = callPackage ../tools/networking/network-manager/strongswan.nix { };
|
||||||
|
|
||||||
networkmanagerapplet = newScope gnome2 ../tools/networking/network-manager-applet { };
|
networkmanagerapplet = newScope gnome2 ../tools/networking/network-manager-applet { };
|
||||||
|
|
||||||
newsbeuter = callPackage ../applications/networking/feedreaders/newsbeuter { };
|
newsbeuter = callPackage ../applications/networking/feedreaders/newsbeuter { };
|
||||||
|
|
Loading…
Reference in a new issue