@@ -70,11 +70,14 @@ stdenv.mkDerivation rec {
7070 ] ++ lib.optional stdenv.isLinux libselinux;
7171
7272 prePatch = ''
73− # Correct iproute2 path
74− sed -e 's|"/sbin/ip"|"${iproute2}/bin/ip"|' \
75− -e 's|"/sbin/iptables"|"${iptables}/bin/iptables"|' \
73+ # Correct iproute2 and iptables path
74+ sed -e 's|/sbin/ip|${iproute2}/bin/ip|' \
75+ -e 's|/sbin/\(ip6\?tables\)|${iptables}/bin/\1|' \
7676 -i initsystems/systemd/ipsec.service.in \
77+ programs/barf/barf.in \
7778 programs/verify/verify.in
79+ sed -e 's|\([[:blank:]]\)\(ip6\?tables\(-save\)\? -\)|\1${iptables}/bin/\2|' \
80+ -i programs/verify/verify.in
7881
7982 # Prevent the makefile from trying to
8083 # reload the systemd daemon or create tmpfiles