You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=mtr
  9. PKG_VERSION:=0.85
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=ftp://ftp.bitwizard.nl/mtr
  13. PKG_MD5SUM:=5e665c617e5659b6ec3e201ee7488eb1
  14. PKG_INSTALL:=1
  15. PKG_FIXUP:=autoreconf
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/mtr
  18. SECTION:=net
  19. CATEGORY:=Network
  20. DEPENDS:=+libncurses
  21. TITLE:=Full screen ncurses traceroute tool
  22. URL:=http://www.bitwizard.nl/mtr/
  23. MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
  24. endef
  25. define Package/mtr/description
  26. mtr combines the functionality of the 'traceroute' and 'ping' programs
  27. in a single network diagnostic tool.
  28. As mtr starts, it investigates the network connection between the host
  29. mtr runs on and a user-specified destination host. After it
  30. determines the address of each network hop between the machines,
  31. it sends a sequence ICMP ECHO requests to each one to determine the
  32. quality of the link to each machine. As it does this, it prints
  33. running statistics about each machine.
  34. endef
  35. CONFIGURE_ARGS += \
  36. --without-gtk \
  37. --without-glib \
  38. define Build/Configure
  39. (cd $(PKG_BUILD_DIR); touch \
  40. configure.in \
  41. aclocal.m4 \
  42. Makefile.in \
  43. img/Makefile.in \
  44. stamp-h.in \
  45. config.h.in \
  46. configure \
  47. );
  48. $(call Build/Configure/Default)
  49. endef
  50. define Package/mtr/install
  51. $(INSTALL_DIR) $(1)/usr/sbin
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mtr $(1)/usr/sbin/
  53. endef
  54. $(eval $(call BuildPackage,mtr))