# Copyright 2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 DESCRIPTION="collection of various tools using ssh" HOMEPAGE="https://github.com/vaporup/ssh-tools/" SRC_URI="https://github.com/vaporup/${PN}/archive/v${PV}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" DEPEND="sys-apps/help2man" RDEPEND="net-misc/openssh" PDEPEND="app-misc/colordiff" src_compile() { mkdir -p "${S}/man" help2man -n "check if host is reachable using ssh_config" -S SSH-TOOLS -N --version-string " " -o ${S}/man/ssh-ping.1 ${S}/ssh-ping help2man -n "shows version of the SSH server you are connecting to" -S SSH-TOOLS -N --version-string " " -o ${S}/man/ssh-version.1 ${S}/ssh-version help2man -n "diff a file over SSH" -S SSH-TOOLS -N --version-string " " -o ${S}/man/ssh-diff.1 ${S}/ssh-diff help2man -n "get some facts about the remote system" -S SSH-TOOLS -N --version-string " " -o ${S}/man/ssh-facts.1 ${S}/ssh-facts } src_install() { dobin ${S}/ssh-* doman ${S}/man/ssh-* }