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.

73 lines
1.8 KiB

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