gnu: strongswan: Invoke absolute file names in ‘ipsec’ launcher.

* gnu/packages/vpn.scm (strongswan)[arguments]: Include the ‘ipsec’
launcher script in the 'patch-command-file-names phase.
[inputs]: Add coreutils.
This commit is contained in:
Tobias Geerinckx-Rice 2021-06-24 22:18:24 +02:00
parent 66be80fabb
commit d0cc1d6524
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -114,6 +114,10 @@ (define-public strongswan
(modify-phases %standard-phases
(add-before 'build 'patch-command-file-names
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/ipsec/_ipsec.in"
(("cat|kill|sleep|rm|uname" command)
(string-append (assoc-ref inputs "coreutils")
"/bin/" command)))
(substitute* "src/libstrongswan/utils/process.c"
(("/bin/sh")
(string-append (assoc-ref inputs "bash") "/bin/sh")))
@ -179,7 +183,8 @@ (define-public strongswan
;; Use libcap by default.
"--with-capabilities=libcap")))
(inputs
`(("curl" ,curl)
`(("coreutils" ,coreutils)
("curl" ,curl)
("gmp" ,gmp)
("libcap" ,libcap)
("libgcrypt" ,libgcrypt)