summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2014-09-17 10:13:35 +0000
committerJeroen Roovers <jer@gentoo.org>2014-09-17 10:13:35 +0000
commita3938c55759834ff3c732887b5b321a289db154e (patch)
tree987c68f8169a9265f97c059fe1bb438b95a112ae /net-analyzer/tcpdump
parentOld. (diff)
downloadgentoo-2-a3938c55759834ff3c732887b5b321a289db154e.tar.gz
gentoo-2-a3938c55759834ff3c732887b5b321a289db154e.tar.bz2
gentoo-2-a3938c55759834ff3c732887b5b321a289db154e.zip
Old.
(Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-analyzer/tcpdump')
-rw-r--r--net-analyzer/tcpdump/ChangeLog6
-rw-r--r--net-analyzer/tcpdump/files/tcpdump-4.3.0-ssl-detect.patch125
-rw-r--r--net-analyzer/tcpdump/metadata.xml11
-rw-r--r--net-analyzer/tcpdump/tcpdump-4.3.0.ebuild96
4 files changed, 10 insertions, 228 deletions
diff --git a/net-analyzer/tcpdump/ChangeLog b/net-analyzer/tcpdump/ChangeLog
index 760ea252e414..52f4f2b3c955 100644
--- a/net-analyzer/tcpdump/ChangeLog
+++ b/net-analyzer/tcpdump/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-analyzer/tcpdump
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.194 2014/09/17 08:48:55 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.195 2014/09/17 10:13:35 jer Exp $
+
+ 17 Sep 2014; Jeroen Roovers <jer@gentoo.org> -tcpdump-4.3.0.ebuild,
+ -files/tcpdump-4.3.0-ssl-detect.patch, metadata.xml:
+ Old.
17 Sep 2014; Agostino Sarubbo <ago@gentoo.org> tcpdump-4.5.1-r1.ebuild:
Stable for ppc64, wrt bug #511502
diff --git a/net-analyzer/tcpdump/files/tcpdump-4.3.0-ssl-detect.patch b/net-analyzer/tcpdump/files/tcpdump-4.3.0-ssl-detect.patch
deleted file mode 100644
index a4854372971a..000000000000
--- a/net-analyzer/tcpdump/files/tcpdump-4.3.0-ssl-detect.patch
+++ /dev/null
@@ -1,125 +0,0 @@
-fix from upstream to drop ugly filesystem checks that fail horribly when cross-compiling
-
-From c4b7e5f2b287ee3d1de8f706b809a8e217720c4e Mon Sep 17 00:00:00 2001
-From: Marc Abramowitz <marc@marc-abramowitz.com>
-Date: Sat, 13 Oct 2012 11:21:45 -0700
-Subject: [PATCH] Simplify the detection of OpenSSL libcrypto by using
- standard autoconf macros rather than a local copy of
- AC_LBL_SSLEAY.
-
-AC_LBL_SSLEAY is old and has not kept pace with some more recent
-developments in packaging like Debian and Ubuntu's multiarch support.
-The autoconf macros have been updated to handle multiarch so using them
-means that tcpdump gains the ability to be built with libcrypto on these
-new multiarch distros and to work successfully with Travis CI, which
-uses Ubuntu 12, which is one such multiarch distro (see GH-32).
-
-Fixes GH-33
----
- configure | 11201 ++++++++++++++++++---------------------------------------
- configure.in | 73 +-
- 2 files changed, 3443 insertions(+), 7831 deletions(-)
-
-diff --git a/configure.in b/configure.in
-index 8864238..14a60e1 100644
---- a/configure.in
-+++ b/configure.in
-@@ -994,13 +994,13 @@ AC_LBL_UNALIGNED_ACCESS
-
- AC_VAR_H_ERRNO
-
--# Check for SSLeay
--AC_MSG_CHECKING(whether to use SSLeay libcrypto)
-+# Check for OpenSSL libcrypto
-+AC_MSG_CHECKING(whether to use OpenSSL libcrypto)
- # Specify location for both includes and libraries.
--want_libcrypto=youmama
-+want_libcrypto=ifavailable
- AC_ARG_WITH(crypto,
-- AS_HELP_STRING([--with-crypto@<:@=PATH@:>@],
-- [use SSLeay libcrypto (located in directory PATH, if supplied). @<:@default=yes, if available@:>@]),
-+ AS_HELP_STRING([--with-crypto],
-+ [use OpenSSL libcrypto @<:@default=yes, if available@:>@]),
- [
- if test $withval = no
- then
-@@ -1010,10 +1010,6 @@ AC_ARG_WITH(crypto,
- then
- want_libcrypto=yes
- AC_MSG_RESULT(yes)
-- else
-- want_libcrypto=yes
-- AC_MSG_RESULT(yes)
-- crypto_dir=$withval
- fi
- ],[
- #
-@@ -1023,63 +1019,8 @@ AC_ARG_WITH(crypto,
- AC_MSG_RESULT([yes, if available])
- ])
- if test "$want_libcrypto" != "no"; then
-- ac_cv_ssleay_path=no
-- incdir=no
-- if test "x$crypto_dir" = x; then
-- #
-- # Location not specified; check the default locations.
-- #
-- AC_MSG_CHECKING(where SSLeay is located)
-- dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
-- if test "x${host_alias}" != x; then
-- dirs="/usr/${host_alias} $dirs"
-- fi
-- for dir in $dirs; do
-- AC_LBL_SSLEAY($dir)
--
-- if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
-- break;
-- else
-- ac_cv_ssleay_path=no
-- incdir=no
-- fi
-- done
-- if test "$ac_cv_ssleay_path" != no; then
-- AC_MSG_RESULT($ac_cv_ssleay_path)
-- fi
-- else
-- AC_MSG_CHECKING(for SSLeay in $crypto_dir)
-- AC_LBL_SSLEAY($crypto_dir)
-- if test "$ac_cv_ssleay_path" != no; then
-- AC_MSG_RESULT(found)
-- fi
-- fi
-- if test "$ac_cv_ssleay_path" != no; then
-- V_INCLS="$V_INCLS $incdir"
-- if test "$dir" != "/usr"; then
-- LDFLAGS="-L$dir/lib $LDFLAGS"
-- fi
-- if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
-- LIBS="$LIBS -lRSAglue"
-- fi
-- if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
-- LIBS="$LIBS -lrsaref"
-- fi
-- AC_CHECK_LIB(crypto, DES_cbc_encrypt)
--
-- savedcppflags="$CPPFLAGS"
-- CPPFLAGS="$CPPFLAGS $V_INCLS"
-- AC_CHECK_HEADERS(openssl/evp.h)
-- CPPFLAGS="$savedcppflags"
-- else
-- #
-- # Not found. Did the user explicitly ask for it?
-- #
-- AC_MSG_RESULT(not found)
-- if test "$want_libcrypto" = yes; then
-- AC_MSG_ERROR(SSLeay not found)
-- fi
-- fi
-+ AC_CHECK_LIB(crypto, DES_cbc_encrypt)
-+ AC_CHECK_HEADERS(openssl/evp.h)
- fi
-
- dnl
---
-1.8.0
-
diff --git a/net-analyzer/tcpdump/metadata.xml b/net-analyzer/tcpdump/metadata.xml
index dc1f7d30e801..785877034dc5 100644
--- a/net-analyzer/tcpdump/metadata.xml
+++ b/net-analyzer/tcpdump/metadata.xml
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>netmon</herd>
- <use>
- <flag name='smi'>Build with <pkg>net-libs/libsmi</pkg> to load MIBs on the fly to decode SNMP packets</flag>
- <flag name='chroot'>Chroot into /var/lib/tcpdump when dropping privileges</flag>
- <flag name='drop-root'>Drop privileges to tcpdump:tcpdump when run as root</flag>
- </use>
+<herd>netmon</herd>
+<use>
+ <flag name='smi'>Build with <pkg>net-libs/libsmi</pkg> to load MIBs on the fly to decode SNMP packets</flag>
+ <flag name='drop-root'>Drop privileges to tcpdump:tcpdump when run as root</flag>
+</use>
</pkgmetadata>
diff --git a/net-analyzer/tcpdump/tcpdump-4.3.0.ebuild b/net-analyzer/tcpdump/tcpdump-4.3.0.ebuild
deleted file mode 100644
index 2ddf0b12e78b..000000000000
--- a/net-analyzer/tcpdump/tcpdump-4.3.0.ebuild
+++ /dev/null
@@ -1,96 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/tcpdump-4.3.0.ebuild,v 1.11 2014/08/03 15:48:12 tgall Exp $
-
-EAPI="4"
-
-AUTOTOOLS_AUTO_DEPEND="no" # Only cross-compiling
-inherit flag-o-matic user autotools eutils toolchain-funcs
-
-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 arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux"
-IUSE="+chroot smi ssl ipv6 -samba suid test"
-
-RDEPEND="
- net-libs/libpcap
- smi? ( net-libs/libsmi )
- ssl? ( >=dev-libs/openssl-0.9.6m )
-"
-DEPEND="
- ${RDEPEND}
- test? (
- || ( app-arch/sharutils sys-freebsd/freebsd-ubin )
- dev-lang/perl
- )
-"
-
-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
- fi
- enewgroup tcpdump
- enewuser tcpdump -1 -1 -1 tcpdump
-}
-
-src_prepare() {
- if tc-is-cross-compiler ; then
- epatch "${FILESDIR}"/${P}-ssl-detect.patch
- eautoreconf
- fi
-}
-
-src_configure() {
- # tcpdump needs some optymalization. see bug #108391
- ( ! is-flag -O? || is-flag -O0 ) && append-flags -O2
-
- replace-flags -O[3-9] -O2
- filter-flags -finline-functions
-
- econf \
- --with-user=tcpdump \
- $(use_with ssl crypto "${EPREFIX}/usr") \
- $(use_with smi) \
- $(use_enable ipv6) \
- $(use_enable samba smb) \
- $(use_with chroot chroot "${EPREFIX}/var/lib/tcpdump")
-}
-
-src_test() {
- sed '/^\(espudp1\|eapon1\)/d;' -i tests/TESTLIST
- emake check
-}
-
-src_install() {
- dosbin tcpdump
- doman tcpdump.1
- dodoc *.awk
- dodoc CHANGES CREDITS README
-
- if use chroot; then
- keepdir /var/lib/tcpdump
- fperms 700 /var/lib/tcpdump
- fowners tcpdump:tcpdump /var/lib/tcpdump
- fi
- if use suid; then
- fowners root:tcpdump /usr/sbin/tcpdump
- fperms 4110 /usr/sbin/tcpdump
- fi
-}
-
-pkg_postinst() {
- use suid && elog "To let normal users run tcpdump add them into tcpdump group."
-}