From ff4acf53efadfba275a0c98314f3d0ec7f1a19ec Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Mon, 1 Jun 2026 14:16:51 +0200 Subject: [PATCH] net-misc/tinyssh: add 20260601 Signed-off-by: Haelwenn (lanodan) Monnier Part-of: https://codeberg.org/gentoo/gentoo/pulls/1034 Merges: https://codeberg.org/gentoo/gentoo/pulls/1034 Signed-off-by: Sam James --- net-misc/tinyssh/Manifest | 2 + net-misc/tinyssh/tinyssh-20260601.ebuild | 68 ++++++++++++++++++++++++ net-misc/tinyssh/tinyssh-99999999.ebuild | 14 +++-- 3 files changed, 81 insertions(+), 3 deletions(-) create mode 100644 net-misc/tinyssh/tinyssh-20260601.ebuild diff --git a/net-misc/tinyssh/Manifest b/net-misc/tinyssh/Manifest index af7f060cb1777..9b0e3d3cfcbe6 100644 --- a/net-misc/tinyssh/Manifest +++ b/net-misc/tinyssh/Manifest @@ -1 +1,3 @@ DIST tinyssh-20260401.tar.gz 421859 BLAKE2B cdc6eb2ae16d8156ecab74321f7c591b329799ed4104d11367d7ed587d7c28982451c283063f9ba4c38c6b551301fd5ac6f0b14efc673e95d418a350427bb681 SHA512 be8d2fc6b5c660eb4ab5113dbb81199204f754dd654f1943d79bc71f1169cd6e8654094522df9f25c70c7506aa31cb601694d2e8564f6f12392931c9a21ce7d3 +DIST tinyssh-20260601.tar.gz 422063 BLAKE2B af2b12fe7947972af38c35379a5df39abd7fb19f528c1bf2f702c5fbb9af3ed600d29706e9128889a9fc25aeaa574c5fed5b00123113d15429c65c7d462e4efe SHA512 1d468b3c5324c4ccdd8c6f3027ad16bba052275227c06e22516759d30935c2a4fd8e487d22f38d197734520fc83ef84b2c02926d31ee9ca3b7070ea9259940bb +DIST tinyssh-20260601.tar.gz.asc 833 BLAKE2B 50917553bf178769b5e652aaecb8f7c727803409f222bea08596eddeaa204b093612e16041db1da48a4cdfb03663e9aa9ca6170dcdcd1249dbc1ee2746be1d41 SHA512 10ef20de58510402267023d8612d3e13663226bbb51dea3f6f74af2785962bb302151bd374f0c4f958a9c47e2f46e2114326131194cec16db9595306066eda42 diff --git a/net-misc/tinyssh/tinyssh-20260601.ebuild b/net-misc/tinyssh/tinyssh-20260601.ebuild new file mode 100644 index 0000000000000..1f1d04b3f493e --- /dev/null +++ b/net-misc/tinyssh/tinyssh-20260601.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd toolchain-funcs + +DESCRIPTION="A small SSH server with state-of-the-art cryptography" +HOMEPAGE="https://tinyssh.org" +if [[ "${PV}" == "99999999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/janmojzis/tinyssh.git" +else + inherit verify-sig + SRC_URI=" + https://github.com/janmojzis/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + verify-sig? ( https://github.com/janmojzis/tinyssh/releases/download/${PV}/${PV}.tar.gz.asc -> ${P}.tar.gz.asc ) + " + KEYWORDS="~amd64 ~arm64 ~x86" +fi + +LICENSE="|| ( CC0-1.0 0BSD MIT-0 MIT )" +SLOT="0" + +RDEPEND=" + ${DEPEND} + sys-apps/ucspi-tcp +" +if [[ "${PV}" != "99999999" ]]; then + BDEPEND="${BDEPEND} verify-sig? ( sec-keys/openpgp-keys-janmojzis )" + VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/janmojzis.asc" +fi + +src_prepare() { + default + + echo 'gentoo-autoheaders: $(AUTOHEADERS)' >> Makefile || die +} + +src_configure() { + tc-export CC + + emake gentoo-autoheaders + + local i + for i in has*.log + do + einfo "$i" + cat "$i" + done +} + +src_install() { + einstalldocs + emake install DESTDIR="${D}" PREFIX=/usr + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + + systemd_newunit "${FILESDIR}/${PN}.service" "${PN}@.service" + systemd_newunit "${FILESDIR}/${PN}.socket" "${PN}@.socket" + systemd_dounit "${FILESDIR}/${PN}-makekey.service" +} + +pkg_postinst() { + einfo "TinySSH is in beta stage, and ready for production use." + einfo "See https://tinyssh.org for more information." +} diff --git a/net-misc/tinyssh/tinyssh-99999999.ebuild b/net-misc/tinyssh/tinyssh-99999999.ebuild index 3ff059060c0b7..1f1d04b3f493e 100644 --- a/net-misc/tinyssh/tinyssh-99999999.ebuild +++ b/net-misc/tinyssh/tinyssh-99999999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -11,8 +11,12 @@ if [[ "${PV}" == "99999999" ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/janmojzis/tinyssh.git" else - SRC_URI="https://github.com/janmojzis/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" + inherit verify-sig + SRC_URI=" + https://github.com/janmojzis/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + verify-sig? ( https://github.com/janmojzis/tinyssh/releases/download/${PV}/${PV}.tar.gz.asc -> ${P}.tar.gz.asc ) + " + KEYWORDS="~amd64 ~arm64 ~x86" fi LICENSE="|| ( CC0-1.0 0BSD MIT-0 MIT )" @@ -22,6 +26,10 @@ RDEPEND=" ${DEPEND} sys-apps/ucspi-tcp " +if [[ "${PV}" != "99999999" ]]; then + BDEPEND="${BDEPEND} verify-sig? ( sec-keys/openpgp-keys-janmojzis )" + VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/janmojzis.asc" +fi src_prepare() { default