Skip to contentSkip to conversation

mtr: new package

PATCH New Gustavo Zacarias 2 participants 2 messages Jan 29, 2014 – Feb 2, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mtr: new package

---
 package/Config.in     |  1 +
 package/mtr/Config.in |  9 +++++++++
 package/mtr/mtr.mk    | 24 ++++++++++++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 100644 package/mtr/Config.in
 create mode 100644 package/mtr/mtr.mk
package/Config.in +1 -0
index d54ffef..3205936 100644
@@ -888,6 +888,7 @@ source "package/mongoose/Config.in"
 source "package/mongrel2/Config.in"
 source "package/mrouted/Config.in"
 source "package/msmtp/Config.in"
+source "package/mtr/Config.in"
 source "package/mutt/Config.in"
 source "package/nbd/Config.in"
 source "package/ncftp/Config.in"
package/mtr/Config.in new file +9 -0
new file mode 100644
index 0000000..842d6ca
@@ -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/
package/mtr/mtr.mk new file +24 -0
new file mode 100644
index 0000000..a96bf0c
@@ -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))
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH v2 1/1 mtr: new package

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

---
 package/Config.in     |  1 +
 package/mtr/Config.in |  9 +++++++++
 package/mtr/mtr.mk    | 24 ++++++++++++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 100644 package/mtr/Config.in
 create mode 100644 package/mtr/mtr.mk

Committed, thanks.

package/mtr/mtr.mk line 9

Quoted 3 lines
package/mtr/mtr.mk new file +3 -0
+MTR_VERSION = 0.85
+MTR_SITE = ftp://ftp.bitwizard.nl/mtr
+MTR_CONF_OPT = --without-gtk --without-glib

It would be nice to see a followup patch adding glib / gtk support if enabled.

Signature · 1 line
Bye, Peter Korsgaard