strongswan: fix resolvconf plugin

This commit is contained in:
Thomas Strobel 2015-08-05 12:12:09 +02:00
parent 10d10b000a
commit 9011f117f2

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"