aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mtr/APKBUILD
blob: 4e5a09427319ecd816702a4c9cd15b622fd6cad2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: John Keith Hohm <john@hohm.net>
# Maintainer:
pkgname=mtr
pkgver=0.82
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"
install=""
subpackages="$pkgname-doc"
source="ftp://ftp.bitwizard.nl/$pkgname/$pkgname-$pkgver.tar.gz
	0001-dns-allow-disable-dns-during-compile-time.patch
	"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	aclocal && touch ChangeLog && autoreconf
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--without-gtk \
		--disable-dns \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="10601ea543fda3e51545c4bce195b64c  mtr-0.82.tar.gz
ed4af88ccd422ba41f0c17268878cf4f  0001-dns-allow-disable-dns-during-compile-time.patch"