1 |
commit: 7001c60dda2895ab17c6960c1e825d57f633c8a0 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 31 21:16:32 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 31 21:16:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7001c60d |
7 |
|
8 |
net-analyzer/tcpdump: Version 4.10.0_rc1 |
9 |
|
10 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/tcpdump/Manifest | 1 + |
14 |
net-analyzer/tcpdump/tcpdump-4.10.0_rc1.ebuild | 99 ++++++++++++++++++++++++++ |
15 |
2 files changed, 100 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/tcpdump/Manifest b/net-analyzer/tcpdump/Manifest |
18 |
index 96c3fad37e2..04a763867c0 100644 |
19 |
--- a/net-analyzer/tcpdump/Manifest |
20 |
+++ b/net-analyzer/tcpdump/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST tcpdump-4.10.0rc1.tar.gz 1823212 BLAKE2B aa274e548163eacb09a98edbaa1127dbb06b6fe2f6eb23ffa968a577081d9d9323c339a885a198ee08d7dced04302cf50301ca575fbe95e082a6ed89e115de05 SHA512 b226ca569eeda7cee45fc7a1e42766f404d55ebca8133da544ecd75f975701532346f0cfdbefd4fc708fca12a8d094790c99a7276bd9b563885ef036a3912493 |
23 |
DIST tcpdump-4.9.3.tar.gz 2333119 BLAKE2B 21e13fc40d98cfac0bbd5513580cf98313df1f8fea24c48f045f70d494aea3e75230b8481049660c109f9179015c3164f3e3b31acc76c0bfb1f2da5039f1834e SHA512 3aec673f78b996a4df884b1240e5d0a26a2ca81ee7aca8a2e6d50255bb53476e008a5ced4409e278a956710d8a4d31d85bbb800c9f1aab92b0b1046b59292a22 |
24 |
|
25 |
diff --git a/net-analyzer/tcpdump/tcpdump-4.10.0_rc1.ebuild b/net-analyzer/tcpdump/tcpdump-4.10.0_rc1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..2034a5392dd |
28 |
--- /dev/null |
29 |
+++ b/net-analyzer/tcpdump/tcpdump-4.10.0_rc1.ebuild |
30 |
@@ -0,0 +1,99 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+inherit autotools user |
36 |
+ |
37 |
+DESCRIPTION="A Tool for network monitoring and data acquisition" |
38 |
+HOMEPAGE=" |
39 |
+ https://www.tcpdump.org/ |
40 |
+ https://github.com/the-tcpdump-group/tcpdump |
41 |
+" |
42 |
+LICENSE="BSD" |
43 |
+SRC_URI=" |
44 |
+ https://github.com/the-tcpdump-group/${PN}/archive/${P/_}.tar.gz |
45 |
+" |
46 |
+ |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
49 |
+IUSE="+drop-root libressl smi ssl samba suid test" |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ net-libs/libpcap |
54 |
+ drop-root? ( sys-libs/libcap-ng ) |
55 |
+ smi? ( net-libs/libsmi ) |
56 |
+ ssl? ( |
57 |
+ !libressl? ( >=dev-libs/openssl-0.9.6m:0= ) |
58 |
+ libressl? ( dev-libs/libressl:= ) |
59 |
+ ) |
60 |
+" |
61 |
+BDEPEND=" |
62 |
+ drop-root? ( virtual/pkgconfig ) |
63 |
+" |
64 |
+DEPEND=" |
65 |
+ ${RDEPEND} |
66 |
+ test? ( |
67 |
+ >=net-libs/libpcap-1.9.1 |
68 |
+ dev-lang/perl |
69 |
+ ) |
70 |
+" |
71 |
+PATCHES=( |
72 |
+ "${FILESDIR}"/${PN}-9999-libdir.patch |
73 |
+) |
74 |
+S=${WORKDIR}/${PN}-${P/_} |
75 |
+ |
76 |
+pkg_setup() { |
77 |
+ if use drop-root || use suid; then |
78 |
+ enewgroup tcpdump |
79 |
+ enewuser tcpdump -1 -1 -1 tcpdump |
80 |
+ fi |
81 |
+} |
82 |
+ |
83 |
+src_prepare() { |
84 |
+ default |
85 |
+ |
86 |
+ eautoreconf |
87 |
+} |
88 |
+ |
89 |
+src_configure() { |
90 |
+ econf \ |
91 |
+ $(use_enable samba smb) \ |
92 |
+ $(use_with drop-root cap-ng) \ |
93 |
+ $(use_with drop-root chroot '') \ |
94 |
+ $(use_with smi) \ |
95 |
+ $(use_with ssl crypto "${ESYSROOT}/usr") \ |
96 |
+ $(usex drop-root "--with-user=tcpdump" "") |
97 |
+} |
98 |
+ |
99 |
+src_test() { |
100 |
+ if [[ ${EUID} -ne 0 ]] || ! use drop-root; then |
101 |
+ emake check |
102 |
+ else |
103 |
+ ewarn "If you want to run the test suite, make sure you either" |
104 |
+ ewarn "set FEATURES=userpriv or set USE=-drop-root" |
105 |
+ fi |
106 |
+} |
107 |
+ |
108 |
+src_install() { |
109 |
+ dosbin tcpdump |
110 |
+ doman tcpdump.1 |
111 |
+ dodoc *.awk |
112 |
+ dodoc CHANGES CREDITS README.md |
113 |
+ |
114 |
+ if use suid; then |
115 |
+ fowners root:tcpdump /usr/sbin/tcpdump |
116 |
+ fperms 4110 /usr/sbin/tcpdump |
117 |
+ fi |
118 |
+} |
119 |
+ |
120 |
+pkg_preinst() { |
121 |
+ if use drop-root || use suid; then |
122 |
+ enewgroup tcpdump |
123 |
+ enewuser tcpdump -1 -1 -1 tcpdump |
124 |
+ fi |
125 |
+} |
126 |
+ |
127 |
+pkg_postinst() { |
128 |
+ use suid && elog "To let normal users run tcpdump add them into tcpdump group." |
129 |
+} |