net-misc/socat: Sync with Gentoo

It's from Gentoo commit 8d24c67c2c2561a74447d91e61ddaf8916e6cc5c.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2026-01-12 07:16:26 +00:00 committed by Krzesimir Nowak
parent a5d0bc417a
commit a3959c0f9a
3 changed files with 65 additions and 1 deletions

View File

@ -1 +1,2 @@
DIST socat-1.8.0.3.tar.bz2 594396 BLAKE2B a152b1da6332ff925299deca2e39c09e7c3042e14a87b2d6f6fb6c263489291be54ed001d37908767b3164140de262b702a65833c792b1e607781dc5e89e0fdf SHA512 6425c42cf4a3cbe253d238213d11e7daae8f8a09fcce2634c8ce220bb3352a824a80ecfa36330007cf5c537f60fea057e9f68410bccb843ff4666e775c5dcd8e
DIST socat-1.8.1.0.tar.bz2 606066 BLAKE2B 616814d9da8fb0bd7b7e02a65e4e5c4d9d0a5380f85d8151af5a0146e1497c8c4829a7c10ee2e26239bbfa7fa29011c24f6bbf10e59374a9e9db872d3739c2e9 SHA512 d53ee4c881efd564a86a6224c061a634ec17b96ddf419cbbfe6966db537cd452ebe81f33e265855537c3e55de026720cd9f1a4359f6ec04c5d890b600aef3a58

View File

@ -13,7 +13,7 @@ S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos"
IUSE="ipv6 readline ssl tcpd"
# bug #946404 (and many others), whack-a-mole with timeouts and friends
# Try again in the future.

View File

@ -0,0 +1,63 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit edo flag-o-matic toolchain-funcs
MY_P=${P/_beta/-b}
DESCRIPTION="Multipurpose relay (SOcket CAT)"
HOMEPAGE="http://www.dest-unreach.org/socat/ https://repo.or.cz/socat.git"
SRC_URI="http://www.dest-unreach.org/socat/download/${MY_P}.tar.bz2"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
IUSE="ipv6 readline ssl tcpd"
# bug #946404 (and many others), whack-a-mole with timeouts and friends
# Try again in the future.
RESTRICT="test"
DEPEND="
ssl? ( >=dev-libs/openssl-3:= )
readline? ( sys-libs/readline:= )
tcpd? ( sys-apps/tcp-wrappers )
"
RDEPEND="${DEPEND}"
DOCS=( BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ FILES PORTING README SECURITY )
src_configure() {
# bug #293324
filter-flags '-Wno-error*'
tc-export AR
local myeconfargs=(
$(use_enable ssl openssl)
$(use_enable readline)
$(use_enable ipv6 ip6)
$(use_enable tcpd libwrap)
)
econf "${myeconfargs[@]}"
}
src_test() {
# Most tests are skipped because they need network access or a TTY
# Some are for /dev permissions probing (bug #940740)
# 518 519 need extra permissions
edo ./test.sh -v --expect-fail 13,15,87,217,311,313,370,388,410,466,478,518,519,528
}
src_install() {
default
docinto html
dodoc doc/*.html doc/*.css
if use elibc_musl; then
QA_CONFIG_IMPL_DECL_SKIP=( getprotobynumber_r )
fi
}