[Buildroot] [PATCH] package/openssh: also install ssh-copy-id script
Yann E. MORIN
yann.morin.1998 at free.fr
Wed Feb 7 18:54:56 UTC 2018
Julien, All,
On 2018-02-07 19:35 +0100, julien.boibessot at free.fr spake thusly:
> From: Julien BOIBESSOT <julien.boibessot at armadeus.com>
>
> 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 at armadeus.com>
>
> diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
> index 6b7ac22..b0075e9 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
Usually, we write the full mode, i.e. 0755 (but the tree is mixed: 371
iterations of '0755', but only 116 for '0755').
Regards,
Yann E. MORIN.
> +endef
> +
> +OPENSSH_POST_INSTALL_TARGET_HOOKS += OPENSSH_INSTALL_SSH_COPY_ID
> +
> $(eval $(autotools-package))
> --
> 2.1.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
More information about the buildroot
mailing list