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