5 |
5 |
|
6 |
6 |
inherit autotools bash-completion-r1 flag-o-matic
|
7 |
7 |
|
|
8 |
MY_P=${PN}-${PV/_rc/rc}
|
8 |
9 |
DESCRIPTION="Mobile shell that supports roaming and intelligent local echo"
|
9 |
10 |
HOMEPAGE="https://mosh.org"
|
10 |
|
SRC_URI="https://mosh.org/${P}.tar.gz"
|
|
11 |
#SRC_URI="https://mosh.org/${P}.tar.gz"
|
|
12 |
SRC_URI="https://github.com/mobile-shell/mosh/releases/download/${MY_P}/${MY_P}.tar.gz"
|
|
13 |
S="${WORKDIR}"/${MY_P}
|
11 |
14 |
|
12 |
15 |
LICENSE="GPL-3"
|
13 |
16 |
SLOT="0"
|
14 |
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
|
15 |
|
IUSE="+client examples +mosh-hardening +server ufw +utempter"
|
|
17 |
if [[ ${PV} != *_rc* ]] ; then
|
|
18 |
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
|
|
19 |
fi
|
|
20 |
IUSE="+client examples +hardened nettle +server syslog ufw +utempter"
|
16 |
21 |
|
17 |
22 |
REQUIRED_USE="
|
18 |
23 |
|| ( client server )
|
... | ... | |
27 |
32 |
dev-lang/perl
|
28 |
33 |
dev-perl/IO-Tty
|
29 |
34 |
)
|
30 |
|
dev-libs/openssl:=
|
|
35 |
!nettle? ( dev-libs/openssl:= )
|
|
36 |
nettle? ( dev-libs/nettle:= )
|
31 |
37 |
utempter? (
|
32 |
38 |
sys-libs/libutempter
|
33 |
39 |
)"
|
34 |
40 |
|
35 |
|
DEPEND="${RDEPEND}
|
36 |
|
virtual/pkgconfig"
|
|
41 |
DEPEND="${RDEPEND}"
|
|
42 |
BDEPEND="virtual/pkgconfig"
|
|
43 |
|
|
44 |
QA_CONFIGURE_OPTIONS="--disable-static"
|
37 |
45 |
|
38 |
46 |
# [0] - avoid sandbox-violation calling git describe in Makefile.
|
39 |
47 |
PATCHES=(
|
40 |
48 |
"${FILESDIR}"/${PN}-1.2.5-git-version.patch
|
41 |
|
"${FILESDIR}"/${P}-bind-misinterpret.patch
|
42 |
49 |
)
|
43 |
50 |
|
44 |
51 |
src_prepare() {
|
45 |
|
MAKEOPTS+=" V=1"
|
46 |
52 |
default
|
47 |
53 |
|
48 |
54 |
eautoreconf
|
49 |
55 |
}
|
50 |
56 |
|
51 |
57 |
src_configure() {
|
|
58 |
MAKEOPTS+=" V=1"
|
|
59 |
|
52 |
60 |
# protobuf needs >=c++14
|
53 |
61 |
append-cxxflags -std=gnu++14
|
54 |
62 |
|
55 |
|
econf \
|
56 |
|
--disable-completion \
|
57 |
|
$(use_enable client) \
|
58 |
|
$(use_enable server) \
|
59 |
|
$(use_enable examples) \
|
60 |
|
$(use_enable ufw) \
|
61 |
|
$(use_enable mosh-hardening hardening) \
|
|
63 |
local myeconfargs=(
|
|
64 |
# We install it ourselves in src_install
|
|
65 |
--disable-completion
|
|
66 |
|
|
67 |
$(use_enable client)
|
|
68 |
$(use_enable server)
|
|
69 |
$(use_enable examples)
|
|
70 |
$(use_enable hardened hardening)
|
|
71 |
$(use_enable ufw)
|
|
72 |
$(use_enable syslog)
|
62 |
73 |
$(use_with utempter)
|
|
74 |
|
|
75 |
# We default to OpenSSL as upstream do
|
|
76 |
--with-crypto-library=$(usex nettle nettle openssl-with-openssl-ocb)
|
|
77 |
)
|
|
78 |
|
|
79 |
econf "${myeconfargs[@]}"
|
63 |
80 |
}
|
64 |
81 |
|
65 |
82 |
src_install() {
|
... | ... | |
70 |
87 |
elog "${myprog} installed as ${PN}-$(basename ${myprog})"
|
71 |
88 |
done
|
72 |
89 |
|
73 |
|
# bug 477384
|
|
90 |
# bug #477384
|
74 |
91 |
dobashcomp conf/bash-completion/completions/mosh
|
75 |
92 |
}
|