1 |
commit: d76526be2acf0fa9a8e7519344e542ee393d2a51 |
2 |
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> |
3 |
AuthorDate: Sun Feb 27 12:05:05 2022 +0000 |
4 |
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> |
5 |
CommitDate: Sun Feb 27 12:05:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d76526be |
7 |
|
8 |
net-misc/tinyssh: version bump, 20220222 |
9 |
|
10 |
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> |
11 |
|
12 |
net-misc/tinyssh/Manifest | 1 + |
13 |
net-misc/tinyssh/tinyssh-20220222.ebuild | 71 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 72 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/tinyssh/Manifest b/net-misc/tinyssh/Manifest |
17 |
index eb7da3e1f..68aaf0e1a 100644 |
18 |
--- a/net-misc/tinyssh/Manifest |
19 |
+++ b/net-misc/tinyssh/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST tinyssh-20210601.tar.gz 248047 BLAKE2B e661ee41443fec2474a7e0b8d2291a8c81e4852ac1cb51599de2ba748fe7fba9c81478fe616f6878e8e16577dd3a1e3c748613c47627c04733e3f42015297260 SHA512 e49397fc6edce093d9a5697f3a21f18cf9999bb257e532c0548e9a12be28eab09bf319bdf0fef0606831e826fd6845f604347e5bc1c089f0904eb4e5ab46c339 |
22 |
+DIST tinyssh-20220222.tar.gz 248788 BLAKE2B cabcd12d3cd6d862fea9c4cba03b72ed2edebe2584feb5cdcff9294b05f41e553fb1f9f127306a63890bc6481eb88b04953f357cf9c505e4678f85f7a38128c9 SHA512 ff6285abd5a963a031cb21fbfdd8fe38e7d7a4d17b053ebc2abeb503fdd2afb5d3a3c0921ea53624ae3d8c29cd64a7fa6810e2c053aaf4d2ad949d7c4ba21ad0 |
23 |
|
24 |
diff --git a/net-misc/tinyssh/tinyssh-20220222.ebuild b/net-misc/tinyssh/tinyssh-20220222.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000..df6be2ec4 |
27 |
--- /dev/null |
28 |
+++ b/net-misc/tinyssh/tinyssh-20220222.ebuild |
29 |
@@ -0,0 +1,71 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit systemd toolchain-funcs |
36 |
+ |
37 |
+DESCRIPTION="A small SSH server with state-of-the-art cryptography" |
38 |
+HOMEPAGE="https://tinyssh.org" |
39 |
+if [[ "${PV}" == "9999" ]]; then |
40 |
+ inherit git-r3 |
41 |
+ EGIT_REPO_URI="https://github.com/janmojzis/tinyssh.git" |
42 |
+else |
43 |
+ SRC_URI="https://github.com/janmojzis/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ KEYWORDS="~amd64 ~x86" |
45 |
+fi |
46 |
+ |
47 |
+LICENSE="public-domain" |
48 |
+SLOT="0" |
49 |
+ |
50 |
+IUSE="+sodium" |
51 |
+ |
52 |
+DEPEND=" |
53 |
+ sodium? ( dev-libs/libsodium ) |
54 |
+" |
55 |
+RDEPEND=" |
56 |
+ ${DEPEND} |
57 |
+ sys-apps/ucspi-tcp |
58 |
+" |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ # Leave optimization level to user CFLAGS |
62 |
+ sed -i 's/-Os -fomit-frame-pointer -funroll-loops//g' ./conf-cc || die |
63 |
+ |
64 |
+ # Use make-tinysshcc.sh script, which has no tests and doesn't execute |
65 |
+ # binaries. See https://github.com/janmojzis/tinyssh/issues/2 |
66 |
+ sed -i 's/make-tinyssh\.sh/make-tinysshcc.sh/g' ./Makefile || die |
67 |
+ |
68 |
+ default |
69 |
+} |
70 |
+ |
71 |
+src_compile() { |
72 |
+ if use sodium |
73 |
+ then |
74 |
+ emake \ |
75 |
+ CC="$(tc-getCC)" |
76 |
+ LIBS="-lsodium" \ |
77 |
+ CFLAGS="${CFLAGS} -I/usr/include/sodium" \ |
78 |
+ LDFLAGS="${LDFLAGS} -L/usr/lib" |
79 |
+ else |
80 |
+ emake CC="$(tc-getCC)" |
81 |
+ fi |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ dosbin build/bin/tinysshd{,-makekey} |
86 |
+ dobin build/bin/tinysshd-printkey |
87 |
+ doman man/* |
88 |
+ |
89 |
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}" |
90 |
+ newconfd "${FILESDIR}/${PN}.confd" "${PN}" |
91 |
+ |
92 |
+ systemd_newunit "${FILESDIR}/${PN}.service" "${PN}@.service" |
93 |
+ systemd_newunit "${FILESDIR}/${PN}.socket" "${PN}@.socket" |
94 |
+ systemd_dounit "${FILESDIR}/${PN}-makekey.service" |
95 |
+} |
96 |
+ |
97 |
+pkg_postinst() { |
98 |
+ einfo "TinySSH is in beta stage, and ready for production use." |
99 |
+ einfo "See https://tinyssh.org for more information." |
100 |
+} |