From: Stephen Walker Date: Sun, 18 Jul 2010 17:13:32 +0000 (+0000) Subject: mtr: update to 0.80 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6974f39c52c627aa469d9624397270002be098b9;p=openwrt%2Fsvn-archive%2Fpackages.git mtr: update to 0.80 SVN-Revision: 22280 --- diff --git a/net/mtr/Makefile b/net/mtr/Makefile index c444a039d..41fb068e8 100644 --- a/net/mtr/Makefile +++ b/net/mtr/Makefile @@ -1,5 +1,5 @@ # -# 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. @@ -8,12 +8,12 @@ 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 @@ -38,6 +38,12 @@ define Package/mtr/description 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 \ @@ -48,11 +54,7 @@ define Build/Configure 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 diff --git a/net/mtr/patches/501-dns.patch b/net/mtr/patches/501-dns.patch index dd6adea40..0976cb36a 100644 --- a/net/mtr/patches/501-dns.patch +++ b/net/mtr/patches/501-dns.patch @@ -1,6 +1,6 @@ --- a/dns.c +++ b/dns.c -@@ -869,6 +869,507 @@ void restell(char *s) +@@ -880,6 +880,507 @@ void restell(char *s) fputs("\r",stderr); } diff --git a/net/mtr/patches/502-fix-res_ninit.patch b/net/mtr/patches/502-fix-res_ninit.patch index 16e0d7048..896575120 100644 --- a/net/mtr/patches/502-fix-res_ninit.patch +++ b/net/mtr/patches/502-fix-res_ninit.patch @@ -5,18 +5,18 @@ 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