2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.bitwizard.nl/mtr/
17 PKG_MD5SUM:=52223cc34c72092a0392865356a3dc76
19 include $(INCLUDE_DIR)/package.mk
25 TITLE:=Full screen ncurses traceroute tool
26 URL:=http://www.bitwizard.nl/mtr/
29 define Package/mtr/description
30 mtr combines the functionality of the 'traceroute' and 'ping' programs
31 in a single network diagnostic tool.
32 As mtr starts, it investigates the network connection between the host
33 mtr runs on and a user-specified destination host. After it
34 determines the address of each network hop between the machines,
35 it sends a sequence ICMP ECHO requests to each one to determine the
36 quality of the link to each machine. As it does this, it prints
37 running statistics about each machine.
40 define Build/Configure
41 (cd $(PKG_BUILD_DIR); touch \
50 $(call Build/Configure/Default, \
53 ac_cv_lib_resolv_res_mkquery=yes \
58 $(MAKE) -C $(PKG_BUILD_DIR) \
59 DESTDIR="$(PKG_INSTALL_DIR)" \
63 define Package/mtr/install
64 $(INSTALL_DIR) $(1)/usr/sbin
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mtr $(1)/usr/sbin/
68 $(eval $(call BuildPackage,mtr))