diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-27 03:24:51 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-27 03:24:51 -0500 |
commit | 0b742ec3f1217699497b23ec293ac0f2007a4042 (patch) | |
tree | 45b4439bb6e3af91e72ad1ada253b0d6481a880e /user | |
parent | 56cc8f0f971d2062ba57d3c7938e95344ac18464 (diff) | |
download | packages-0b742ec3f1217699497b23ec293ac0f2007a4042.tar.gz packages-0b742ec3f1217699497b23ec293ac0f2007a4042.tar.bz2 packages-0b742ec3f1217699497b23ec293ac0f2007a4042.tar.xz packages-0b742ec3f1217699497b23ec293ac0f2007a4042.zip |
user/mtr: pull in, fix up, modernise, etc
Diffstat (limited to 'user')
-rw-r--r-- | user/mtr/APKBUILD | 57 | ||||
-rw-r--r-- | user/mtr/mtr-gtk.desktop | 11 |
2 files changed, 68 insertions, 0 deletions
diff --git a/user/mtr/APKBUILD b/user/mtr/APKBUILD new file mode 100644 index 000000000..5bb39cb8a --- /dev/null +++ b/user/mtr/APKBUILD @@ -0,0 +1,57 @@ +# Contributor: John Keith Hohm <john@hohm.net> +# Maintainer: +pkgname=mtr +pkgver=0.92 +pkgrel=1 +pkgdesc="Full screen ncurses traceroute tool" +url="https://www.bitwizard.nl/mtr/" +arch="all" +options="!check suid" # Tests need networking. +license="GPL-2.0-only AND LGPL-3.0-only AND BSD-3-Clause" +depends="ncurses" +makedepends="gtk+2.0-dev libcap-dev ncurses-dev" +subpackages="$pkgname-doc $pkgname-gtk" +source="https://www.bitwizard.nl/$pkgname/files/$pkgname-$pkgver.tar.gz + mtr-gtk.desktop + " + +build() { + cd "$builddir" + mkdir -p mtr curses gtk + + export GIT_DIR="$builddir" + export LIBS="-ltinfo" + cd "$builddir"/curses + ../configure --prefix=/usr \ + --without-gtk + make + + cd "$builddir"/gtk + ../configure --prefix=/usr \ + --with-gtk \ + --program-suffix=-gtk + make + unset LIBS GIT_DIR +} + +package() { + cd "$builddir"/curses + make DESTDIR="$pkgdir" install + cd "$builddir"/gtk + make DESTDIR="$pkgdir" install + install -D -m 644 "$srcdir"/mtr-gtk.desktop \ + "$pkgdir"/usr/share/applications/mtr-gtk.desktop + install -D -m 644 "$builddir"/img/mtr_icon.xpm \ + "$pkgdir"/usr/share/pixmaps/mtr_icon.xpm +} + +gtk() { + pkgdesc="Graphical traceroute tool" + mkdir -p "$subpkgdir"/usr/sbin "$subpkgdir"/usr/share + mv "$pkgdir"/usr/sbin/mtr*-gtk "$subpkgdir"/usr/sbin/ + mv "$pkgdir"/usr/share/applications "$subpkgdir"/usr/share/ + mv "$pkgdir"/usr/share/pixmaps "$subpkgdir"/usr/share/ +} + +sha512sums="d362a418b6c17fd2d08da1ed9e033fa3330e4c0497e1bb0644f6193d23f4e20dd8ee181942c2a20ec0025a8b96c521394a21be5a1d9036f8a0a8c4cddfbe381f mtr-0.92.tar.gz +ecf7543e0125fad6d3f17c30f29f1fc8a3b1e2e477802fe8464e436c3cdfa30d0630b8543cc3f022c475228e94ac8f92981df4d8fb08fe01d004be3d78d6da77 mtr-gtk.desktop" diff --git a/user/mtr/mtr-gtk.desktop b/user/mtr/mtr-gtk.desktop new file mode 100644 index 000000000..8a512aaae --- /dev/null +++ b/user/mtr/mtr-gtk.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Traceroute +Type=Application +Comment=Traces packets between two network hosts +Exec=mtr-gtk +Terminal=false +Icon=mtr_icon.xpm +Encoding=UTF-8 +X-Desktop-File-Install-Version=0.2 +Categories=System;Application; + |