mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 02:39:08 -07:00
net-misc/mosh: drop 1.3.2-r3
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44225 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST mosh-1.3.2.tar.gz 359574 BLAKE2B 0b7290da0c5e5af0bfed58594095cb2649fec049fda7c495df326742176033d1716752451d2a9f11ba2c2957e8b8fecd5caa4e8962c8597e8dd67d1de7582ec5 SHA512 f400e8fe7ba2ab7362311fc12a00ec69587505f901988aeee500fc68d38a388218500a3f602111c883ff23a9d43572114fcf0a8bf505df203691e5b597615769
|
||||
DIST mosh-1.4.0.tar.gz 393465 BLAKE2B 076b70742292dfd012aff70cc7d76eb6568ddd92600ce3f834dfdcb5064526dd3744e1672dd9fd5f172c70f501a6114b016aa8c8256a8168d2ae0a75dd8e7344 SHA512 38c11f52ff1e42965b50a22bf6de80b0fa8ebbff841d825e760abf69c788a2bf5f34e6f7fc047574d595118334eef9edf8da5520b52cdde3ac1a79d7ad70312e
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/src/network/network.cc
|
||||
+++ b/src/network/network.cc
|
||||
@@ -335,7 +335,7 @@ bool Connection::try_bind( const char *addr, int port_low, int port_high )
|
||||
}
|
||||
}
|
||||
|
||||
- if ( bind( sock(), &local_addr.sa, local_addr_len ) == 0 ) {
|
||||
+ if ( ::bind( sock(), &local_addr.sa, local_addr_len ) == 0 ) {
|
||||
set_MTU( local_addr.sa.sa_family );
|
||||
return true;
|
||||
} else if ( i == search_high ) { /* last port to search */
|
||||
@@ -8,7 +8,6 @@
|
||||
<use>
|
||||
<flag name="client">Build network client</flag>
|
||||
<flag name="examples">Include example scripts</flag>
|
||||
<flag name="mosh-hardening">Enable compiler and linker options to frustrate memory corruption exploits</flag>
|
||||
<flag name="nettle">Use <pkg>dev-libs/nettle</pkg> for some cryptographic functions instead of <pkg>dev-libs/openssl</pkg>. With Nettle, some of mosh's own code is used for OCB.</flag>
|
||||
<flag name="server">Build network server</flag>
|
||||
<flag name="ufw">Install <pkg>net-firewall/ufw</pkg> rule set</flag>
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools bash-completion-r1 flag-o-matic
|
||||
|
||||
DESCRIPTION="Mobile shell that supports roaming and intelligent local echo"
|
||||
HOMEPAGE="https://mosh.org"
|
||||
SRC_URI="https://mosh.org/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||
IUSE="+client examples +mosh-hardening +server ufw +utempter"
|
||||
|
||||
REQUIRED_USE="
|
||||
|| ( client server )
|
||||
examples? ( client )"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/protobuf:=
|
||||
sys-libs/ncurses:=
|
||||
sys-libs/zlib
|
||||
virtual/ssh
|
||||
client? (
|
||||
dev-lang/perl
|
||||
dev-perl/IO-Tty
|
||||
)
|
||||
dev-libs/openssl:=
|
||||
utempter? (
|
||||
sys-libs/libutempter
|
||||
)"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
# [0] - avoid sandbox-violation calling git describe in Makefile.
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.2.5-git-version.patch
|
||||
"${FILESDIR}"/${P}-bind-misinterpret.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
MAKEOPTS+=" V=1"
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# protobuf needs >=c++14
|
||||
append-cxxflags -std=gnu++14
|
||||
|
||||
econf \
|
||||
--disable-completion \
|
||||
$(use_enable client) \
|
||||
$(use_enable server) \
|
||||
$(use_enable examples) \
|
||||
$(use_enable ufw) \
|
||||
$(use_enable mosh-hardening hardening) \
|
||||
$(use_with utempter)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
for myprog in $(find src/examples -type f -perm /0111) ; do
|
||||
newbin ${myprog} ${PN}-$(basename ${myprog})
|
||||
elog "${myprog} installed as ${PN}-$(basename ${myprog})"
|
||||
done
|
||||
|
||||
# bug 477384
|
||||
dobashcomp conf/bash-completion/completions/mosh
|
||||
}
|
||||
Reference in New Issue
Block a user