diff options
author | Rajiv Aaron Manglani <rajiv@gentoo.org> | 2007-06-17 23:50:02 +0000 |
---|---|---|
committer | Rajiv Aaron Manglani <rajiv@gentoo.org> | 2007-06-17 23:50:02 +0000 |
commit | b1ccc9d194932b5988b437c01d23a6a52b1fc2d0 (patch) | |
tree | ee1709dbe66996e7c5f67c17ab98780aa311ffbf /net-dns/dnstop | |
parent | Add ~sparc keyword --- Bug #182196 --- after further investigation, seems (diff) | |
download | gentoo-2-b1ccc9d194932b5988b437c01d23a6a52b1fc2d0.tar.gz gentoo-2-b1ccc9d194932b5988b437c01d23a6a52b1fc2d0.tar.bz2 gentoo-2-b1ccc9d194932b5988b437c01d23a6a52b1fc2d0.zip |
version bump. support ipv6 USE flag.
(Portage version: 2.1.2.9)
Diffstat (limited to 'net-dns/dnstop')
-rw-r--r-- | net-dns/dnstop/ChangeLog | 10 | ||||
-rw-r--r-- | net-dns/dnstop/dnstop-20070510-r1.ebuild | 38 | ||||
-rw-r--r-- | net-dns/dnstop/files/digest-dnstop-20070510-r1 | 3 | ||||
-rw-r--r-- | net-dns/dnstop/files/dnstop-20070510-handle_ipv6.patch | 25 |
4 files changed, 74 insertions, 2 deletions
diff --git a/net-dns/dnstop/ChangeLog b/net-dns/dnstop/ChangeLog index 14d2cea25daa..c537b94e1d95 100644 --- a/net-dns/dnstop/ChangeLog +++ b/net-dns/dnstop/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-dns/dnstop -# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/dnstop/ChangeLog,v 1.16 2006/10/16 03:49:26 rajiv Exp $ +# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/dnstop/ChangeLog,v 1.17 2007/06/17 23:50:02 rajiv Exp $ + +*dnstop-20070510-r1 (17 Jun 2007) + + 17 Jun 2007; Rajiv Aaron Manglani <rajiv@gentoo.org> + +files/dnstop-20070510-handle_ipv6.patch, +dnstop-20070510-r1.ebuild: + version bump. support ipv6 USE flag. 16 Oct 2006; Rajiv Aaron Manglani <rajiv@gentoo.org> -dnstop-20031113.ebuild: diff --git a/net-dns/dnstop/dnstop-20070510-r1.ebuild b/net-dns/dnstop/dnstop-20070510-r1.ebuild new file mode 100644 index 000000000000..8901dee83b0b --- /dev/null +++ b/net-dns/dnstop/dnstop-20070510-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/dnstop/dnstop-20070510-r1.ebuild,v 1.1 2007/06/17 23:50:02 rajiv Exp $ + +inherit flag-o-matic + +DESCRIPTION="Displays various tables of DNS traffic on your network." +HOMEPAGE="http://dnstop.measurement-factory.com/" +SRC_URI="http://dnstop.measurement-factory.com/src/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" + +IUSE="ipv6" +DEPEND="sys-libs/ncurses + virtual/libpcap" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-handle_ipv6.patch" +} + +src_compile() { + use ipv6 && append-flags -DUSE_IPV6 + + sed -i "s:^CFLAGS=.*$:CFLAGS=${CFLAGS} -DUSE_PPP:" Makefile + + emake || die "emake failed." +} + +src_install() { + dobin dnstop + doman dnstop.8 + dodoc LICENSE + dodoc CHANGES +} diff --git a/net-dns/dnstop/files/digest-dnstop-20070510-r1 b/net-dns/dnstop/files/digest-dnstop-20070510-r1 new file mode 100644 index 000000000000..55fd5a8f8a28 --- /dev/null +++ b/net-dns/dnstop/files/digest-dnstop-20070510-r1 @@ -0,0 +1,3 @@ +MD5 a68f764a10c7ad7bf16a19223df865af dnstop-20070510.tar.gz 25023 +RMD160 9447fb27dc94612f3a52f0770f4c55b2d13ba79d dnstop-20070510.tar.gz 25023 +SHA256 fafe60e4a2e4eade57d5c875a402d5269edd28483265d3199fc63bddd41fb82b dnstop-20070510.tar.gz 25023 diff --git a/net-dns/dnstop/files/dnstop-20070510-handle_ipv6.patch b/net-dns/dnstop/files/dnstop-20070510-handle_ipv6.patch new file mode 100644 index 000000000000..4405b7686c67 --- /dev/null +++ b/net-dns/dnstop/files/dnstop-20070510-handle_ipv6.patch @@ -0,0 +1,25 @@ +diff -uNr dnstop-20070510/dnstop.c dnstop-20070510-r1/dnstop.c +--- dnstop-20070510/dnstop.c 2007-05-11 00:51:12.000000000 -0400 ++++ dnstop-20070510-r1/dnstop.c 2007-06-17 18:57:26.000000000 -0400 +@@ -825,8 +825,10 @@ + memcpy(&family, pkt, sizeof(family)); + if (AF_INET == family) + return handle_ipv4((struct ip *)(pkt + 4), len - 4); ++#if USE_IPV6 + if (AF_INET6 == family) + return handle_ipv6((struct ip6_hdr *)(pkt + 4), len - 4); ++#endif + return 0; + } + +@@ -838,8 +840,10 @@ + memcpy(&family, pkt, sizeof(family)); + if (AF_INET == ntohl(family)) + return handle_ipv4((struct ip *)(pkt + 4), len - 4); ++#if USE_IPV6 + if (AF_INET6 == ntohl(family)) + return handle_ipv6((struct ip6_hdr *)(pkt + 4), len - 4); ++#endif + return 0; + } + |