Merge pull request #156529 from helsinki-systems/fix/libreswan-poststart

libreswan: Fix ExecStopPost paths
This commit is contained in:
Janne Heß
2022-01-24 16:50:57 +01:00
committed by GitHub
+3 -1
View File
@@ -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