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.

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