You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
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
|
|
"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~ppc x86"
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P/_p*}-exit.patch
|
|
"${FILESDIR}"/${P/_p*}-gentoo.patch
|
|
"${FILESDIR}"/${P/_p*}-log2.patch
|
|
"${FILESDIR}"/${P/_p*}-tpserv-log.patch
|
|
)
|
|
S=${WORKDIR}/${P/_p*}
|
|
|
|
src_prepare() {
|
|
eapply "${WORKDIR}"/${PN}_${PV/_p*}-$(ver_cut 4).$(ver_cut 6).diff
|
|
default
|
|
}
|
|
|
|
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
|
|
}
|