gnu: rottlog: Set default value for 'packdir'.

* gnu/packages/admin.scm (rottlog)[arguments]: Add 'set-packdir' phase.
This commit is contained in:
Jan Nieuwenhuizen 2016-09-07 10:34:48 +02:00 committed by Ludovic Courtès
parent 8dc0ecae6c
commit 11e7463482
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -736,6 +736,13 @@ (define-public rottlog
"/etc") "/etc")
"--localstatedir=/var") "--localstatedir=/var")
#:phases (modify-phases %standard-phases #: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 (add-after 'install 'install-info
(lambda _ (lambda _
(zero? (system* "make" "install-info"))))))) (zero? (system* "make" "install-info")))))))