mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 09:27:19 +02:00
38 lines
1.2 KiB
Text
38 lines
1.2 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=dublin-traceroute
|
|
pkgver=0.4.2
|
|
pkgrel=4
|
|
pkgdesc="A NAT-aware multipath traceroute tool"
|
|
url="https://dublin-traceroute.net/"
|
|
arch="all"
|
|
license="BSD-2-Clause"
|
|
options="!check" # no googletest avail
|
|
makedepends="python3-dev cmake jsoncpp-dev
|
|
libtins-dev libpcap-dev openssl-dev
|
|
samurai"
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-contrib::noarch"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/insomniacslk/dublin-traceroute/archive/v$pkgver.tar.gz"
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
install -D -m 644 ./COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
|
|
}
|
|
|
|
contrib() {
|
|
pkgdesc="Contrib scripts for $pkgname"
|
|
depends="py3-pygraphviz python3"
|
|
cd "$builddir"
|
|
install -D -m 755 scripts/to_graphviz.py "$subpkgdir"/usr/bin/dublin-to-graphviz
|
|
}
|
|
|
|
sha512sums="
|
|
4711dbf1fd6190e0260e5dd0f5e2f296ccb88cc1fc301260f01fb357f44cc42f11a82d4ab09f9f571fabee4516374e87fb1bea8971432a6f145116cef57f553a dublin-traceroute-0.4.2.tar.gz
|
|
"
|