source: packages/net/mtr/Makefile @ 19705

Last change on this file since 19705 was 19705, checked in by lars, 7 years ago

[packages] Use default templates instead of custom reimplementations where applicable

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=mtr
11PKG_VERSION:=0.75
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=ftp://ftp.bitwizard.nl/mtr/
16PKG_MD5SUM:=23baca52d0922c2ecba7eba05317868c
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define 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/
28endef
29
30define 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.
39endef
40
41define Build/Configure
42        (cd $(PKG_BUILD_DIR); touch \
43                configure.in \
44                aclocal.m4 \
45                Makefile.in \
46                img/Makefile.in \
47                stamp-h.in \
48                config.h.in \
49                configure \
50        );
51        $(call Build/Configure/Default, \
52                --without-gtk \
53                , \
54                ac_cv_lib_resolv_res_mkquery=yes \
55        )
56endef
57
58define Package/mtr/install
59        $(INSTALL_DIR) $(1)/usr/sbin
60        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mtr $(1)/usr/sbin/
61endef
62
63$(eval $(call BuildPackage,mtr))
Note: See TracBrowser for help on using the repository browser.