summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMantas Mikulėnas2016-12-25 13:45:26 +0200
committerMantas Mikulėnas2016-12-25 13:45:26 +0200
commitef79846bcc2d3443281d94923096b57c65a8b4cd (patch)
treeb818a00edd135d619db8b6ae1720ee48b2cfabde
downloadaur-ef79846bcc2d3443281d94923096b57c65a8b4cd.tar.gz
initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD38
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d1c4f0c6d25
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Sun Dec 25 11:45:20 UTC 2016
+pkgbase = dublin-traceroute
+ pkgdesc = NAT-aware multipath tracerouting tool
+ pkgver = 0.4.0
+ pkgrel = 1
+ url = https://dublin-traceroute.net/
+ arch = i686
+ arch = x86_64
+ license = custom:BSD-2-clause
+ depends = jsoncpp
+ depends = libtins
+ optdepends = python2-pygraphviz
+ source = git+https://github.com/insomniacslk/dublin-traceroute#commit=7d062825bced684adbd4a8f6fe66871a4aa1505c
+ sha256sums = SKIP
+
+pkgname = dublin-traceroute
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f23f07b1f2a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Mantas Mikulėnas <grawity@gmail.com>
+pkgname=dublin-traceroute
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="NAT-aware multipath tracerouting tool"
+arch=(i686 x86_64)
+url="https://dublin-traceroute.net/"
+license=(custom:BSD-2-clause)
+depends=(jsoncpp libtins)
+optdepends=(python2-pygraphviz)
+_commit=7d062825bced684adbd4a8f6fe66871a4aa1505c # v0.4.0
+source=("git+https://github.com/insomniacslk/dublin-traceroute#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ git describe --tags | sed 's/^v//; s/-/.r/; s/-/./'
+}
+
+build() {
+ cd "$pkgname"
+ sed -i '1s/\<python\>/&2/' scripts/*.py
+
+ rm -rf build; mkdir build; cd build
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "$pkgname/build"
+ make DESTDIR="$pkgdir" install
+
+ cd ..
+ install -D -m 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+ install -D -m 755 scripts/to_graphviz.py "$pkgdir"/usr/bin/dublin-to-graphviz
+}
+
+# vim: ts=2:sw=2:et:ft=sh