SwordArMor-gentoo-overlay/net-analyzer/dublin-traceroute/dublin-traceroute-0.4.2.ebuild
Alarig Le Lay f1459f01e1
net-analyzer/dublin-traceroute: New ebuild
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
2020-03-30 23:52:02 +02:00

37 lines
839 B
Bash

# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake-utils fcaps
DESCRIPTION="NAT-aware multipath tracerouting tool"
HOMEPAGE="https://dublin-traceroute.net/"
MY_GITHUB_AUTHOR="insomniacslk"
SRC_URI="https://github.com/${MY_GITHUB_AUTHOR}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="caps"
DEPEND="caps? ( sys-libs/libcap )"
RDEPEND="
${DEPEND}
net-libs/libpcap
"
BDEPEND="
dev-libs/jsoncpp
net-libs/libtins
"
pkg_postinst() {
fcaps cap_net_raw+ep usr/bin/dublin-traceroute
einfo ""
einfo "In order to generate nice output (instead of a JSON), you may want"
einfo "to install dev-python/dublin-traceroute and run"
einfo "'python -m dublintraceroute plot trace.json' after dublin-traceroute"
einfo ""
}