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