aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Julien BOIBESSOT <julien.boibessot@armadeus.com>2018-02-07 19:35:59 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-02-08 23:10:09 +0100
commit0552b7fc3878d7e446ee082f492845bc33594bba (patch)
tree57f2a80968f85de4c2aef58b27d8db92c6069d40 /package
parentf91a2b3772a9fe978538adfe4db6fd2af687e922 (diff)
downloadbuildroot-0552b7fc3878d7e446ee082f492845bc33594bba.tar.gz
buildroot-0552b7fc3878d7e446ee082f492845bc33594bba.tar.bz2
package/openssh: also install ssh-copy-id script
This script is useful to copy SSH keys between client and server [1] and installed on most distributions (for example on debian: [2]). [1] https://www.ssh.com/ssh/copy-id [2] https://packages.debian.org/fr/jessie/armhf/openssh-client/filelist Signed-off-by: Julien BOIBESSOT <julien.boibessot@armadeus.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [Thomas: use full destination path.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package')
-rw-r--r--package/openssh/openssh.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
index 6b7ac22c19..986bab413d 100644
--- a/package/openssh/openssh.mk
+++ b/package/openssh/openssh.mk
@@ -73,4 +73,10 @@ define OPENSSH_INSTALL_INIT_SYSV
$(TARGET_DIR)/etc/init.d/S50sshd
endef
+define OPENSSH_INSTALL_SSH_COPY_ID
+ $(INSTALL) -D -m 755 $(@D)/contrib/ssh-copy-id $(TARGET_DIR)/usr/bin/ssh-copy-id
+endef
+
+OPENSSH_POST_INSTALL_TARGET_HOOKS += OPENSSH_INSTALL_SSH_COPY_ID
+
$(eval $(autotools-package))