aboutsummaryrefslogtreecommitdiffstats
path: root/main/mtr/APKBUILD
diff options
context:
space:
mode:
authorDaniel Isaksen <d@duniel.no>2017-09-17 19:59:45 +0200
committerTimo Teräs <timo.teras@iki.fi>2017-09-21 05:34:23 +0000
commit9fb9327b865073ad05a955f3f58fdcfa6fcb1c33 (patch)
tree3ee3102a037e6840652b958516aa489eff2195e4 /main/mtr/APKBUILD
parent9df0fe5251ee31f5c0baa1a71e57d2ca17bfbf25 (diff)
downloadaports-9fb9327b865073ad05a955f3f58fdcfa6fcb1c33.tar.bz2
aports-9fb9327b865073ad05a955f3f58fdcfa6fcb1c33.tar.xz
main/mtr: bump version to 0.92, fixes #3605 and removes DNS patch
[TT: use libcap, modernize, remove automake/autoconf regen, fix split]
Diffstat (limited to 'main/mtr/APKBUILD')
-rw-r--r--main/mtr/APKBUILD68
1 files changed, 26 insertions, 42 deletions
diff --git a/main/mtr/APKBUILD b/main/mtr/APKBUILD
index c838b6061e..1d28d1207b 100644
--- a/main/mtr/APKBUILD
+++ b/main/mtr/APKBUILD
@@ -1,76 +1,60 @@
# Contributor: John Keith Hohm <john@hohm.net>
# Maintainer:
pkgname=mtr
-pkgver=0.82
-pkgrel=4
+pkgver=0.92
+pkgrel=0
pkgdesc="Full screen ncurses traceroute tool"
url="http://www.bitwizard.nl/mtr/"
arch="all"
license="GPL"
depends="ncurses"
depends_dev="ncurses-dev"
-makedepends="$depends_dev autoconf automake gtk+2.0-dev"
+makedepends="$depends_dev gtk+2.0-dev libcap-dev"
install=""
options="suid"
subpackages="$pkgname-doc $pkgname-gtk"
source="ftp://ftp.bitwizard.nl/$pkgname/$pkgname-$pkgver.tar.gz
- 0001-dns-allow-disable-dns-during-compile-time.patch
mtr-gtk.desktop
"
-
-_builddir="$srcdir/$pkgname-$pkgver"
-prepare() {
- local i
- cd "$_builddir"
- mkdir mtr curses gtk
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
- aclocal && touch ChangeLog && autoconf && automake --add-missing
-}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
- cd "$_builddir"/curses
+ cd "$builddir"
+ mkdir -p mtr curses gtk
+
+ export GIT_DIR="$builddir"
+ cd "$builddir"/curses
../configure --prefix=/usr \
- --disable-dns \
- --without-gtk \
- || return 1
- make || return 1
+ --without-gtk
+ make
- cd "$_builddir"/gtk
+ cd "$builddir"/gtk
../configure --prefix=/usr \
- --disable-dns \
--with-gtk \
- --program-suffix=-gtk \
- || return 1
- make || return 1
+ --program-suffix=-gtk
+ make
+ unset GIT_DIR
}
package() {
- cd "$_builddir"/curses
- make DESTDIR="$pkgdir" install || return 1
- cd "$_builddir"/gtk
- make DESTDIR="$pkgdir" install || return 1
+ 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 \
- || return 1
- install -D -m 644 "$_builddir"/img/mtr_icon.xpm \
- "$pkgdir"/usr/share/pixmaps/mtr_icon.xpm || return 1
+ "$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="The GTK+ interface for mtr"
- mkdir -p "$subpkgdir"/usr/sbin \
- "$subpkgdir"/usr/share
- mv "$pkgdir"/usr/sbin/mtr-gtk "$subpkgdir"/usr/sbin/
+ 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="122bc7aafe4441505046b331dcc42347e939fd974ece508dad04a7630904403eaec49ad6b2e483b5a94fc07726a14fad1405306c3729f1dc9b707ea66b529751 mtr-0.82.tar.gz
-76f82053f1cf4893ee3a2bb2bd55aea63f6df2780268cb71d07add71284bc91e3e10feb6981104d8f7e8edc4947281e442f0b40e6721dc44c9988764fc25772d 0001-dns-allow-disable-dns-during-compile-time.patch
-b61d60e3afac7a9ab5f0ea4cf45f73105acb2e0f7ad8460ab2f6c2a24fa229c52eecc17403eb9b57719c771e32d4f1930605623c9e80ec1245790bccf7f8af6b mtr-gtk.desktop"
+sha512sums="d362a418b6c17fd2d08da1ed9e033fa3330e4c0497e1bb0644f6193d23f4e20dd8ee181942c2a20ec0025a8b96c521394a21be5a1d9036f8a0a8c4cddfbe381f mtr-0.92.tar.gz
+ecf7543e0125fad6d3f17c30f29f1fc8a3b1e2e477802fe8464e436c3cdfa30d0630b8543cc3f022c475228e94ac8f92981df4d8fb08fe01d004be3d78d6da77 mtr-gtk.desktop"