libreswan: Fix ExecStopPost paths

main
Janne Heß 2 years ago
parent bb141a865f
commit 3fb4165098
No known key found for this signature in database
GPG Key ID: 69165158F05265DF
  1. 4
      pkgs/tools/networking/libreswan/default.nix

@ -14,6 +14,7 @@
, curl
, nspr
, bash
, runtimeShell
, iproute2
, iptables
, procps
@ -71,8 +72,9 @@ stdenv.mkDerivation rec {
prePatch = ''
# Correct iproute2 and iptables path
sed -e 's|/sbin/ip|${iproute2}/bin/ip|' \
sed -e 's|/sbin/ip|${iproute2}/bin/ip|g' \
-e 's|/sbin/\(ip6\?tables\)|${iptables}/bin/\1|' \
-e 's|/bin/bash|${runtimeShell}|g' \
-i initsystems/systemd/ipsec.service.in \
programs/barf/barf.in \
programs/verify/verify.in

Loading…
Cancel
Save