blob: 84675a59420500e9441ea03e693d6145c8a53f5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DEB_PL="1"
DESCRIPTION="Traceroute with AS lookup, TOS support, MTU discovery and other features"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
SRC_URI="
https://dev.gentoo.org/~jsmolic/distfiles/${PN}_${PV/_p*}.orig.tar.gz
https://dev.gentoo.org/~jsmolic/distfiles/${PN}_${PV/_p*}-${PV/*_p}.diff.gz
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm ~ppc ~riscv x86"
S=${WORKDIR}/${P/_p*}.orig
src_prepare() {
eapply "${WORKDIR}"/${PN}_${PV/_p*}-${PV/*_p}.diff
eapply \
$(
for i in $( cat "${S}"/debian/patches/00list )
do
echo "${S}"/debian/patches/$i.dpatch
done
)
eapply_user
}
src_compile() {
$(tc-getCC) traceroute.c -o ${PN} ${CFLAGS} -DSTRING ${LDFLAGS} -lresolv -lm \
|| die
}
src_install() {
dosbin traceroute-nanog
dodoc 0_readme.txt faq.txt
newman "${S}"/debian/traceroute-nanog.genuine.8 traceroute-nanog.8
}
|