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