Old.
authorJeroen Roovers <jer@gentoo.org>
Sat, 22 May 2010 15:47:28 +0000 (15:47 +0000)
committerJeroen Roovers <jer@gentoo.org>
Sat, 22 May 2010 15:47:28 +0000 (15:47 +0000)
Package-Manager: portage-2.2_rc67/cvs/Linux i686

net-analyzer/mtr/Manifest
net-analyzer/mtr/files/mtr-0.73-CVE-2008-2357.patch [deleted file]
net-analyzer/mtr/files/mtr-0.73-am_path_gtk.patch [deleted file]
net-analyzer/mtr/files/mtr-ac-res_mkquery.patch [deleted file]
net-analyzer/mtr/mtr-0.73-r2.ebuild [deleted file]
net-analyzer/mtr/mtr-0.75.ebuild

index db4f9d92d8b183f2602f97182036a98e04c2465b..e9d0cae99a3ec7b5800faa76fe928c788f9bcb0f 100644 (file)
@@ -1,21 +1,6 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-AUX mtr-0.73-CVE-2008-2357.patch 9729 RMD160 39385b3820dbee784678006f9d565d10ee1e7f35 SHA1 b0553d92af0750da30f6db984b672b6f5211e605 SHA256 9a6bbf7c5f825c9f81f622a7cd65a50ed051593beb4c53ae44494ecb5ad3d8ad
-AUX mtr-0.73-am_path_gtk.patch 728 RMD160 c2f4fe18a97033eac9ca74cd69017c7e85f69c38 SHA1 2eb9857c066a9add7d1bf12c12658c95836e55da SHA256 0a250cc9cb58340d2ecb29c1d1d209811e9956c7dc2ab6081702758651cf9f4b
 AUX mtr-0.75--Wno-pointer-sign.patch 752 RMD160 faae92c328f4b837b821ec1cd0da108573de25ce SHA1 bc1bf3e988021b5de90195b2b7ffd068557256df SHA256 e46b6f917e15cb24af26b29c1ccef87a0b08b14a66d15598f3b253501a4ddc93
-AUX mtr-ac-res_mkquery.patch 510 RMD160 6ee5bdf1e8b52779eb4288ffad6bae05d134d68b SHA1 a0d54a26a355d4ccc01703b726fc365f32750079 SHA256 2a369c93e2244967b75e89fb45541edafeb92f012cc78b9ee043685e0eb51785
 DIST gtk-2.0-for-mtr.m4.bz2 2508 RMD160 f5fc7a3a3c4fcfe03356170371113a1b0f18eda6 SHA1 c72993fdb224ffba6afeca43a60303ed0350c56f SHA256 59152f9a4a1af5cf09f2aaa804c9071afe3eb6632162f1660d85c820db342eba
-DIST mtr-0.73.tar.gz 558744 RMD160 09b9b2cea84b0596bf25a4055cdcb78e8faebc10 SHA1 52cf5bd1a1e6a8e14a0ebb70610bd2be9e597c15 SHA256 30bdf752ac048dd160aa28d5caff1ffe0986dd4df046c397087fa1d8c8e1ab51
 DIST mtr-0.75.tar.gz 179376 RMD160 d7df41c0c9b457eeff4034c9bc2f01456b8f6c68 SHA1 d9d3f849e32dda8aa5a7a297c25053e5d8504b27 SHA256 1d1a5de6b233289bf17a21e3bf83c82db47d22bb269af986229b788689e1f0f3
