guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/05: gnu: prosody: Make config and data files visible to 'prosodyctl'.


From: Ludovic Courtès
Subject: 04/05: gnu: prosody: Make config and data files visible to 'prosodyctl'.
Date: Sun, 8 Jan 2017 22:40:41 +0000 (UTC)

civodul pushed a commit to branch master
in repository guix.

commit 84bf2a2e74b3f40e150554d0f8d3bce1986b8089
Author: Clément Lassieur <address@hidden>
Date:   Sun Jan 8 20:08:16 2017 +0100

    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 <address@hidden>
---
 gnu/packages/messaging.scm |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 2192878..2be3b09 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -536,6 +536,14 @@ end-to-end encryption support; XML console.")
              (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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]