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