@@ -42,11 +42,11 @@ in
4242
4343stdenv.mkDerivation rec {
4444 pname = "libreswan";
45− version = "4.5";
45+ version = "4.6";
4646
4747 src = fetchurl {
4848 url = "https://download.libreswan.org/${pname}-${version}.tar.gz";
49− sha256 = "18whvmaxqfmaqbmq72calyzk21wyvxa0idddcsxd8x36vhdza0q7";
49+ sha256 = "1zsnsfx18pf5dy1p4jva2sfl0bdfx5y9ls54f9bp70m64r46yf96";
5050 };
5151
5252 strictDeps = true;
@@ -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