#
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
include $(TOPDIR)/rules.mk
PKG_NAME:=mtr
-PKG_VERSION:=0.79
+PKG_VERSION:=0.80
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=ftp://ftp.bitwizard.nl/mtr/
-PKG_MD5SUM:=f7c1f873e68e7176f60ae9fbb2ca20f4
+PKG_SOURCE_URL:=ftp://ftp.bitwizard.nl/mtr
+PKG_MD5SUM:=fa68528eaec1757f52bacf9fea8c68a9
PKG_INSTALL:=1
running statistics about each machine.
endef
+CONFIGURE_ARGS += \
+ --without-gtk \
+
+CONFIGURE_VARS += \
+ ac_cv_lib_resolv_res_mkquery=yes \
+
define Build/Configure
(cd $(PKG_BUILD_DIR); touch \
configure.in \
config.h.in \
configure \
);
- $(call Build/Configure/Default, \
- --without-gtk \
- , \
- ac_cv_lib_resolv_res_mkquery=yes \
- )
+ $(call Build/Configure/Default)
endef
define Package/mtr/install
int use_dns = 1;
-#ifdef res_ninit
--#define RES_INIT() res_ninit(&myres);
+-#define MY_RES_INIT() res_ninit(&myres);
-#define RES_MKQUERY(a, b, c, d, e, f, g, h, i) \
- res_nmkquery(&myres, a, b, c, d, e, f, g, h, i)
-struct __res_state myres;
-#else
+//#ifdef res_ninit
-+//#define RES_INIT() res_ninit(&myres);
++//#define MY_RES_INIT() res_ninit(&myres);
+//#define RES_MKQUERY(a, b, c, d, e, f, g, h, i) \
+// res_nmkquery(&myres, a, b, c, d, e, f, g, h, i)
+//struct __res_state myres;
+//#else
- #define RES_INIT() res_init();
+ #define MY_RES_INIT() res_init();
#define RES_MKQUERY(a, b, c, d, e, f, g, h, i) \
res_mkquery(a, b, c, d, e, f, g, h, i)
#define myres _res