gentoo-ebuilds/net-analyzer/hunt/hunt-1.5_p6_p1-r1.ebuild
Sam James c0ae7d7a29
net-analyzer/hunt: Stabilize 1.5_p6_p1-r1 x86, #958909
Signed-off-by: Sam James <sam@gentoo.org>
2025-06-23 02:42:23 +01:00

44 lines
1.1 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic toolchain-funcs
DESCRIPTION="Tool for checking well known weaknesses in the TCP/IP protocol"
HOMEPAGE="http://lin.fsid.cvut.cz/~kra/index.html"
SRC_URI="
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}.orig.tar.gz
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-$(ver_cut 4).$(ver_cut 6).diff.gz"
S="${WORKDIR}/${P/_p*}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
PATCHES=(
"${WORKDIR}"/${PN}_1.5-6.1.diff
"${FILESDIR}"/${P/_p*}-exit.patch
"${FILESDIR}"/${P/_p*}-gentoo.patch
"${FILESDIR}"/${P/_p*}-log2.patch
"${FILESDIR}"/${P/_p*}-tpserv-log.patch
"${FILESDIR}"/${P/_p*}-c99-build-fix.patch
)
src_configure() {
append-cppflags -DSYNC_FAST
}
src_compile() {
local target
for target in . tpserv; do
emake CC="$(tc-getCC)" LDFLAGS="${CFLAGS} ${LDFLAGS}" -C "${target}"
done
}
src_install() {
dosbin hunt tpserv/tpserv tpsetup/transproxy
doman man/hunt.1
dodoc CHANGES README* TODO tpsetup/transproxy
newdoc debian/changelog debian.changelog
}