-EBUILD mtr-0.73-r2.ebuild 1454 RMD160 804da616e0787d9c8b8cebebfc7aab27334ca9e7 SHA1 7d9907bf5c17e5b7871124d079aae160be682feb SHA256 3c6569af6b667d4d8dd081b9fc2d004cf370984f2766d13d44229534da9dfb5b
-EBUILD mtr-0.75.ebuild 1243 RMD160 70c4a555605b8cf5125ded502aee195bf334395a SHA1 fa66abf4b93c14a921efdac7faed3031eccf26a2 SHA256 fdf91299b50bf6c6d7337b0df94be8b6ffd6e3f7a891ba54f4ee39f905b1e8fa
+EBUILD mtr-0.75.ebuild 1240 RMD160 0c4be5bf46d4385a042ef7330d3f2eb43380e89f SHA1 82c5aaf1ed335139737f243db91ddb56c845d6e5 SHA256 2cfd81e2a4ca7a07a7e518edaffa64e39ec692dbae9468ae22f31b9aeb04e0a5
 MISC ChangeLog 10669 RMD160 e5d9c5d2a64d6ae43663e0716c93e12ea4313fb6 SHA1 18c0dd9d8f01f7a137314532bf0dfb04b7b3b4a1 SHA256 763dab55d3d66986974a57d3e2dcd15f9e127a05a7de5393b7913beb1d653a38
 MISC metadata.xml 244 RMD160 e017aaa0a93030fffb56cd11f8894d932ca77173 SHA1 6c242450f36154bb9453827b44e6c2dc99ddc634 SHA256 4b90774b23e03ba5cfff56d639ba013394dccf7597849fc010e54f69042b47d9
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.11 (GNU/Linux)
-
-iEYEARECAAYFAks5GyEACgkQkKaRLQcq0GKhaQCfcnS59Mg1VDvaSWtqMcNmugDH
-CgkAoIIXzPGKThQnDi6SK2bPblh4wbr+
-=Qgz1
------END PGP SIGNATURE-----
diff --git a/net-analyzer/mtr/files/mtr-0.73-CVE-2008-2357.patch b/net-analyzer/mtr/files/mtr-0.73-CVE-2008-2357.patch
deleted file mode 100644 (file)
index bd69db7..0000000
+++ /dev/null
@@ -1,217 +0,0 @@
-http://bugs.gentoo.org/show_bug.cgi?id=223017
-
-CVE-2008-2357:
-Stack-based buffer overflow in the split_redraw function in split.c in mtr
-before 0.73, when invoked with the -p (aka --split) option, allows remote
-attackers to execute arbitrary code via a crafted DNS PTR record.  NOTE: it
-could be argued that this is a vulnerability in the ns_name_ntop function in
-resolv/ns_name.c in glibc and the proper fix should be in glibc; if so, then
-this should not be treated as a vulnerability in mtr.
-
-Index: mtr-0.73/dns.c
-===================================================================
---- mtr-0.73.orig/dns.c
-+++ mtr-0.73/dns.c
-@@ -883,7 +883,7 @@ void resendrequest(struct resolve *rp,in
-   if (type == T_A) {
-     dorequest(rp->hostname,type,rp->id);
-     if (debug) {
--      sprintf(tempstring,"Resolver: Sent reverse authentication request for \"%s\".",
-+      snprintf(tempstring, sizeof(tempstring), "Resolver: Sent reverse authentication request for \"%s\".",
-             rp->hostname);
-       restell(tempstring);
-     }
-@@ -904,7 +904,7 @@ void resendrequest(struct resolve *rp,in
-     }
-     dorequest(tempstring,type,rp->id);
-     if (debug) {
--      sprintf(tempstring,"Resolver: Sent domain lookup request for \"%s\".",
-+      snprintf(tempstring, sizeof(tempstring), "Resolver: Sent domain lookup request for \"%s\".",
-             strlongip( &(rp->ip) ));
-       restell(tempstring);
-     }
-@@ -940,7 +940,7 @@ void passrp(struct resolve *rp,long ttl)
-   rp->expiretime = sweeptime + (double)ttl;
-   untieresolve(rp);
-   if (debug) {
--    sprintf(tempstring,"Resolver: Lookup successful: %s\n",rp->hostname);
-+    snprintf(tempstring, sizeof(tempstring), "Resolver: Lookup successful: %s\n",rp->hostname);
-     restell(tempstring);
-   }
- }
-@@ -997,7 +997,7 @@ void parserespacket(byte *s, int l)
-   case NOERROR:
-     if (hp->ancount) {
-       if (debug) {
--      sprintf(tempstring,"Resolver: Received nameserver reply. (qd:%u an:%u ns:%u ar:%u)",
-+      snprintf(tempstring, sizeof(tempstring), "Resolver: Received nameserver reply. (qd:%u an:%u ns:%u ar:%u)",
-                 hp->qdcount,hp->ancount,hp->nscount,hp->arcount);
-       restell(tempstring);
-       }
-@@ -1037,14 +1037,14 @@ void parserespacket(byte *s, int l)
-       namestring[strlen(stackstring)] = '\0';
-       if (strcasecmp(stackstring,namestring)) {
-       if (debug) {
--        sprintf(tempstring,"Resolver: Unknown query packet dropped. (\"%s\" does not match \"%s\")",
-+        snprintf(tempstring, sizeof(tempstring), "Resolver: Unknown query packet dropped. (\"%s\" does not match \"%s\")",
-                 stackstring,namestring);
-         restell(tempstring);
-       }
-       return;
-       }
-       if (debug) {
--      sprintf(tempstring,"Resolver: Queried domain name: \"%s\"",namestring);
-+      snprintf(tempstring, sizeof(tempstring), "Resolver: Queried domain name: \"%s\"",namestring);
-       restell(tempstring);
-       }
-       c+= r;
-@@ -1055,7 +1055,7 @@ void parserespacket(byte *s, int l)
-       qdatatype = sucknetword(c);
-       qclass = sucknetword(c);
-       if (qclass != C_IN) {
--      sprintf(tempstring,"Resolver error: Received unsupported query class: %u (%s)",
-+      snprintf(tempstring, sizeof(tempstring), "Resolver error: Received unsupported query class: %u (%s)",
-                 qclass,qclass < ClasstypeCount ? classtypes[qclass] :
-               classtypes[ClasstypeCount]);
-       restell(tempstring);
-@@ -1069,7 +1069,7 @@ void parserespacket(byte *s, int l)
-         }
-       break;
-       default:
--      sprintf(tempstring,"Resolver error: Received unimplemented query type: %u (%s)",
-+      snprintf(tempstring, sizeof(tempstring), "Resolver error: Received unimplemented query type: %u (%s)",
-               qdatatype,qdatatype < ResourcetypeCount ?
-               resourcetypes[qdatatype] : resourcetypes[ResourcetypeCount]);
-       restell(tempstring);
-@@ -1091,7 +1091,7 @@ void parserespacket(byte *s, int l)
-       else
-         usefulanswer = 1;
-       if (debug) {
--        sprintf(tempstring,"Resolver: answered domain query: \"%s\"",namestring);
-+        snprintf(tempstring, sizeof(tempstring), "Resolver: answered domain query: \"%s\"",namestring);
-         restell(tempstring);
-       }
-       c+= r;
-@@ -1104,10 +1104,10 @@ void parserespacket(byte *s, int l)
-       ttl = sucknetlong(c);
-       rdatalength = sucknetword(c);
-       if (class != qclass) {
--        sprintf(tempstring,"query class: %u (%s)",qclass,qclass < ClasstypeCount ?
-+        snprintf(tempstring, sizeof(tempstring), "query class: %u (%s)",qclass,qclass < ClasstypeCount ?
-                 classtypes[qclass] : classtypes[ClasstypeCount]);
-         restell(tempstring);
--        sprintf(tempstring,"rr class: %u (%s)",class,class < ClasstypeCount ?
-+        snprintf(tempstring, sizeof(tempstring), "rr class: %u (%s)",class,class < ClasstypeCount ?
-                 classtypes[class] : classtypes[ClasstypeCount]);
-         restell(tempstring);
-         restell("Resolver error: Answered class does not match queried class.");
-@@ -1123,20 +1123,20 @@ void parserespacket(byte *s, int l)
-       }
-       if (datatype == qdatatype || datatype == T_CNAME) {
-         if (debug) {
--          sprintf(tempstring,"Resolver: TTL: %s",strtdiff(sendstring,ttl));
-+          snprintf(tempstring, sizeof(tempstring), "Resolver: TTL: %s",strtdiff(sendstring,ttl));
-           restell(tempstring);
-         }
-         if (usefulanswer)
-           switch (datatype) {
-           case T_A:
-             if (rdatalength != 4) {
--              sprintf(tempstring,"Resolver error: Unsupported rdata format for \"A\" type. (%u bytes)",
-+              snprintf(tempstring, sizeof(tempstring), "Resolver error: Unsupported rdata format for \"A\" type. (%u bytes)",
-                       rdatalength);
-               restell(tempstring);
-               return;
-             }
-             if ( addrcmp( (void *) &(rp->ip), (void *) c, af ) == 0 ) {
--              sprintf(tempstring,"Resolver: Reverse authentication failed: %s != ",
-+              snprintf(tempstring, sizeof(tempstring), "Resolver: Reverse authentication failed: %s != ",
-                       strlongip( &(rp->ip) ));
-               addrcpy( (void *) &alignedip, (void *) c, af );
-               strcat(tempstring,strlongip( &alignedip ));
-@@ -1144,7 +1144,7 @@ void parserespacket(byte *s, int l)
-               res_hostipmismatch++;
-               failrp(rp);
-             } else {
--              sprintf(tempstring,"Resolver: Reverse authentication complete: %s == \"%s\".",
-+              snprintf(tempstring, sizeof(tempstring), "Resolver: Reverse authentication complete: %s == \"%s\".",
-                       strlongip( &(rp->ip) ),nonull(rp->hostname));
-               restell(tempstring);
-               res_reversesuccess++;
-@@ -1161,7 +1161,7 @@ void parserespacket(byte *s, int l)
-               return;
-             }
-             if (debug) {
--              sprintf(tempstring,"Resolver: Answered domain: \"%s\"",namestring);
-+              snprintf(tempstring, sizeof(tempstring), "Resolver: Answered domain: \"%s\"",namestring);
-               restell(tempstring);
-             }
-             if (r > HostnameLength) {
-@@ -1186,14 +1186,14 @@ void parserespacket(byte *s, int l)
-             }
-             break;
-           default:
--            sprintf(tempstring,"Resolver error: Received unimplemented data type: %u (%s)",
-+            snprintf(tempstring, sizeof(tempstring), "Resolver error: Received unimplemented data type: %u (%s)",
-                     datatype,datatype < ResourcetypeCount ?
-                     resourcetypes[datatype] : resourcetypes[ResourcetypeCount]);
-             restell(tempstring);
-           }
-       } else {
-         if (debug) {
--          sprintf(tempstring,"Resolver: Ignoring resource type %u. (%s)",
-+          snprintf(tempstring, sizeof(tempstring), "Resolver: Ignoring resource type %u. (%s)",
-                   datatype,datatype < ResourcetypeCount ?
-                   resourcetypes[datatype] : resourcetypes[ResourcetypeCount]);
-           restell(tempstring);
-@@ -1211,7 +1211,7 @@ void parserespacket(byte *s, int l)
-     failrp(rp);
-     break;
-   default:
--    sprintf(tempstring,"Resolver: Received error response %u. (%s)",
-+    snprintf(tempstring, sizeof(tempstring), "Resolver: Received error response %u. (%s)",
-           getheader_rcode(hp),getheader_rcode(hp) < ResponsecodeCount ?
-           responsecodes[getheader_rcode(hp)] : responsecodes[ResponsecodeCount]);
-     restell(tempstring);
-@@ -1242,13 +1242,13 @@ void dns_ack(void)
-                     (void *) &(from4->sin_addr), AF_INET ) == 0 )
-         break;
-     if (i == _res.nscount) {
--      sprintf(tempstring,"Resolver error: Received reply from unknown source: %s",
-+      snprintf(tempstring, sizeof(tempstring), "Resolver error: Received reply from unknown source: %s",
-             inet_ntoa(from4->sin_addr ));
-       restell(tempstring);
-     } else
-       parserespacket((byte *)resrecvbuf,r);
-   } else {
--    sprintf(tempstring,"Resolver: Socket error: %s",strerror(errno));
-+    snprintf(tempstring, sizeof(tempstring), "Resolver: Socket error: %s",strerror(errno));
-     restell(tempstring);
-   }
- }
-@@ -1277,7 +1277,7 @@ void dns_events(double *sinterval)
-     case STATE_FINISHED:      /* TTL has expired */
-     case STATE_FAILED:        /* Fake TTL has expired */
-       if (debug) {
--      sprintf(tempstring,"Resolver: Cache record for \"%s\" (%s) has expired. (state: %u)  Marked for expire at: %g, time: %g.",
-+      snprintf(tempstring, sizeof(tempstring), "Resolver: Cache record for \"%s\" (%s) has expired. (state: %u)  Marked for expire at: %g, time: %g.",
-                 nonull(rp->hostname), strlongip( &(rp->ip) ), 
-               rp->state, rp->expiretime, sweeptime);
-       restell(tempstring);
-@@ -1321,14 +1321,14 @@ char *dns_lookup2(ip_t * ip)
-     if ((rp->state == STATE_FINISHED) || (rp->state == STATE_FAILED)) {
-       if ((rp->state == STATE_FINISHED) && (rp->hostname)) {
-       if (debug) {
--        sprintf(tempstring,"Resolver: Used cached record: %s == \"%s\".\n",
-+        snprintf(tempstring, sizeof(tempstring), "Resolver: Used cached record: %s == \"%s\".\n",
-                 strlongip(ip),rp->hostname);
-         restell(tempstring);
-       }
-       return rp->hostname;
-       } else {
-       if (debug) {
--        sprintf(tempstring,"Resolver: Used failed record: %s == ???\n",
-+        snprintf(tempstring, sizeof(tempstring), "Resolver: Used failed record: %s == ???\n",
-                 strlongip(ip));
-         restell(tempstring);
-       }
diff --git a/net-analyzer/mtr/files/mtr-0.73-am_path_gtk.patch b/net-analyzer/mtr/files/mtr-0.73-am_path_gtk.patch
deleted file mode 100644 (file)
index 85f983e..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-diff -ru mtr-0.73~/configure.in mtr-0.73/configure.in
---- mtr-0.73~/configure.in     2008-05-18 14:04:04.000000000 +0200
-+++ mtr-0.73/configure.in      2008-05-18 14:05:26.000000000 +0200
-@@ -61,11 +61,9 @@
-                            AC_DEFINE(NO_GTK)
-                            GTK_OBJ="")
-         else
--              AM_PATH_GTK(1.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS"
--                           LIBS="$LIBS $GTK_LIBS",
--                           AC_MSG_WARN(Building without GTK+ display support)
--                           AC_DEFINE(NO_GTK)
--                           GTK_OBJ="")
-+                AC_MSG_WARN(Building without GTK+ display support)
-+                AC_DEFINE(NO_GTK)
-+                GTK_OBJ=""
-       fi
- else
-       AC_DEFINE(NO_GTK)
diff --git a/net-analyzer/mtr/files/mtr-ac-res_mkquery.patch b/net-analyzer/mtr/files/mtr-ac-res_mkquery.patch
deleted file mode 100644 (file)
index afeb12e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
---- configure.in.orig  2004-08-22 01:52:55.807318544 +0300
-+++ configure.in       2004-08-22 01:55:46.415382176 +0300
-@@ -83,7 +83,8 @@
- 
- AC_CHECK_FUNC(res_mkquery, , 
-   AC_CHECK_LIB(bind, res_mkquery, , 
--   AC_CHECK_LIB(resolv, res_mkquery, , AC_MSG_ERROR(No resolver library found))))
-+   AC_CHECK_LIB(resolv, res_mkquery, ,
-+    AC_CHECK_LIB(resolv, __res_mkquery, , AC_MSG_ERROR(No resolver library found)))))
- 
- AC_CHECK_FUNC(herror, , AC_DEFINE(NO_HERROR))
- AC_CHECK_FUNC(strerror, , AC_DEFINE(NO_STRERROR))
diff --git a/net-analyzer/mtr/mtr-0.73-r2.ebuild b/net-analyzer/mtr/mtr-0.73-r2.ebuild
deleted file mode 100644 (file)
index 6b19397..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mtr/mtr-0.73-r2.ebuild,v 1.8 2008/11/09 12:15:15 vapier Exp $
-
-inherit flag-o-matic autotools eutils
-
-DESCRIPTION="My TraceRoute. Excellent network diagnostic tool."
-HOMEPAGE="http://www.bitwizard.nl/mtr/"
-SRC_URI="ftp://ftp.bitwizard.nl/mtr/${P}.tar.gz
-               mirror://gentoo/gtk-2.0-for-mtr.m4.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ~ppc64 s390 sh sparc x86"
-IUSE="gtk ipv6"
-
-RDEPEND="sys-libs/ncurses
-       gtk? ( >=x11-libs/gtk+-2 )"
-DEPEND="${RDEPEND}
-       gtk? ( dev-util/pkgconfig )"
-
-src_unpack() {
-       unpack ${A}
-       cd "${S}"
-
-       mv "${WORKDIR}"/gtk-2.0-for-mtr.m4 gtk-2.0.m4
-       epatch "${FILESDIR}"/${P}-am_path_gtk.patch
-       epatch "${FILESDIR}"/${P}-CVE-2008-2357.patch
-       AT_M4DIR="." eautoreconf
-}
-
-src_compile() {
-       local myconf
-       use gtk || myconf="${myconf} --without-gtk"
-
-       [[ ${CHOST} == *-darwin* ]] && append-flags "-DBIND_8_COMPAT"
-
-       econf ${myconf} \
-               $(use_enable gtk gtk2) \
-               $(use_enable ipv6) \
-               || die "econf failed"
-
-       emake || die "emake failed"
-}
-
-src_install() {
-       # this binary is universal. ie: it does both console and gtk.
-       emake DESTDIR="${D}" install || die "make install failed"
-
-       insinto /usr/share/${PN}
-       doins img/mtr_icon.xpm
-
-       fowners root:0 /usr/sbin/mtr
-       fperms 4710 /usr/sbin/mtr
-
-       dodoc AUTHORS ChangeLog FORMATS NEWS README SECURITY TODO
-}
index 00e0d20c3ca1fb1d922462e86452ec197dd30cf8..1980f11bfa87c66568a91fc41b16194a3055515c 100644 (file)
@@ -1,8 +1,9 @@
 # Copyright 1999-2009 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mtr/mtr-0.75.ebuild,v 1.9 2009/12/28 20:55:15 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mtr/mtr-0.75.ebuild,v 1.10 2010/05/22 15:47:26 jer Exp $
 
 EAPI="2"
+
 inherit eutils autotools
 
 DESCRIPTION="My TraceRoute. Excellent network diagnostic tool."
@@ -22,7 +23,7 @@ DEPEND="${RDEPEND}
 
 src_prepare() {
        epatch "${FILESDIR}/${P}--Wno-pointer-sign.patch"
-       # Keep this comment and following move, even incase ebuild does not needs
+       # Keep this comment and following mv, even in case ebuild does not need
        # it: kept gtk-2.0.m4 in SRC_URI but you'll have to mv it before autoreconf
        mv "${WORKDIR}"/gtk-2.0-for-mtr.m4 gtk-2.0.m4 #222909
        AT_M4DIR="." eautoreconf