mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-08 14:15:07 +02:00
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/38349 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
50 lines
969 B
Bash
50 lines
969 B
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
MY_PV="${PV/./_}"
|
|
|
|
DESCRIPTION="Internet bandwidth tester"
|
|
HOMEPAGE="https://tptest.sourceforge.net/"
|
|
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ppc sparc x86"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-3.1.7-getstatsfromlinevuln.patch
|
|
"${FILESDIR}"/${PN}-3.1.7-clang16-build-fix.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
sed -i apps/unix/{client,server}/Makefile \
|
|
-e "s:^CFLAGS[[:space:]]*=:CFLAGS+=:" \
|
|
|| die
|
|
|
|
cp -f os-dep/unix/* . || die
|
|
cp -f engine/* . || die
|
|
}
|
|
|
|
src_compile() {
|
|
emake -C apps/unix/client \
|
|
CC="$(tc-getCC)" \
|
|
LDFLAGS="${LDFLAGS}"
|
|
|
|
emake -C apps/unix/server \
|
|
CC="$(tc-getCC)" \
|
|
LDFLAGS="${LDFLAGS}"
|
|
}
|
|
|
|
src_install() {
|
|
dobin apps/unix/client/tptestclient
|
|
dosbin apps/unix/server/tptestserver
|
|
|
|
insinto /etc
|
|
doins apps/unix/server/tptest.conf
|
|
}
|