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.

69 lines
1.7 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.86
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=ftp://ftp.bitwizard.nl/mtr
  13. PKG_MD5SUM:=8d63592c9d4579ef20cf491b41843eb2
  14. PKG_LICENSE:=GPL-2.0+
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_INSTALL:=1
  17. PKG_FIXUP:=autoreconf
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/mtr
  20. SECTION:=net
  21. CATEGORY:=Network
  22. DEPENDS:=+libncurses
  23. TITLE:=Full screen ncurses traceroute tool
  24. URL:=http://www.bitwizard.nl/mtr/
  25. PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
  26. endef
  27. define Package/mtr/description
  28. mtr combines the functionality of the 'traceroute' and 'ping' programs
  29. in a single network diagnostic tool.
  30. As mtr starts, it investigates the network connection between the host
  31. mtr runs on and a user-specified destination host. After it
  32. determines the address of each network hop between the machines,
  33. it sends a sequence ICMP ECHO requests to each one to determine the
  34. quality of the link to each machine. As it does this, it prints
  35. running statistics about each machine.
  36. endef
  37. CONFIGURE_ARGS += \
  38. --without-gtk \
  39. --without-glib \
  40. $(call autoconf_bool,CONFIG_IPV6,ipv6)
  41. define Build/Configure
  42. (cd $(PKG_BUILD_DIR); touch \
  43. configure.in \
  44. aclocal.m4 \
  45. Makefile.in \
  46. img/Makefile.in \
  47. stamp-h.in \
  48. config.h.in \
  49. configure \
  50. );
  51. $(call Build/Configure/Default)
  52. endef
  53. define Package/mtr/install
  54. $(INSTALL_DIR) $(1)/usr/sbin
  55. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mtr $(1)/usr/sbin/
  56. endef
  57. $(eval $(call BuildPackage,mtr))