aboutsummaryrefslogtreecommitdiff
path: root/package/mtr
diff options
context:
space:
mode:
authorGravatar Gustavo Zacarias <gustavo@zacarias.com.ar>2014-01-29 17:03:44 -0300
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-02-02 22:04:32 +0100
commit22bbca9b91289e063852333ea9044b82cf1de37d (patch)
tree2c73d246c05507c7362d927d575537aaac415faf /package/mtr
parentbc8ede2bb335d83029a2ad15515fa4e44fbd4e0a (diff)
downloadbuildroot-22bbca9b91289e063852333ea9044b82cf1de37d.tar.gz
buildroot-22bbca9b91289e063852333ea9044b82cf1de37d.tar.bz2
mtr: new package
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/mtr')
-rw-r--r--package/mtr/Config.in9
-rw-r--r--package/mtr/mtr.mk24
2 files changed, 33 insertions, 0 deletions
diff --git a/package/mtr/Config.in b/package/mtr/Config.in
new file mode 100644
index 0000000000..842d6ca84d
--- /dev/null
+++ b/package/mtr/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_MTR
+ bool "mtr"
+ # res_mkquery() only available in 0.9.33+
+ depends on !BR2_UCLIBC_VERSION_0_9_31 && !BR2_UCLIBC_VERSION_0_9_32
+ help
+ mtr combines the functionality of the 'traceroute' and 'ping'
+ programs in a single network diagnostic tool.
+
+ http://www.bitwizard.nl/mtr/
diff --git a/package/mtr/mtr.mk b/package/mtr/mtr.mk
new file mode 100644
index 0000000000..a96bf0cfaa
--- /dev/null
+++ b/package/mtr/mtr.mk
@@ -0,0 +1,24 @@
+################################################################################
+#
+# mtr
+#
+################################################################################
+
+MTR_VERSION = 0.85
+MTR_SITE = ftp://ftp.bitwizard.nl/mtr
+MTR_CONF_OPT = --without-gtk --without-glib
+MTR_DEPENDENCIES = host-pkgconf $(if $(BR2_PACKAGE_NCURSES),ncurses)
+MTR_LICENSE = GPLv2
+MTR_LICENSE_FILES = COPYING
+
+# uClibc has res_ninit but not res_nmkquery
+ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
+define MTR_DISABLE_RES_NINIT
+ $(SED) 's/#ifdef res_ninit/#if 0/' \
+ $(@D)/dns.c
+endef
+endif
+
+MTR_POST_PATCH_HOOKS += MTR_DISABLE_RES_NINIT
+
+$(eval $(call autotools-package))