guix-commits
[Top][All Lists]
Advanced

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

02/06: gnu: rottlog: Set default value for 'packdir'.


From: Ludovic Courtès
Subject: 02/06: gnu: rottlog: Set default value for 'packdir'.
Date: Wed, 7 Sep 2016 09:50:03 +0000 (UTC)

civodul pushed a commit to branch master
in repository guix.

commit 11e7463482cd64789008618a647725ae0b2a81e6
Author: Jan Nieuwenhuizen <address@hidden>
Date:   Wed Sep 7 10:34:48 2016 +0200

    gnu: rottlog: Set default value for 'packdir'.
    
    * gnu/packages/admin.scm (rottlog)[arguments]: Add 'set-packdir' phase.
---
 gnu/packages/admin.scm |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 86fa784..c60ad30 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -736,6 +736,13 @@ over ssh connections.")
                                               "/etc")
                                "--localstatedir=/var")
        #:phases (modify-phases %standard-phases
+                  (add-after 'build 'set-packdir
+                    (lambda _
+                      ;; Set a default location for archived logs.
+                      (substitute* "rc/rc"
+                        (("packdir=\"\"")
+                         "packdir=\"/var/log\""))
+                      #t))
                   (add-after 'install 'install-info
                     (lambda _
                       (zero? (system* "make" "install-info")))))))



reply via email to

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