diff options
author | John Keith Hohm <john@hohm.net> | 2011-07-11 16:21:37 -0500 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-07-12 07:09:05 +0000 |
commit | f7ebb417505cb113ae7096eef7c296d18be7264c (patch) | |
tree | b84e697da8cfbb418e9dfadb718d5a1056e6f791 /testing/mtr/APKBUILD | |
parent | 552607994b74797f7045053c5a568c11cd5a6c4f (diff) | |
download | aports-f7ebb417505cb113ae7096eef7c296d18be7264c.tar.bz2 aports-f7ebb417505cb113ae7096eef7c296d18be7264c.tar.xz |
testing/mtr: new aport
Full screen ncurses traceroute tool
http://www.bitwizard.nl/mtr/
Diffstat (limited to 'testing/mtr/APKBUILD')
-rw-r--r-- | testing/mtr/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/mtr/APKBUILD b/testing/mtr/APKBUILD new file mode 100644 index 000000000..d2c155906 --- /dev/null +++ b/testing/mtr/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: John Keith Hohm <john@hohm.net> +# Maintainer: +pkgname=mtr +pkgver=0.80 +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" +install="" +subpackages="$pkgname-doc" +source="ftp://ftp.bitwizard.nl/$pkgname/$pkgname-$pkgver.tar.gz + mtr-res_mkquery.patch + " + +_builddir="src/$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 +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --without-gtk \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="fa68528eaec1757f52bacf9fea8c68a9 mtr-0.80.tar.gz +f5982bdacddd8c1ea26d578b62bf810c mtr-res_mkquery.patch" |