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:
parent
66be80fabb
commit
d0cc1d6524
1 changed files with 6 additions and 1 deletions
|
@ -114,6 +114,10 @@ endpoints.")
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'build 'patch-command-file-names
|
(add-before 'build 'patch-command-file-names
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(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"
|
(substitute* "src/libstrongswan/utils/process.c"
|
||||||
(("/bin/sh")
|
(("/bin/sh")
|
||||||
(string-append (assoc-ref inputs "bash") "/bin/sh")))
|
(string-append (assoc-ref inputs "bash") "/bin/sh")))
|
||||||
|
@ -179,7 +183,8 @@ endpoints.")
|
||||||
;; Use libcap by default.
|
;; Use libcap by default.
|
||||||
"--with-capabilities=libcap")))
|
"--with-capabilities=libcap")))
|
||||||
(inputs
|
(inputs
|
||||||
`(("curl" ,curl)
|
`(("coreutils" ,coreutils)
|
||||||
|
("curl" ,curl)
|
||||||
("gmp" ,gmp)
|
("gmp" ,gmp)
|
||||||
("libcap" ,libcap)
|
("libcap" ,libcap)
|
||||||
("libgcrypt" ,libgcrypt)
|
("libgcrypt" ,libgcrypt)
|
||||||
|
|
Reference in a new issue