update php-apc to 3.0.16, disable pthread mutex's as they are on by default now.
[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.69
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:=58904d6d8d70114195cdeb653d56914c
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
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 endef
31
32 define Package/mtr/description
33 mtr combines the functionality of the 'traceroute' and 'ping' programs
34 in a single network diagnostic tool.
35 As mtr starts, it investigates the network connection between the host
36 mtr runs on and a user-specified destination host. After it
37 determines the address of each network hop between the machines,
38 it sends a sequence ICMP ECHO requests to each one to determine the
39 quality of the link to each machine. As it does this, it prints
40 running statistics about each machine.
41 endef
42
43 define Build/Configure
44 (cd $(PKG_BUILD_DIR); touch \
45 configure.in \
46 aclocal.m4 \
47 Makefile.in \
48 img/Makefile.in \
49 stamp-h.in \
50 config.h.in \
51 configure \
52 );
53 $(call Build/Configure/Default, \
54 --without-gtk \
55 , \
56 ac_cv_lib_resolv_res_mkquery=yes \
57 )
58 endef
59
60 define Build/Compile
61 $(MAKE) -C $(PKG_BUILD_DIR) \
62 DESTDIR="$(PKG_INSTALL_DIR)" \
63 all install
64 endef
65
66 define Package/mtr/install
67 $(INSTALL_DIR) $(1)/usr/sbin
68 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mtr $(1)/usr/sbin/
69 endef
70
71 $(eval $(call BuildPackage,mtr))