2014-07-19 13:18:37 +00:00
|
|
|
#
|
2015-06-18 15:32:51 +00:00
|
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
2014-07-19 13:18:37 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mtr
|
2018-07-16 17:20:44 +00:00
|
|
|
PKG_VERSION:=0.92
|
2018-09-06 07:10:25 +00:00
|
|
|
PKG_RELEASE:=4
|
2018-07-16 17:20:44 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2018-09-01 23:55:55 +00:00
|
|
|
PKG_SOURCE_URL:=https://www.bitwizard.nl/mtr/files
|
|
|
|
PKG_HASH:=f2979db9e2f41aa8e6574e7771767c9afe111d9213814eb47f5e1e71876e4382
|
2014-07-19 13:18:37 +00:00
|
|
|
|
2018-09-01 23:55:55 +00:00
|
|
|
PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
|
2014-08-13 23:54:44 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0+
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2014-07-19 13:18:37 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2018-07-16 17:20:44 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-07-19 13:18:37 +00:00
|
|
|
|
2018-09-06 07:10:25 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
|
2014-07-19 13:18:37 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/mtr
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+libncurses
|
|
|
|
TITLE:=Full screen ncurses traceroute tool
|
2018-07-23 23:55:21 +00:00
|
|
|
URL:=https://www.bitwizard.nl/mtr/
|
2014-07-19 13:18:37 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mtr/description
|
|
|
|
mtr combines the functionality of the 'traceroute' and 'ping' programs
|
|
|
|
in a single network diagnostic tool.
|
|
|
|
As mtr starts, it investigates the network connection between the host
|
|
|
|
mtr runs on and a user-specified destination host. After it
|
|
|
|
determines the address of each network hop between the machines,
|
|
|
|
it sends a sequence ICMP ECHO requests to each one to determine the
|
|
|
|
quality of the link to each machine. As it does this, it prints
|
|
|
|
running statistics about each machine.
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-gtk \
|
2015-04-23 13:50:30 +00:00
|
|
|
$(call autoconf_bool,CONFIG_IPV6,ipv6)
|
2014-07-19 13:18:37 +00:00
|
|
|
|
2018-09-01 23:55:55 +00:00
|
|
|
CONFIGURE_VARS += ac_cv_lib_cap_cap_set_proc=no
|
|
|
|
|
2014-07-19 13:18:37 +00:00
|
|
|
define Package/mtr/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mtr $(1)/usr/sbin/
|
2018-07-23 23:55:21 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mtr-packet $(1)/usr/sbin/
|
2014-07-19 13:18:37 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mtr))
|