gnu: rottlog: Add gawk as an input.
This avoids an issue where rottlog will delete the entire /tmp directory if gawk is not installed. See <https://issues.guix.gnu.org/65793>. * gnu/packages/admin.scm (rottlog): Add gawk input, also update the patch-paths build phase for awk invocations. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
6c72db7314
commit
9aeb9e7cc8
@ -1978,7 +1978,11 @@ at once based on a Perl regular expression.")
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "rc/rc"
|
||||
(("/usr/sbin/sendmail")
|
||||
(search-input-file inputs "/bin/mail")))))
|
||||
(search-input-file inputs "/bin/mail")))
|
||||
(with-fluids ((%default-port-encoding "ISO-8859-1"))
|
||||
(substitute* "src/rottlog"
|
||||
(("awk")
|
||||
(search-input-file inputs "/bin/awk"))))))
|
||||
(add-after 'build 'set-packdir
|
||||
(lambda _
|
||||
;; Set a default location for archived logs.
|
||||
@ -1997,7 +2001,7 @@ at once based on a Perl regular expression.")
|
||||
(lambda _
|
||||
(invoke "make" "install-info"))))))
|
||||
(native-inputs (list autoconf automake texinfo util-linux)) ; for 'cal'
|
||||
(inputs (list coreutils mailutils))
|
||||
(inputs (list coreutils gawk mailutils))
|
||||
(home-page "https://www.gnu.org/software/rottlog/")
|
||||
(synopsis "Log rotation and management")
|
||||
(description
|
||||
|
Loading…
Reference in New Issue
Block a user