874947d81c09edbbd62eefcfdca87ad02fff616f
[openwrt/svn-archive/archive.git] / net / mtr / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=mtr
12 PKG_VERSION:=0.73
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.bitwizard.nl/mtr/
17 PKG_MD5SUM:=52223cc34c72092a0392865356a3dc76
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/mtr
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+libncurses
25 TITLE:=Full screen ncurses traceroute tool
26 URL:=http://www.bitwizard.nl/mtr/
27 endef
28
29 define Package/mtr/description
30 mtr combines the functionality of the 'traceroute' and 'ping' programs
31 in a single network diagnostic tool.
32 As mtr starts, it investigates the network connection between the host
33 mtr runs on and a user-specified destination host. After it
34 determines the address of each network hop between the machines,
35 it sends a sequence ICMP ECHO requests to each one to determine the
36 quality of the link to each machine. As it does this, it prints
37 running statistics about each machine.
38 endef
39
40 define Build/Configure
41 (cd $(PKG_BUILD_DIR); touch \
42 configure.in \
43 aclocal.m4 \
44 Makefile.in \
45 img/Makefile.in \
46 stamp-h.in \
47 config.h.in \
48 configure \
49 );
50 $(call Build/Configure/Default, \
51 --without-gtk \
52 , \
53 ac_cv_lib_resolv_res_mkquery=yes \
54 )
55 endef
56
57 define Build/Compile
58 $(MAKE) -C $(PKG_BUILD_DIR) \
59 DESTDIR="$(PKG_INSTALL_DIR)" \
60 all install
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))