diff options
author | Cédric Krier <cedk@gentoo.org> | 2007-06-23 09:39:49 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2007-06-23 09:39:49 +0000 |
commit | 639ee7d49172a79490c6ce633c7424e9a734a4e8 (patch) | |
tree | ed92a6c5ed37f0fb0b9bddbc0ad5833581c283a4 /net-analyzer | |
parent | Moved NEED_PYTHON above inherit. (diff) | |
download | gentoo-2-639ee7d49172a79490c6ce633c7424e9a734a4e8.tar.gz gentoo-2-639ee7d49172a79490c6ce633c7424e9a734a4e8.tar.bz2 gentoo-2-639ee7d49172a79490c6ce633c7424e9a734a4e8.zip |
Version bump
(Portage version: 2.1.2.7)
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/tcpdump/ChangeLog | 7 | ||||
-rw-r--r-- | net-analyzer/tcpdump/files/digest-tcpdump-3.9.6 | 3 | ||||
-rw-r--r-- | net-analyzer/tcpdump/tcpdump-3.9.6.ebuild | 78 |
3 files changed, 87 insertions, 1 deletions
diff --git a/net-analyzer/tcpdump/ChangeLog b/net-analyzer/tcpdump/ChangeLog index f32df891e616..96f1b519259f 100644 --- a/net-analyzer/tcpdump/ChangeLog +++ b/net-analyzer/tcpdump/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/tcpdump # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.97 2007/04/01 17:54:10 vanquirius Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.98 2007/06/23 09:39:49 cedk Exp $ + +*tcpdump-3.9.6 (23 Jun 2007) + + 23 Jun 2007; Cédric Krier <cedk@gentoo.org> +tcpdump-3.9.6.ebuild: + Version bump 01 Apr 2007; Marcelo Goes <vanquirius@gentoo.org> -tcpdump-3.9.4-r3.ebuild, -tcpdump-3.9.5-r1.ebuild: diff --git a/net-analyzer/tcpdump/files/digest-tcpdump-3.9.6 b/net-analyzer/tcpdump/files/digest-tcpdump-3.9.6 new file mode 100644 index 000000000000..ce08b07ecc8b --- /dev/null +++ b/net-analyzer/tcpdump/files/digest-tcpdump-3.9.6 @@ -0,0 +1,3 @@ +MD5 f564e46e595603ce908b54074e3709d3 tcpdump-3.9.6.tar.gz 712992 +RMD160 9b098d50ab381ab8cc7d59a96a9acc41b570d929 tcpdump-3.9.6.tar.gz 712992 +SHA256 242b27388ada00d0c40097cef0d56ac5bdbb0a5d81dffb480cdd91b109e10d8d tcpdump-3.9.6.tar.gz 712992 diff --git a/net-analyzer/tcpdump/tcpdump-3.9.6.ebuild b/net-analyzer/tcpdump/tcpdump-3.9.6.ebuild new file mode 100644 index 000000000000..37f552f616dc --- /dev/null +++ b/net-analyzer/tcpdump/tcpdump-3.9.6.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/tcpdump-3.9.6.ebuild,v 1.1 2007/06/23 09:39:49 cedk Exp $ + +inherit flag-o-matic toolchain-funcs eutils + +DESCRIPTION="A Tool for network monitoring and data acquisition" +HOMEPAGE="http://www.tcpdump.org/" +SRC_URI="http://www.tcpdump.org/release/${P}.tar.gz + http://www.jp.tcpdump.org/release/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="ssl ipv6 samba" + +DEPEND="net-libs/libpcap + ssl? ( >=dev-libs/openssl-0.9.6m )" + +pkg_setup() { + if use samba ; then + ewarn + ewarn "CAUTION !!! CAUTION !!! CAUTION" + ewarn + ewarn "You're about to compile tcpdump with samba printing support" + ewarn "Upstream tags it as 'possibly-buggy SMB printer'" + ewarn "So think twice whether this is fine with you" + ewarn + ewarn "CAUTION !!! CAUTION !!! CAUTION" + ewarn + ewarn "(Giving you 10 secs to think about it)" + ewarn + ebeep 5 + epause 5 + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + # bug 168916 - off-by-one heap overflow in 802.11 printer + epatch "${FILESDIR}"/${PN}-3.9.5-print-802_11.c.diff +} + +src_compile() { + # tcpdump needs some optymalization. see bug #108391 + ( ! is-flag -O? || is-flag -O0 ) && append-flags -O + + replace-flags -O[3-9] -O2 + filter-flags -finline-functions + + # Fix wrt bug #48747 + if [[ $(gcc-major-version) -gt 3 ]] || \ + [[ $(gcc-major-version) -eq 3 && $(gcc-minor-version) -ge 4 ]] + then + filter-flags -funit-at-a-time + append-flags -fno-unit-at-a-time + fi + + local myconf + if ! use ssl ; then + myconf="--without-crypto" + fi + + econf \ + $(use_enable ipv6) \ + $(use_enable samba smb) \ + ${myconf} || die "configure failed" + + make CCOPT="$CFLAGS" || die "make failed" +} + +src_install() { + dosbin tcpdump + doman tcpdump.1 + dodoc *.awk + dodoc README FILES VERSION CHANGES CREDITS TODO +} |