Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/tcpdump/
Date: Sun, 01 Jan 2023 02:37:50
Message-Id: 1672539929.edb2ec3822ac62f0061a022d5bc993314c3a912e.sam@gentoo
1 commit: edb2ec3822ac62f0061a022d5bc993314c3a912e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 1 02:25:29 2023 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 1 02:25:29 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edb2ec38
7
8 net-analyzer/tcpdump: add 4.99.2
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-analyzer/tcpdump/Manifest | 2 +
13 net-analyzer/tcpdump/tcpdump-4.99.2.ebuild | 103 +++++++++++++++++++++++++++++
14 2 files changed, 105 insertions(+)
15
16 diff --git a/net-analyzer/tcpdump/Manifest b/net-analyzer/tcpdump/Manifest
17 index 713c659ac15d..7caa0af89c5c 100644
18 --- a/net-analyzer/tcpdump/Manifest
19 +++ b/net-analyzer/tcpdump/Manifest
20 @@ -1,2 +1,4 @@
21 DIST tcpdump-4.99.1-upstream.tar.gz 2014324 BLAKE2B 0a10fe68afdfe80d3e7e661352fcaf1c47702df27fbed959f52fb0ec81543a1d4ce6b0de16a8b081de48dd43e09a13f5e1f0fb11d7590f92cbff29dc511bea12 SHA512 53d31355e1a6ef5a65bb3bf72454169fc80adf973a327a5768840e6ccf0550fbeb3c8a41f959635076d871df0619680321910a3a97879607f481cdaa8b7ceda7
22 DIST tcpdump-4.99.1-upstream.tar.gz.sig 442 BLAKE2B 9a80b1796ef777bd06d0b8953fe1ff446431d0ff1dffcd58e29a0b771f6734f70f3f0da7c36a1eaa1b6e57719d79c601872a84b7734208a7e8951cad9aca86ee SHA512 b438643701efbbb5579d9d51ed48756a47dd644e0acb10b0edff6d04f3ae4cea6528b40820a656407b73f983b2a634e0165a6c8c0fca3b557394a14e2f2384ab
23 +DIST tcpdump-4.99.2.tar.gz 1897480 BLAKE2B be13fbf493478270c8ebc034a3c1467907a008ce2ed9632a87b7d7b9104b9fda248cd535da7313a1c3d57ca21f324c25593812590b96ec334c474d1ce06f3fd5 SHA512 7986e7517441872d4461da23dc546c01e23449108974458a4e5e493db6f066f9e7da801623a6c43cfa2079ac3d409f813d1ffde2ecc12b6dba661dae0693b735
24 +DIST tcpdump-4.99.2.tar.gz.sig 442 BLAKE2B 011c93803a1c339f9ce46dedb8e3420d77c5362575061c9b852647d8e8de6936079150240b444f660a84b9e45337960b8878e7c4de1f4e6ad2fff16225811d24 SHA512 33704e9b2ece65ca8a1fbf8234088e561f132a561ac859da32c7fb4d4caaeabd9a4b50ac8f939e48c18e672dade9393c7e56bc838ec8ac9828be5360e99e5692
25
26 diff --git a/net-analyzer/tcpdump/tcpdump-4.99.2.ebuild b/net-analyzer/tcpdump/tcpdump-4.99.2.ebuild
27 new file mode 100644
28 index 000000000000..90c41439b38b
29 --- /dev/null
30 +++ b/net-analyzer/tcpdump/tcpdump-4.99.2.ebuild
31 @@ -0,0 +1,103 @@
32 +# Copyright 1999-2023 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit autotools
38 +
39 +DESCRIPTION="A tool for network monitoring and data acquisition"
40 +HOMEPAGE="https://www.tcpdump.org/ https://github.com/the-tcpdump-group/tcpdump"
41 +
42 +if [[ ${PV} == *9999* ]] ; then
43 + inherit git-r3
44 +
45 + EGIT_REPO_URI="https://github.com/the-tcpdump-group/tcpdump"
46 +else
47 + VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/tcpdump.asc
48 + inherit verify-sig
49 +
50 + SRC_URI="https://www.tcpdump.org/release/${P}.tar.gz"
51 + SRC_URI+=" verify-sig? ( https://www.tcpdump.org/release/${P}.tar.gz.sig )"
52 +
53 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
54 +fi
55 +
56 +LICENSE="BSD"
57 +SLOT="0"
58 +IUSE="+drop-root +smi +ssl +samba suid test"
59 +REQUIRED_USE="test? ( samba )"
60 +
61 +# Assorted failures: bug #768498
62 +RESTRICT="test"
63 +
64 +RDEPEND="
65 + >=net-libs/libpcap-1.10.1
66 + drop-root? (
67 + acct-group/pcap
68 + acct-user/pcap
69 + sys-libs/libcap-ng
70 + )
71 + smi? ( net-libs/libsmi )
72 + ssl? (
73 + >=dev-libs/openssl-0.9.6m:0=
74 + )
75 + suid? (
76 + acct-group/pcap
77 + acct-user/pcap
78 + )
79 +"
80 +DEPEND="
81 + ${RDEPEND}
82 + test? (
83 + dev-lang/perl
84 + )
85 +"
86 +BDEPEND="drop-root? ( virtual/pkgconfig )"
87 +
88 +if [[ ${PV} != *9999* ]] ; then
89 + BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-tcpdump )"
90 +fi
91 +
92 +PATCHES=(
93 + "${FILESDIR}"/${PN}-9999-libdir.patch
94 +)
95 +
96 +src_prepare() {
97 + default
98 + eautoreconf
99 +}
100 +
101 +src_configure() {
102 + econf \
103 + $(use_enable samba smb) \
104 + $(use_with drop-root cap-ng) \
105 + $(use_with drop-root chroot '') \
106 + $(use_with smi) \
107 + $(use_with ssl crypto "${ESYSROOT}/usr") \
108 + $(usex drop-root "--with-user=pcap" "")
109 +}
110 +
111 +src_test() {
112 + if [[ ${EUID} -ne 0 ]] || ! use drop-root ; then
113 + emake check
114 + else
115 + ewarn "If you want to run the test suite, make sure you either"
116 + ewarn "set FEATURES=userpriv or set USE=-drop-root"
117 + fi
118 +}
119 +
120 +src_install() {
121 + dosbin tcpdump
122 + doman tcpdump.1
123 + dodoc *.awk
124 + dodoc CHANGES CREDITS README.md
125 +
126 + if use suid ; then
127 + fowners root:pcap /usr/sbin/tcpdump
128 + fperms 4110 /usr/sbin/tcpdump
129 + fi
130 +}
131 +
132 +pkg_postinst() {
133 + use suid && elog "To let normal users run tcpdump, add them to the pcap group."
134 +}