Merge pull request #9120 from ts468/upstream.strongswan

strongswan: fix resolvconf plugin
This commit is contained in:
ts468 2015-08-05 12:23:33 +02:00
commit 661e1016b1

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, gmp, pkgconfig, python, autoreconfHook
, curl, trousers, sqlite, iptables, libxml2
, curl, trousers, sqlite, iptables, libxml2, openresolv
, enableTNC ? false }:
stdenv.mkDerivation rec {
@ -22,6 +22,10 @@ stdenv.mkDerivation rec {
./updown-path.patch
];
postPatch = ''
substituteInPlace src/libcharon/plugins/resolve/resolve_handler.c --replace "/sbin/resolvconf" "${openresolv}/sbin/resolvconf"
'';
configureFlags =
[ "--enable-swanctl" "--enable-cmd"
"--enable-farp" "--enable-dhcp"