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