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