2013-07-08 10:58:56 +00:00
|
|
|
# Template file for 'mtr'
|
|
|
|
pkgname=mtr
|
2014-12-09 11:45:52 +00:00
|
|
|
version=0.86
|
2015-06-02 14:33:58 +00:00
|
|
|
revision=2
|
2014-02-22 22:46:21 +00:00
|
|
|
build_style="gnu-configure"
|
2015-06-02 14:33:58 +00:00
|
|
|
configure_args="--sbindir=/usr/bin"
|
2013-07-11 08:41:02 +00:00
|
|
|
hostmakedepends="automake pkg-config"
|
|
|
|
makedepends="ncurses-devel gtk+-devel"
|
2014-12-09 11:45:52 +00:00
|
|
|
short_desc="Combines the functionality of traceroute and ping into one tool"
|
2014-02-22 22:46:21 +00:00
|
|
|
maintainer="Steven R <dev@styez.com>"
|
2013-07-08 10:58:56 +00:00
|
|
|
license="GPL"
|
2014-12-09 11:45:52 +00:00
|
|
|
homepage="http://www.bitwizard.nl/mtr/"
|
|
|
|
distfiles="https://github.com/traviscross/mtr/archive/v${version}.tar.gz"
|
|
|
|
checksum=7912f049f9506748913e2866068b7f95b11a4e0a855322120b456c46ac9eb763
|
2014-08-23 20:08:13 +00:00
|
|
|
nocross=yes
|
2013-07-08 10:58:56 +00:00
|
|
|
|
|
|
|
pre_configure() {
|
2014-08-23 20:00:22 +00:00
|
|
|
./bootstrap.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
mkdir $wrksrc/build_nox $wrksrc/build_x11
|
|
|
|
cd $wrksrc/build_nox
|
|
|
|
$wrksrc/configure ${configure_args} --without-gtk
|
|
|
|
|
|
|
|
cd $wrksrc/build_x11
|
|
|
|
$wrksrc/configure ${configure_args}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
for p in $wrksrc/build_nox $wrksrc/build_x11; do
|
|
|
|
cd $p
|
|
|
|
make ${makejobs}
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
cd $wrksrc/build_nox
|
|
|
|
make DESTDIR=$DESTDIR install
|
|
|
|
}
|
|
|
|
|
|
|
|
mtr-x11_package() {
|
|
|
|
provides="mtr-${version}_${revision}"
|
|
|
|
replaces="mtr>0"
|
|
|
|
short_desc+=" - X11 version"
|
|
|
|
pkg_install() {
|
|
|
|
cd $wrksrc/build_x11
|
|
|
|
make DESTDIR=$PKGDESTDIR install
|
|
|
|
}
|
2013-07-08 10:58:56 +00:00
|
|
|
}
|