strongswan: fix up path for modprobe

strongswan uses `modprobe` to load IPSec-related kernel modules.  The
full path needs to be specified to `modprobe` for it to be able to be
found.

(cherry picked from commit 7143062172f6bad877a87c8e239f2421e0a48e2d)
This commit is contained in:
(cdep)illabout
2019-01-17 14:02:36 +09:00
parent d5d5453684
commit 2449f5ce1b
2 changed files with 62 additions and 1 deletions
+6 -1
View File
@@ -1,9 +1,10 @@
{ stdenv, fetchurl
{ stdenv, fetchurl, substituteAll
, pkgconfig, autoreconfHook
, gmp, python, iptables, ldns, unbound, openssl, pcsclite
, openresolv
, systemd, pam
, curl
, kmod
, enableTNC ? false, trousers, sqlite, libxml2
, enableNetworkManager ? false, networkmanager
, libpcap
@@ -40,6 +41,10 @@ stdenv.mkDerivation rec {
./ext_auth-path.patch
./firewall_defaults.patch
./updown-path.patch
(substituteAll {
src = ./modprobe-path.patch;
inherit kmod;
})
];
postPatch = ''