gnu: shadow: Add variant with man pages.
* gnu/packages/admin.scm (shadow)[properties]: New field. (shadow-with-man-pages): New variable.
This commit is contained in:
parent
ad85ca0977
commit
fe83583b7f
1 changed files with 18 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2012-2022 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
|
;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
|
||||||
;;; Copyright © 2014, 2015, 2016, 2018, 2019, 2020 Mark H Weaver <mhw@netris.org>
|
;;; Copyright © 2014, 2015, 2016, 2018, 2019, 2020 Mark H Weaver <mhw@netris.org>
|
||||||
;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2020, 2021, 2022 Eric Bavier <bavier@posteo.net>
|
;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2020, 2021, 2022 Eric Bavier <bavier@posteo.net>
|
||||||
|
@ -876,10 +876,27 @@ hostname.")
|
||||||
"Shadow provides a number of authentication-related tools, including:
|
"Shadow provides a number of authentication-related tools, including:
|
||||||
login, passwd, su, groupadd, and useradd.")
|
login, passwd, su, groupadd, and useradd.")
|
||||||
|
|
||||||
|
(properties '((hidden? . #t))) ;see below
|
||||||
|
|
||||||
;; The `vipw' program is GPLv2+.
|
;; The `vipw' program is GPLv2+.
|
||||||
;; libmisc/salt.c is public domain.
|
;; libmisc/salt.c is public domain.
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
|
(define-public shadow-with-man-pages
|
||||||
|
;; TODO: Merge with 'shadow' on the next core-updates cycle.
|
||||||
|
(package/inherit shadow
|
||||||
|
(properties '()) ;not hidden
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments shadow)
|
||||||
|
((#:phases phases '%standard-phases)
|
||||||
|
`(modify-phases ,phases
|
||||||
|
(add-after 'install 'install-man-pages
|
||||||
|
(lambda _
|
||||||
|
;; The top-level Makefile.am wrongfully has "SUBDIRS += man"
|
||||||
|
;; under "if ENABLE_REGENERATE_MAN", even though prebuilt man
|
||||||
|
;; pages are available. Thus, install them manually.
|
||||||
|
(invoke "make" "-C" "man" "install")))))))))
|
||||||
|
|
||||||
(define-public mingetty
|
(define-public mingetty
|
||||||
(package
|
(package
|
||||||
(name "mingetty")
|
(name "mingetty")
|
||||||
|
|
Reference in a new issue