From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Wed, 7 Feb 2018 19:54:56 +0100 Subject: [Buildroot] [PATCH] package/openssh: also install ssh-copy-id script In-Reply-To: <1518028559-22988-1-git-send-email-julien.boibessot@free.fr> References: <1518028559-22988-1-git-send-email-julien.boibessot@free.fr> Message-ID: <20180207185456.GB2250@scaer> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Julien, All, On 2018-02-07 19:35 +0100, julien.boibessot at free.fr spake thusly: > From: Julien BOIBESSOT > > 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 > > 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. | '------------------------------^-------^------------------^--------------------'