mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: prosody: Make config and data files visible to 'prosodyctl'.
* gnu/packages/messaging.scm (prosody)[arguments]: Add a 'fix-makefile' phase. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
5b4946180e
commit
84bf2a2e74
1 changed files with 8 additions and 0 deletions
|
@ -536,6 +536,14 @@ (define-public prosody
|
|||
(substitute* "configure"
|
||||
(("exit 1") ""))
|
||||
#t))
|
||||
(add-after 'unpack 'fix-makefile
|
||||
(lambda _
|
||||
(substitute* "Makefile"
|
||||
;; prosodyctl needs to read the configuration file.
|
||||
(("^INSTALLEDCONFIG =.*") "INSTALLEDCONFIG = /etc/prosody\n")
|
||||
;; prosodyctl needs a place to put auto-generated certificates.
|
||||
(("^INSTALLEDDATA =.*") "INSTALLEDDATA = /var/lib/prosody\n"))
|
||||
#t))
|
||||
(add-after 'install 'wrap-programs
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
;; Make sure all executables in "bin" find the required Lua
|
||||
|
|
Loading…
Reference in a new issue