gnu: sudo: Support Python plug-ins.

* gnu/packages/admin.scm (sudo)[arguments]: Add ‘--enable-python’ to
CONFIGURE-FLAGS.
[inputs]: Add python and order alphabetically.
This commit is contained in:
Tobias Geerinckx-Rice 2020-05-12 16:58:30 +02:00
parent 6fa393e2b8
commit 452244e670
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -1299,6 +1299,8 @@ (define-public sudo
(list (string-append "--docdir=" (assoc-ref %outputs "out") (list (string-append "--docdir=" (assoc-ref %outputs "out")
"/share/doc/" ,name "-" ,version) "/share/doc/" ,name "-" ,version)
"--enable-python" ; for plug-ins written in ~
"--with-logpath=/var/log/sudo.log" "--with-logpath=/var/log/sudo.log"
"--with-rundir=/var/run/sudo" ; must be cleaned up at boot time "--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
"--with-vardir=/var/db/sudo" "--with-vardir=/var/db/sudo"
@ -1353,9 +1355,10 @@ (define-public sudo
(native-inputs (native-inputs
`(("groff" ,groff))) `(("groff" ,groff)))
(inputs (inputs
`(("linux-pam" ,linux-pam) `(("coreutils" ,coreutils)
("zlib" ,zlib) ("linux-pam" ,linux-pam)
("coreutils" ,coreutils))) ("python" ,python)
("zlib" ,zlib)))
(home-page "https://www.sudo.ws/") (home-page "https://www.sudo.ws/")
(synopsis "Run commands as root") (synopsis "Run commands as root")
(description (description