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.

70 lines
2.0 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:=5
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://www.bitwizard.nl/mtr/files
  13. PKG_HASH:=f2979db9e2f41aa8e6574e7771767c9afe111d9213814eb47f5e1e71876e4382
  14. PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
  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. # Creation of .tarball-version is an attempt to make it explicit to configure
  22. # script the program version. See discussions at link [1] for more details
  23. #
  24. # [1] mtr: add autoreconf, https://github.com/openwrt/packages/pull/6962#issuecomment-419156300
  25. #
  26. define Build/Prepare
  27. $(call Build/Prepare/Default)
  28. echo "$(PKG_VERSION)" >$(PKG_BUILD_DIR)/.tarball-version
  29. endef
  30. define Package/mtr
  31. SECTION:=net
  32. CATEGORY:=Network
  33. DEPENDS:=+libncurses
  34. TITLE:=Full screen ncurses traceroute tool
  35. URL:=https://www.bitwizard.nl/mtr/
  36. endef
  37. define Package/mtr/description
  38. mtr combines the functionality of the 'traceroute' and 'ping' programs
  39. in a single network diagnostic tool.
  40. As mtr starts, it investigates the network connection between the host
  41. mtr runs on and a user-specified destination host. After it
  42. determines the address of each network hop between the machines,
  43. it sends a sequence ICMP ECHO requests to each one to determine the
  44. quality of the link to each machine. As it does this, it prints
  45. running statistics about each machine.
  46. endef
  47. CONFIGURE_ARGS += \
  48. --without-gtk \
  49. $(call autoconf_bool,CONFIG_IPV6,ipv6)
  50. CONFIGURE_VARS += ac_cv_lib_cap_cap_set_proc=no
  51. define Package/mtr/install
  52. $(INSTALL_DIR) $(1)/usr/sbin
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mtr $(1)/usr/sbin/
  54. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mtr-packet $(1)/usr/sbin/
  55. endef
  56. $(eval $(call BuildPackage,mtr))