package/openssh: also install ssh-copy-id script
authorJulien BOIBESSOT <julien.boibessot@armadeus.com>
Wed, 7 Feb 2018 18:35:59 +0000 (19:35 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 8 Feb 2018 22:10:09 +0000 (23:10 +0100)
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>
package/openssh/openssh.mk

index 6b7ac22c19df900a98a6bc0b299ddfeb4de5abca..986bab413d3626935fc1654dbc738a9f04f3817d 100644 (file)
@@ -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))