1 |
commit: 33dd70bb90720c7b8afc19f0ac105257750dfbd7 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 4 03:28:36 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 4 03:28:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33dd70bb |
7 |
|
8 |
net-misc/mosh: add 1.4.0_rc1 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-misc/mosh/Manifest | 1 + |
13 |
net-misc/mosh/mosh-1.4.0_rc1.ebuild | 85 +++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 86 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/mosh/Manifest b/net-misc/mosh/Manifest |
17 |
index 528cca3c4325..b648ef755aec 100644 |
18 |
--- a/net-misc/mosh/Manifest |
19 |
+++ b/net-misc/mosh/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST mosh-1.3.2.tar.gz 359574 BLAKE2B 0b7290da0c5e5af0bfed58594095cb2649fec049fda7c495df326742176033d1716752451d2a9f11ba2c2957e8b8fecd5caa4e8962c8597e8dd67d1de7582ec5 SHA512 f400e8fe7ba2ab7362311fc12a00ec69587505f901988aeee500fc68d38a388218500a3f602111c883ff23a9d43572114fcf0a8bf505df203691e5b597615769 |
22 |
+DIST mosh-1.4.0-rc1.tar.gz 386364 BLAKE2B e9dee52f0a0d934c85efbcfd7c6b857ad1b6e3d5a7ed13730e1a79ef286331ef1828292ebc71731572af94c03bae37b7227ff569669c01b6885984b15220693e SHA512 82affca6a596a0475f32a944e23c879f625215ea8311cd29cef56f5af57d88a377420ba7addeb53c9bd30d1583654897baf939618e706d1928d57e83cc87ce9c |
23 |
|
24 |
diff --git a/net-misc/mosh/mosh-1.4.0_rc1.ebuild b/net-misc/mosh/mosh-1.4.0_rc1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..cc24a1f0f45c |
27 |
--- /dev/null |
28 |
+++ b/net-misc/mosh/mosh-1.4.0_rc1.ebuild |
29 |
@@ -0,0 +1,85 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit autotools bash-completion-r1 |
36 |
+ |
37 |
+MY_P=${PN}-${PV/_/-} |
38 |
+DESCRIPTION="Mobile shell that supports roaming and intelligent local echo" |
39 |
+HOMEPAGE="https://mosh.org" |
40 |
+#SRC_URI="https://mosh.org/${P}.tar.gz" |
41 |
+SRC_URI="https://github.com/mobile-shell/mosh/releases/download/${MY_P}/${MY_P}.tar.gz" |
42 |
+S="${WORKDIR}"/${MY_P} |
43 |
+ |
44 |
+LICENSE="GPL-3" |
45 |
+SLOT="0" |
46 |
+if [[ ${PV} != *_rc* ]] ; then |
47 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" |
48 |
+fi |
49 |
+IUSE="+client examples +mosh-hardening +server syslog ufw +utempter" |
50 |
+ |
51 |
+REQUIRED_USE=" |
52 |
+ || ( client server ) |
53 |
+ examples? ( client )" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ dev-libs/openssl:= |
57 |
+ dev-libs/protobuf:= |
58 |
+ sys-libs/ncurses:= |
59 |
+ sys-libs/zlib |
60 |
+ virtual/ssh |
61 |
+ client? ( |
62 |
+ dev-lang/perl |
63 |
+ dev-perl/IO-Tty |
64 |
+ ) |
65 |
+ utempter? ( |
66 |
+ sys-libs/libutempter |
67 |
+ )" |
68 |
+ |
69 |
+DEPEND="${RDEPEND}" |
70 |
+BDEPEND="virtual/pkgconfig" |
71 |
+ |
72 |
+QA_CONFIGURE_OPTIONS="--disable-static" |
73 |
+ |
74 |
+# [0] - avoid sandbox-violation calling git describe in Makefile. |
75 |
+PATCHES=( |
76 |
+ "${FILESDIR}"/${PN}-1.2.5-git-version.patch |
77 |
+) |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ default |
81 |
+ |
82 |
+ eautoreconf |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ MAKEOPTS+=" V=1" |
87 |
+ |
88 |
+ local myeconfargs=( |
89 |
+ # We install it ourselves in src_install |
90 |
+ --disable-completion |
91 |
+ |
92 |
+ $(use_enable client) |
93 |
+ $(use_enable server) |
94 |
+ $(use_enable examples) |
95 |
+ $(use_enable ufw) |
96 |
+ $(use_enable mosh-hardening hardening) |
97 |
+ $(use_enable syslog) |
98 |
+ $(use_with utempter) |
99 |
+ ) |
100 |
+ |
101 |
+ econf "${myeconfargs[@]}" |
102 |
+} |
103 |
+ |
104 |
+src_install() { |
105 |
+ default |
106 |
+ |
107 |
+ for myprog in $(find src/examples -type f -perm /0111) ; do |
108 |
+ newbin ${myprog} ${PN}-$(basename ${myprog}) |
109 |
+ elog "${myprog} installed as ${PN}-$(basename ${myprog})" |
110 |
+ done |
111 |
+ |
112 |
+ # bug #477384 |
113 |
+ dobashcomp conf/bash-completion/completions/mosh |
114 |
+} |