[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/36: gnu: openssh: Remove empty /var/empty.
From: |
guix-commits |
Subject: |
18/36: gnu: openssh: Remove empty /var/empty. |
Date: |
Mon, 4 Oct 2021 07:44:01 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit ec7bcdc35af17021a9dfd73ef49750d0ad82b989
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Mon Oct 4 02:06:49 2021 +0200
gnu: openssh: Remove empty /var/empty.
* gnu/packages/ssh.scm (openssh)[arguments]: Delete /var/empty after
‘make install’. Make the rest less repetitive—no functional changes.
---
gnu/packages/ssh.scm | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/ssh.scm b/gnu/packages/ssh.scm
index 2240811..f7e6286 100644
--- a/gnu/packages/ssh.scm
+++ b/gnu/packages/ssh.scm
@@ -256,17 +256,19 @@ a server that supports the SSH-2 protocol.")
(("^(tests:.*) t-exec(.*)" all pre post)
(string-append pre post)))))
(replace 'install
- (lambda* (#:key outputs (make-flags '()) #:allow-other-keys)
- ;; Install without host keys and system configuration files.
- (apply invoke "make" "install-nosysconf" make-flags)
- (install-file "contrib/ssh-copy-id"
- (string-append (assoc-ref outputs "out")
- "/bin/"))
- (chmod (string-append (assoc-ref outputs "out")
- "/bin/ssh-copy-id") #o555)
- (install-file "contrib/ssh-copy-id.1"
- (string-append (assoc-ref outputs "out")
- "/share/man/man1/")))))))
+ (lambda* (#:key outputs (make-flags '()) #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ ;; Install without host keys and system configuration files.
+ (apply invoke "make" "install-nosysconf" make-flags)
+ (with-directory-excursion out
+ (rmdir "var/empty")
+ (rmdir "var"))
+ (with-directory-excursion "contrib"
+ (chmod "ssh-copy-id" #o555)
+ (install-file "ssh-copy-id"
+ (string-append out "/bin/"))
+ (install-file "ssh-copy-id.1"
+ (string-append out "/share/man/man1/")))))))))
(synopsis "Client and server for the secure shell (ssh) protocol")
(description
"The SSH2 protocol implemented in OpenSSH is standardised by the
- branch master updated (356136e -> 5fec148), guix-commits, 2021/10/04
- 08/36: gnu: nginx-documentation: Update to 1.21.3-2769-16f6fa718be2., guix-commits, 2021/10/04
- 09/36: gnu: knot: Unambiguously enable XDP., guix-commits, 2021/10/04
- 02/36: gnu: stunnel: Update to 5.60., guix-commits, 2021/10/04
- 06/36: gnu: httpd: Update to 2.4.49., guix-commits, 2021/10/04
- 10/36: services: knot: Remove obsolete DISABLE-ANY? zone option., guix-commits, 2021/10/04
- 24/36: gnu: cifs-utils: Use @acronym{} in description., guix-commits, 2021/10/04
- 20/36: gnu: cifs-utils: Update to 6.14., guix-commits, 2021/10/04
- 25/36: gnu: pv: Update to 1.6.20., guix-commits, 2021/10/04
- 18/36: gnu: openssh: Remove empty /var/empty.,
guix-commits <=
- 33/36: gnu: gpsd: Update to 3.23.1., guix-commits, 2021/10/04
- 05/36: gnu: links: Update to 2.25., guix-commits, 2021/10/04
- 03/36: gnu: stunnel: Don't install installation instructions., guix-commits, 2021/10/04
- 14/36: gnu: wireguard-tools: Update to 1.0.20210914., guix-commits, 2021/10/04
- 11/36: gnu: criu: Update to 3.16., guix-commits, 2021/10/04
- 07/36: gnu: nginx: Update to 1.21.3., guix-commits, 2021/10/04
- 15/36: gnu: osinfo-db: Update to 20210903., guix-commits, 2021/10/04
- 04/36: gnu: slop: Update to 7.6., guix-commits, 2021/10/04
- 22/36: gnu: libcacard: Update to 2.8.1., guix-commits, 2021/10/04
- 23/36: gnu: pv: Slightly expand description., guix-commits, 2021/10/04