summary refs log tree commit diff
path: root/gnu/packages/admin.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2020-05-12 16:47:26 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2020-05-13 00:21:47 +0200
commit6fa393e2b8433f84de61aa87a55f5d167fcffc78 (patch)
treebd0a2743204a5ef8c4d584f0a6ef19d3710e1353 /gnu/packages/admin.scm
parent6f6dbf2ac17fdd16ae87a112088dcaf5d3aff328 (diff)
downloadguix-6fa393e2b8433f84de61aa87a55f5d167fcffc78.tar.gz
gnu: sudo: Use a versioned $(docdir).
* gnu/packages/admin.scm (sudo)[arguments]: Add versioned --docdir to
CONFIGURE-FLAGS.
Diffstat (limited to 'gnu/packages/admin.scm')
-rw-r--r--gnu/packages/admin.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 5369044300..45721acd38 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -1296,7 +1296,10 @@ system administrator.")
     (build-system gnu-build-system)
     (arguments
      `(#:configure-flags
-       (list "--with-logpath=/var/log/sudo.log"
+       (list (string-append "--docdir=" (assoc-ref %outputs "out")
+                            "/share/doc/" ,name "-" ,version)
+
+             "--with-logpath=/var/log/sudo.log"
              "--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
              "--with-vardir=/var/db/sudo"
              "--with-iologdir=/var/log/sudo-io"