[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19/36: gnu: cifs-utils: Build & install man pages.
From: |
guix-commits |
Subject: |
19/36: gnu: cifs-utils: Build & install man pages. |
Date: |
Mon, 4 Oct 2021 07:44:01 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 0448bff770e470d2c627bd7cdd77ffb7c56ec202
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Mon Oct 4 02:25:14 2021 +0200
gnu: cifs-utils: Build & install man pages.
* gnu/packages/samba.scm (cifs-utils)[arguments]: Add "--enable-man"
to #:configure-flags. Remove useless 'create-man8dir phase. Add a new
'install-man-pages phase to do just that.
[native-inputs]: Add python-docutils.
---
gnu/packages/samba.scm | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm
index 359a345..6be167f 100644
--- a/gnu/packages/samba.scm
+++ b/gnu/packages/samba.scm
@@ -55,6 +55,7 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages popt)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-xyz)
#:use-module (gnu packages readline)
#:use-module (gnu packages time)
#:use-module (gnu packages tls)
@@ -76,7 +77,10 @@
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)
- ("pkg-config" ,pkg-config)))
+ ("pkg-config" ,pkg-config)
+
+ ;; To generate the manpages.
+ ("python-docutils" ,python-docutils))) ; rst2man
(inputs
`(("keytuils" ,keyutils)
("linux-pam" ,linux-pam)
@@ -85,20 +89,23 @@
("samba" ,samba)
("talloc" ,talloc)))
(arguments
- `(#:phases
+ `(#:configure-flags
+ (list "--enable-man")
+ #:phases
(modify-phases %standard-phases
(add-before 'configure 'set-root-sbin
(lambda* (#:key outputs #:allow-other-keys)
;; Don't try to install into "/sbin".
(setenv "ROOTSBINDIR"
- (string-append (assoc-ref outputs "out") "/sbin"))
- #t))
- (add-before 'install 'create-man8dir
+ (string-append (assoc-ref outputs "out") "/sbin"))))
+ (add-before 'install 'install-man-pages
;; Create a directory that isn't created since version 6.10.
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (mkdir-p (string-append out "/share/man/man8"))
- #t))))))
+ (lambda* (#:key make-flags parallel-build? #:allow-other-keys)
+ (apply invoke "make" "install-man"
+ `(,@(if parallel-build?
+ `("-j" ,(number->string (parallel-job-count)))
+ '())
+ ,@make-flags)))))))
(synopsis "User-space utilities for Linux CIFS (Samba) mounts")
(description "@code{cifs-utils} is a set of user-space utilities for
mounting and managing @dfn{Common Internet File System} (CIFS) shares using
- 23/36: gnu: pv: Slightly expand description., (continued)
- 23/36: gnu: pv: Slightly expand description., guix-commits, 2021/10/04
- 28/36: gnu: notmuch: Update to 0.33.2., guix-commits, 2021/10/04
- 30/36: gnu: feh: Update to 3.7.2., guix-commits, 2021/10/04
- 01/36: gnu: android-udev-rules: Update to 20210501., guix-commits, 2021/10/04
- 12/36: gnu: criu: Delete static libraries., guix-commits, 2021/10/04
- 13/36: gnu: wolfssl: Update to 4.8.1., guix-commits, 2021/10/04
- 26/36: gnu: ndisc6: Update to 1.0.5., guix-commits, 2021/10/04
- 32/36: gnu: haveged: Don't build the static library., guix-commits, 2021/10/04
- 16/36: gnu: cawbird: Update to 1.4.2., guix-commits, 2021/10/04
- 27/36: gnu: btrfs-progs: Update to 5.14.1., guix-commits, 2021/10/04
- 19/36: gnu: cifs-utils: Build & install man pages.,
guix-commits <=
- 21/36: gnu: cifs-utils: Fix support for dropping capabilities., guix-commits, 2021/10/04
- 29/36: gnu: squid: Update to 4.16., guix-commits, 2021/10/04
- 17/36: gnu: openssh: Update to 8.8p1 [security fixes]., guix-commits, 2021/10/04
- 31/36: gnu: haveged: Update to 1.9.15., guix-commits, 2021/10/04
- 36/36: doc: Fix 'setuid-program' example., guix-commits, 2021/10/04
- 34/36: gnu: brasero: Update to 3.12.3., guix-commits, 2021/10/04
- 35/36: gnu: brasero: Embed growisofs from dvd+rw-tools input., guix-commits, 2021/10/04