diff options
author | Jeroen Roovers <jer@gentoo.org> | 2013-06-02 14:46:21 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2013-06-02 14:46:21 +0000 |
commit | 5753f0e8c6d6f948fb96674ea04dd17b7eb9e1f9 (patch) | |
tree | d2cac4ea62482a4db3d1b5e78673ce158263143c /net-analyzer | |
parent | Drop obsolete masks (diff) | |
download | historical-5753f0e8c6d6f948fb96674ea04dd17b7eb9e1f9.tar.gz historical-5753f0e8c6d6f948fb96674ea04dd17b7eb9e1f9.tar.bz2 historical-5753f0e8c6d6f948fb96674ea04dd17b7eb9e1f9.zip |
Enable secret libcap-ng support for chrooting (maybe bug #334329).
Package-Manager: portage-2.2.0_alpha177/cvs/Linux x86_64
Manifest-Sign-Key: 0xA792A613
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/tcpdump/ChangeLog | 7 | ||||
-rw-r--r-- | net-analyzer/tcpdump/Manifest | 9 | ||||
-rw-r--r-- | net-analyzer/tcpdump/tcpdump-4.4.0-r1.ebuild | 95 |
3 files changed, 106 insertions, 5 deletions
diff --git a/net-analyzer/tcpdump/ChangeLog b/net-analyzer/tcpdump/ChangeLog index 10c0e203d4ea..f4f0ed6ed0c3 100644 --- a/net-analyzer/tcpdump/ChangeLog +++ b/net-analyzer/tcpdump/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/tcpdump # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.166 2013/05/29 20:02:35 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.167 2013/06/02 14:46:20 jer Exp $ + +*tcpdump-4.4.0-r1 (02 Jun 2013) + + 02 Jun 2013; Jeroen Roovers <jer@gentoo.org> +tcpdump-4.4.0-r1.ebuild: + Enable secret libcap-ng support for chrooting (maybe bug #334329). 29 May 2013; Jeroen Roovers <jer@gentoo.org> tcpdump-4.4.0.ebuild: Remove obsolete cross-compile fix. diff --git a/net-analyzer/tcpdump/Manifest b/net-analyzer/tcpdump/Manifest index 1adc3c782514..54f486d548dc 100644 --- a/net-analyzer/tcpdump/Manifest +++ b/net-analyzer/tcpdump/Manifest @@ -5,13 +5,14 @@ AUX tcpdump-4.3.0-ssl-detect.patch 3568 SHA256 970b709a1599e9496e77dd4cbf7e87ed8 DIST tcpdump-4.3.0.tar.gz 887619 SHA256 efd08b610210d39977ec3175fa82dad9fbd33587930081be2a905a712dba4286 SHA512 56a33f8aeae551fdc499be31d834207b253de27dce7bdde02e2de5ed0edc4bbe86d8e120c9d2a2303b21d5c32773a4f2984e6af4f0d6f945edb3691a6446cb3c WHIRLPOOL b7d06938816aad8313d61bc30d15efa321ae2ab4663e9355ae2c50b7645bd3cb694de85e04314b5e320459312ee6150a2d3c8c93ee7ffc47ca2ece29bebd8270 DIST tcpdump-4.4.0.tar.gz 915381 SHA256 12274bed2cb89098dadf00a022b4d40853c5108369f3b3117aedf21ec61530bd SHA512 cf31eb2f878e7e448533172241d57071e105b40265b943ebad8d25867384658016676a528f399fb38b0a2ec09d4986d99e4862fd8a09d9a491eeca75ae69d754 WHIRLPOOL f875510dd8c4f409341790281cc2f2f0be2a6e4642e7a00bd7d62ebd4a263f12e7e5f80a17a219c1fa85edf884ccd870dda259d7f90284d9b356edcb0c137d9b EBUILD tcpdump-4.3.0.ebuild 2345 SHA256 c210a21ad6a56c17add0eca2027cdf8cc4c2c58ffb8cb560d79a8e4fe030dacb SHA512 d1ee29b0ccfd7f9014d42499b87e74e7c81841674f64f70d7887a4955605623a8b4897fc0bb721192d718a72d794402bd2b8a080dfa37cd2439a458d8c47a35b WHIRLPOOL c8b276ab9612f74381cd1c5194727d53d691218e51fa998d76e531a9e89ae7f87d3d49b9c048440038c4734a3cdccd0c6d2b7a71de22c7825bd33ead761e5492 +EBUILD tcpdump-4.4.0-r1.ebuild 2380 SHA256 1fafd258a275d65a98d8d633108bfba3512e9887bd24c044631a86c156f7ef5a SHA512 e2b1b0a6d5107ec07c51b1a9d8dfa6d9f6e431f97b844c636df401e0290ce9964268b4652a65ebd743c42f21231dbb54f7e6899b6858ab461becaff2c0f13c4f WHIRLPOOL d30252fc01bc2d66ab404f39b080e76e90bfe0bb2b360c687a81db502f9a4f6087eca5a758d423b2d103a34f886269416cb20d92146e41c58aab0df92a492dc0 EBUILD tcpdump-4.4.0.ebuild 2209 SHA256 a2d7e1fc4bcb4a7ed958816949943f975fcf4c8c63f39981331a8d03ea9df8d5 SHA512 fb0a66f91132d6ebbe4fe0f73f349b36d3dccc28aa5f0acae822bea4dba282d7b173fc3a7807cc0eff95ed6e50b3d14f926c9cea224a3939c474bcb76db1502d WHIRLPOOL 85616181baaa9758fce8adc12a20663f466bb14ee2bcd85e93f9d0ecad7a97842d85dcfcb5a9a4790c73667ccb3c38b7cf69ca96f62c7bd031368dd8f9157d55 -MISC ChangeLog 22750 SHA256 81fb72bba4bb64d6d74e187bdd8918e14c60323bb0de11e67ac49ec3603c24aa SHA512 57ed8874a7f91b39fac130b8a7422ce10d002cb6aa13f69880b854caaf4672fa72ecd1a88e122c3c8a15d606870f2dcb7e018764d85f390307146586f7ba7d3e WHIRLPOOL 0565db659881f48947b481f036b2103855dd04f958ecacc64888e24ac98526d0361e0ec027092f97eaf199878d1f67fd5ad6b9126517c2b2a668f659e602a287 +MISC ChangeLog 22926 SHA256 974be8b60e9691e41f1aef0684c9e3882b2aa7088a208d7135f396a4a6c12960 SHA512 3a2ffadbadee0c61720be3bc8c1aa7e0d2b551b71efdf83fc5b892a5e9f32a8880803d07ad7fd1b1dcf2e1df1f68980c798825db2ea8f36f8c388da4ceaca6a3 WHIRLPOOL 08a26a98ef8082767e8f6bb9162cd777cd34dc9bdf9b226ac00a1587211ba9227102c7a9885a192d72f3b24ed9596286e2a41c02ab49290178b7b08d875315cd MISC metadata.xml 477 SHA256 734dc211640a616efb2a10945f4ea984f9f9ea55863c1b869d95039314336285 SHA512 8b5353591b0f9a4145c5703759cea6ace05bf5d1f70c403bd483fe534f71196c5efaa4c3c160fd314bda9261bc45b2152cea5ae00b8f6635254907121eefc5e8 WHIRLPOOL dece9e0f60ef545dfc27b53f5627ecf6a31578885c87a9e3712e9adc36ae3c886b226c2f7772aa685b3cfe689dd241c49086b4673c034e6f780e15f392b814c6 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iEYEAREIAAYFAlGmXt0ACgkQVWmRsqeSphMH7wCeN3u24VAzkYkHdslupKXjzlMO -ejAAniPR0OBiHSwEkWii64aM9O2yh+I/ -=kw+f +iEYEAREIAAYFAlGrWr0ACgkQVWmRsqeSphP1ngCfeDdPomBAYgIiE7iVjhgw3vLm +6QAAoIFyhKIEhXi6vnsYNnDwmN274lep +=dn3V -----END PGP SIGNATURE----- diff --git a/net-analyzer/tcpdump/tcpdump-4.4.0-r1.ebuild b/net-analyzer/tcpdump/tcpdump-4.4.0-r1.ebuild new file mode 100644 index 000000000000..afcc1455f5ad --- /dev/null +++ b/net-analyzer/tcpdump/tcpdump-4.4.0-r1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/tcpdump-4.4.0-r1.ebuild,v 1.1 2013/06/02 14:46:20 jer Exp $ + +EAPI=5 + +AUTOTOOLS_AUTO_DEPEND="no" # Only cross-compiling +inherit eutils flag-o-matic user 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 ~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=" + chroot? ( sys-libs/libcap-ng ) + net-libs/libpcap + smi? ( net-libs/libsmi ) + ssl? ( >=dev-libs/openssl-0.9.6m ) +" +DEPEND=" + ${RDEPEND} + chroot? ( virtual/pkgconfig ) + 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_configure() { + # tcpdump needs some optymalization. see bug #108391 + ( ! is-flag -O? || is-flag -O0 ) && append-flags -O2 + if use chroot; then + append-cppflags -DHAVE_CAP_NG_H + export LIBS=$( $(tc-getPKG_CONFIG) --libs libcap-ng ) + fi + + replace-flags -O[3-9] -O2 + filter-flags -finline-functions + + econf \ + $(use_enable ipv6) \ + $(use_enable samba smb) \ + $(use_with chroot chroot '') \ + $(use_with smi) \ + $(use_with ssl crypto "${EPREFIX}/usr") \ + --with-user=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." +} |