net-misc/ssh-tools - 1.9 (holgersson-overlay)

Search

Install

Install this version:

emerge -a =net-misc/ssh-tools-1.9

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-misc/ssh-tools-1.9

Or alternatively:

emerge --autounmask-write -a =net-misc/ssh-tools-1.9

Package Information

Description:
Tools to make ssh more convenient
Homepage:
https://codeberg.org/vaporup/ssh-tools
License:
Apache-2.0 BSD GPL-3 imagemagick MIT

Ebuild Details

Version EAPI Keywords Slot
1.9 8 ~amd64 0
View Raw Ebuild
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="8"
EGO_PN="codeberg.org/vaporup"

COMMIT_ID=""

inherit go-module

DESCRIPTION="Tools to make ssh more convenient"
HOMEPAGE="
	https://codeberg.org/vaporup/ssh-tools
"
SRC_URI="https://codeberg.org/vaporup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

# Add the manually vendored tarball.
# 1) Create a tar archive optimized to reproduced by other users or devs.
# 2) Compress the archive using XZ limiting decompression memory for
#    pretty constraint systems.
# Use something like:
# GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw
# tar cf $P-deps.tar go-mod \
#       --mtime="1970-01-01" --sort=name --owner=portage --group=portage
# xz -k -9eT0 --memlimit-decompress=8192M $P-deps.tar
SRC_URI+=" https://files.holgersson.xyz/gentoo/distfiles/golang-pkg-deps/${P}-deps.tar.xz"
S="${WORKDIR}/${PN}"

LICENSE="Apache-2.0 BSD GPL-3 imagemagick MIT"
SLOT="0"
KEYWORDS="~amd64"

# Don't run tests as they check the scripts against
# a single hard-coded SSH server.
RESTRICT="test"

RDEPEND="net-misc/openssh"
DOCS=( "CHANGELOG.md" )

src_compile() {
	export CGO_ENABLED=0
	# Flags -w, -s: Omit debugging information to reduce binary size,
	# see https://golang.org/cmd/link/.
	local mygobuildargs=(
		-ldflags="-X ${EGO_PN}/config.GitCommit=${COMMIT_ID} -w -s"
	    -mod mod -v -work -x
	)
	ego build  "${mygobuildargs[@]}" ./cmd/go/ssh-authorized-keys
	ego build  "${mygobuildargs[@]}" ./cmd/go/ssh-sig
}

src_install(){
	default

	doman man/*

	# golang binaries
	dobin ssh-authorized-keys
	dobin ssh-sig

	# perl scripts
	dobin cmd/perl/ssh-last/ssh-last

	# bash scripts
	dobin cmd/bash/ssh-certinfo/ssh-certinfo
	dobin cmd/bash/ssh-diff/ssh-diff
	dobin cmd/bash/ssh-facts/ssh-facts
	dobin cmd/bash/ssh-force-password/ssh-force-password
	dobin cmd/bash/ssh-hostkeys/ssh-hostkeys
	dobin cmd/bash/ssh-keyinfo/ssh-keyinfo
	dobin cmd/bash/ssh-ping/ssh-ping
	dobin cmd/bash/ssh-pwd/ssh-pwd
	dobin cmd/bash/ssh-version/ssh-version
}

Inherited Eclasses

Dependencies

RDEPEND

net-misc/openssh

Manifest for 1.9

Type File Size Source URLs
DIST ssh-tools-1.9-deps.tar.xz 5254204 bytes https://files.holgersson.xyz/gentoo/distfiles/golang-pkg-deps/ssh-tools-1.9-deps.tar.xz
DIST ssh-tools-1.9.tar.gz 814560 bytes https://codeberg.org/vaporup/ssh-tools/archive/v1.9.tar.gz