git.iko.soy/typeable/nixpkgs
on master help sign in
libreswan: fix more binary paths
commit4db154ca619c8da8655e79faabb38c13ff2ad053 authorrnhmjoj <rnhmjoj@inventati.org> dateWed 19 Jan 2022, 11:44 (5 years ago) parent741a585
1 file changed+6−3
pkgs/tools/networking/libreswan/default.nix+6−3
pkgs/tools/networking/libreswan/default.nix+6−3
@@ -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