Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/tcpdump/
Date: Fri, 08 Sep 2017 04:13:04
Message-Id: 1504843979.abc391bfbd45833a229013f38a8d7541beb67d14.jer@gentoo
1 commit: abc391bfbd45833a229013f38a8d7541beb67d14
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 8 04:11:46 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 8 04:12:59 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abc391bf
7
8 net-analyzer/tcpdump: Version bump.
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11
12 net-analyzer/tcpdump/Manifest | 1 +
13 net-analyzer/tcpdump/tcpdump-4.9.2.ebuild | 91 +++++++++++++++++++++++++++++++
14 2 files changed, 92 insertions(+)
15
16 diff --git a/net-analyzer/tcpdump/Manifest b/net-analyzer/tcpdump/Manifest
17 index 69b5f38afd7..f5f4aa7d6d7 100644
18 --- a/net-analyzer/tcpdump/Manifest
19 +++ b/net-analyzer/tcpdump/Manifest
20 @@ -1,2 +1,3 @@
21 DIST tcpdump-4.9.0.tar.gz 1260309 SHA256 eae98121cbb1c9adbedd9a777bf2eae9fa1c1c676424a54740311c8abcee5a5e SHA512 e98d73ae706d42e96b4069e196cf17af892eb97935664eebd08779b55b4da858bc1732d714efd16924f862aad0ba5550ceb2213c68414ed48907c46456c9fc82 WHIRLPOOL bd2284919bd3a2af166c6e05254e6fb7fa757b76f269d1a4951fe0ccfb6ad282a50f5670d3f8a38f6bffd1834bc809effd2e8575f9f0dd2fd7eaa4b4fdce5552
22 DIST tcpdump-4.9.1.tar.gz 1192832 SHA256 4d1a69eab083d5df91effb805024abd4406e8a592e98558ed8722ef160c58119 SHA512 82ff20ece4c197f4b0142e45227310dc513facc9668c1423cb402eb2b62a18909a172c432ee6b20c012c172d47752ef65e2747f9d93d335073ea0ce3c007f5c9 WHIRLPOOL ed59af89e0c67477db3f10bd2d8c2b9b2dc2b3c7e3906abe37b0eba5024084e93afa98b39690c1c3af94cc6a0955023ee01ccfc5547a454dafe952957807295f
23 +DIST tcpdump-4.9.2.tar.gz 2298386 SHA256 798b3536a29832ce0cbb07fafb1ce5097c95e308a6f592d14052e1ef1505fe79 SHA512 e1bc19a5867d6e3628f3941bdf3ec831bf13784f1233ca1bccc46aac1702f47ee9357d7ff0ca62cddf211b3c8884488c21144cabddd92c861e32398cd8f7c44b WHIRLPOOL 6652a5bb83a082bc8df050610ed640f0119fb846f2938a5148be3008506548e73c3c6437a62752eafdd00910c35b2b5decfd21c207719d156fb7dc8ca9e3443a
24
25 diff --git a/net-analyzer/tcpdump/tcpdump-4.9.2.ebuild b/net-analyzer/tcpdump/tcpdump-4.9.2.ebuild
26 new file mode 100644
27 index 00000000000..3eb305e4d25
28 --- /dev/null
29 +++ b/net-analyzer/tcpdump/tcpdump-4.9.2.ebuild
30 @@ -0,0 +1,91 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +inherit flag-o-matic toolchain-funcs user
36 +
37 +DESCRIPTION="A Tool for network monitoring and data acquisition"
38 +HOMEPAGE="
39 + http://www.tcpdump.org/
40 + https://github.com/the-tcpdump-group/tcpdump
41 +"
42 +SRC_URI="
43 + https://sources.archlinux.org/other/packages/${PN}/${P}.tar.gz
44 +"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
49 +IUSE="+drop-root libressl smi ssl samba suid test"
50 +
51 +RDEPEND="
52 + drop-root? ( sys-libs/libcap-ng )
53 + net-libs/libpcap
54 + smi? ( net-libs/libsmi )
55 + ssl? (
56 + !libressl? ( >=dev-libs/openssl-0.9.6m:0 )
57 + libressl? ( dev-libs/libressl )
58 + )
59 +"
60 +DEPEND="
61 + ${RDEPEND}
62 + drop-root? ( virtual/pkgconfig )
63 + test? (
64 + || ( app-arch/sharutils sys-freebsd/freebsd-ubin )
65 + dev-lang/perl
66 + )
67 +"
68 +
69 +pkg_setup() {
70 + if use drop-root || use suid; then
71 + enewgroup tcpdump
72 + enewuser tcpdump -1 -1 -1 tcpdump
73 + fi
74 +}
75 +
76 +src_configure() {
77 + if use drop-root; then
78 + append-cppflags -DHAVE_CAP_NG_H
79 + export LIBS=$( $(tc-getPKG_CONFIG) --libs libcap-ng )
80 + fi
81 +
82 + econf \
83 + $(use_enable samba smb) \
84 + $(use_with drop-root chroot '') \
85 + $(use_with smi) \
86 + $(use_with ssl crypto "${EPREFIX}/usr") \
87 + $(usex drop-root "--with-user=tcpdump" "")
88 +}
89 +
90 +src_test() {
91 + if [[ ${EUID} -ne 0 ]] || ! use drop-root; then
92 + sed -i -e '/^\(espudp1\|eapon1\)/d;' tests/TESTLIST || die
93 + emake check
94 + else
95 + ewarn "If you want to run the test suite, make sure you either"
96 + ewarn "set FEATURES=userpriv or set USE=-drop-root"
97 + fi
98 +}
99 +
100 +src_install() {
101 + dosbin tcpdump
102 + doman tcpdump.1
103 + dodoc *.awk
104 + dodoc CHANGES CREDITS README.md
105 +
106 + if use suid; then
107 + fowners root:tcpdump /usr/sbin/tcpdump
108 + fperms 4110 /usr/sbin/tcpdump
109 + fi
110 +}
111 +
112 +pkg_preinst() {
113 + if use drop-root || use suid; then
114 + enewgroup tcpdump
115 + enewuser tcpdump -1 -1 -1 tcpdump
116 + fi
117 +}
118 +
119 +pkg_postinst() {
120 + use suid && elog "To let normal users run tcpdump add them into tcpdump group."
121 +}