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.

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