From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0CFF415808B for ; Sun, 27 Feb 2022 12:07:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A26FE08E5; Sun, 27 Feb 2022 12:07:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2F2EDE08E5 for ; Sun, 27 Feb 2022 12:07:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 548453433D5 for ; Sun, 27 Feb 2022 12:07:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 46DF32EE for ; Sun, 27 Feb 2022 12:07:22 +0000 (UTC) From: "Haelwenn Monnier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Haelwenn Monnier" Message-ID: <1645963544.d76526be2acf0fa9a8e7519344e542ee393d2a51.lanodan@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/tinyssh/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-misc/tinyssh/Manifest net-misc/tinyssh/tinyssh-20220222.ebuild X-VCS-Directories: net-misc/tinyssh/ X-VCS-Committer: lanodan X-VCS-Committer-Name: Haelwenn Monnier X-VCS-Revision: d76526be2acf0fa9a8e7519344e542ee393d2a51 X-VCS-Branch: dev Date: Sun, 27 Feb 2022 12:07:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 81f9f85a-498c-43d6-b5a8-37bc5134ae16 X-Archives-Hash: 1737b7a9b88d51cedc325fe017151fa4 commit: d76526be2acf0fa9a8e7519344e542ee393d2a51 Author: Haelwenn (lanodan) Monnier hacktivis me> AuthorDate: Sun Feb 27 12:05:05 2022 +0000 Commit: Haelwenn Monnier hacktivis me> CommitDate: Sun Feb 27 12:05:44 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d76526be net-misc/tinyssh: version bump, 20220222 Signed-off-by: Haelwenn (lanodan) Monnier hacktivis.me> net-misc/tinyssh/Manifest | 1 + net-misc/tinyssh/tinyssh-20220222.ebuild | 71 ++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/net-misc/tinyssh/Manifest b/net-misc/tinyssh/Manifest index eb7da3e1f..68aaf0e1a 100644 --- a/net-misc/tinyssh/Manifest +++ b/net-misc/tinyssh/Manifest @@ -1 +1,2 @@ DIST tinyssh-20210601.tar.gz 248047 BLAKE2B e661ee41443fec2474a7e0b8d2291a8c81e4852ac1cb51599de2ba748fe7fba9c81478fe616f6878e8e16577dd3a1e3c748613c47627c04733e3f42015297260 SHA512 e49397fc6edce093d9a5697f3a21f18cf9999bb257e532c0548e9a12be28eab09bf319bdf0fef0606831e826fd6845f604347e5bc1c089f0904eb4e5ab46c339 +DIST tinyssh-20220222.tar.gz 248788 BLAKE2B cabcd12d3cd6d862fea9c4cba03b72ed2edebe2584feb5cdcff9294b05f41e553fb1f9f127306a63890bc6481eb88b04953f357cf9c505e4678f85f7a38128c9 SHA512 ff6285abd5a963a031cb21fbfdd8fe38e7d7a4d17b053ebc2abeb503fdd2afb5d3a3c0921ea53624ae3d8c29cd64a7fa6810e2c053aaf4d2ad949d7c4ba21ad0 diff --git a/net-misc/tinyssh/tinyssh-20220222.ebuild b/net-misc/tinyssh/tinyssh-20220222.ebuild new file mode 100644 index 000000000..df6be2ec4 --- /dev/null +++ b/net-misc/tinyssh/tinyssh-20220222.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd toolchain-funcs + +DESCRIPTION="A small SSH server with state-of-the-art cryptography" +HOMEPAGE="https://tinyssh.org" +if [[ "${PV}" == "9999" ]]; 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="public-domain" +SLOT="0" + +IUSE="+sodium" + +DEPEND=" + sodium? ( dev-libs/libsodium ) +" +RDEPEND=" + ${DEPEND} + sys-apps/ucspi-tcp +" + +src_prepare() { + # Leave optimization level to user CFLAGS + sed -i 's/-Os -fomit-frame-pointer -funroll-loops//g' ./conf-cc || die + + # Use make-tinysshcc.sh script, which has no tests and doesn't execute + # binaries. See https://github.com/janmojzis/tinyssh/issues/2 + sed -i 's/make-tinyssh\.sh/make-tinysshcc.sh/g' ./Makefile || die + + default +} + +src_compile() { + if use sodium + then + emake \ + CC="$(tc-getCC)" + LIBS="-lsodium" \ + CFLAGS="${CFLAGS} -I/usr/include/sodium" \ + LDFLAGS="${LDFLAGS} -L/usr/lib" + else + emake CC="$(tc-getCC)" + fi +} + +src_install() { + dosbin build/bin/tinysshd{,-makekey} + dobin build/bin/tinysshd-printkey + doman man/* + + 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." +}