net-misc/tinyssh: add 20250501

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Part-of: https://github.com/gentoo/gentoo/pull/41888
Closes: https://github.com/gentoo/gentoo/pull/41888
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Haelwenn (lanodan) Monnier
2025-05-02 00:01:10 +02:00
committed by Viorel Munteanu
parent 11b7c4c500
commit 963c125d7f
3 changed files with 63 additions and 2 deletions

View File

@@ -1 +1,2 @@
DIST tinyssh-20250411.tar.gz 421627 BLAKE2B 36664a06815201a342891fdfaa4adf4d9225ca2254702a1a8f3d5e7c13ab78a28889cbf575241007a737e05b3758e8b67c6202e6f3f5db96b9e031cee626a622 SHA512 849fa29757b8f2967cabd1a86e36a2e89c512f1d4495e084e63d1245f6294d21612f792f7dc6924bad301338959219638bf1caa3cc35d4b8135fa1f764440b60
DIST tinyssh-20250501.tar.gz 421567 BLAKE2B acffcb249e09686fcc9364bdc617f9bbb27c98c1e4c25ed7859711cb9b25be35eff29d8afcd372eab884ec307f2c8ae51596e5782a237ae97b20fbb7e9010f44 SHA512 c303bfa1781d668a86ca05d5c5fe2b028e4b99ba864700283c5bff1bec1050d95ed2b942e8d0eb1bd62fd6e06dc0ad0c404e83e589a67f6e6997b500b857d805

View File

@@ -0,0 +1,60 @@
# Copyright 1999-2025 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
SRC_URI="https://github.com/janmojzis/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="|| ( CC0-1.0 0BSD MIT-0 MIT )"
SLOT="0"
RDEPEND="
${DEPEND}
sys-apps/ucspi-tcp
"
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."
}

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -15,7 +15,7 @@ else
KEYWORDS="~amd64 ~x86"
fi
LICENSE="CC0-1.0"
LICENSE="|| ( CC0-1.0 0BSD MIT-0 MIT )"
SLOT="0"
RDEPEND="