aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/admin.scm
diff options
context:
space:
mode:
authorLéo Le Bouter <lle-bout@zaclys.net>2020-12-12 09:46:39 +0100
committerLudovic Courtès <ludo@gnu.org>2020-12-27 17:23:40 +0100
commit72861d8ed4d51eebc831a6645943325c8a5bc44a (patch)
tree51662f986288ac1a84d0a8f221ffab28821ec1ad /gnu/packages/admin.scm
parent32568f5b2438f859f54ec22372d08edc0962a329 (diff)
downloadguix-72861d8ed4d51eebc831a6645943325c8a5bc44a.tar
guix-72861d8ed4d51eebc831a6645943325c8a5bc44a.tar.gz
gnu: rottlog: Fix mail reporting.
* gnu/packages/admin.scm (rottlog)[inputs]: Add MAILUTILS. [phases]: In 'patch-paths', replace "/usr/sbin/sendmail" with 'mail' from Mailutils. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/admin.scm')
-rw-r--r--gnu/packages/admin.scm10
1 files changed, 7 insertions, 3 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index fc4f6675a1..e45e228624 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -107,6 +107,7 @@
#:use-module (gnu packages libusb)
#:use-module (gnu packages linux)
#:use-module (gnu packages lua)
+ #:use-module (gnu packages mail)
#:use-module (gnu packages man)
#:use-module (gnu packages mcrypt)
#:use-module (gnu packages mpi)
@@ -1343,9 +1344,11 @@ at once based on a Perl regular expression.")
#:phases (modify-phases %standard-phases
(add-after 'unpack 'patch-paths
- (lambda _
+ (lambda* (#:key inputs #:allow-other-keys)
(substitute* "rc/rc"
- (("/usr/sbin/sendmail") "sendmail"))
+ (("/usr/sbin/sendmail")
+ (string-append (assoc-ref inputs "mailutils")
+ "/bin/mail")))
#t))
(add-after 'unpack 'fix-configure
(lambda* (#:key inputs native-inputs #:allow-other-keys)
@@ -1384,7 +1387,8 @@ at once based on a Perl regular expression.")
(native-inputs `(("texinfo" ,texinfo)
("automake" ,automake)
("util-linux" ,util-linux))) ; for 'cal'
- (inputs `(("coreutils*" ,coreutils)))
+ (inputs `(("coreutils*" ,coreutils)
+ ("mailutils" ,mailutils)))
(home-page "https://www.gnu.org/software/rottlog/")
(synopsis "Log rotation and management")
(description