Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/tcpdump: ChangeLog tcpdump-4.4.0-r1.ebuild
Date: Sun, 02 Jun 2013 14:46:26
Message-Id: 20130602144620.8A55B2171D@flycatcher.gentoo.org
1 jer 13/06/02 14:46:20
2
3 Modified: ChangeLog
4 Added: tcpdump-4.4.0-r1.ebuild
5 Log:
6 Enable secret libcap-ng support for chrooting (maybe bug #334329).
7
8 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key A792A613)
9
10 Revision Changes Path
11 1.167 net-analyzer/tcpdump/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/ChangeLog?rev=1.167&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/ChangeLog?rev=1.167&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/ChangeLog?r1=1.166&r2=1.167
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v
20 retrieving revision 1.166
21 retrieving revision 1.167
22 diff -u -r1.166 -r1.167
23 --- ChangeLog 29 May 2013 20:02:35 -0000 1.166
24 +++ ChangeLog 2 Jun 2013 14:46:20 -0000 1.167
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-analyzer/tcpdump
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.166 2013/05/29 20:02:35 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.167 2013/06/02 14:46:20 jer Exp $
30 +
31 +*tcpdump-4.4.0-r1 (02 Jun 2013)
32 +
33 + 02 Jun 2013; Jeroen Roovers <jer@g.o> +tcpdump-4.4.0-r1.ebuild:
34 + Enable secret libcap-ng support for chrooting (maybe bug #334329).
35
36 29 May 2013; Jeroen Roovers <jer@g.o> tcpdump-4.4.0.ebuild:
37 Remove obsolete cross-compile fix.
38
39
40
41 1.1 net-analyzer/tcpdump/tcpdump-4.4.0-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/tcpdump-4.4.0-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/tcpdump-4.4.0-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: tcpdump-4.4.0-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $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 $
51
52 EAPI=5
53
54 AUTOTOOLS_AUTO_DEPEND="no" # Only cross-compiling
55 inherit eutils flag-o-matic user toolchain-funcs
56
57 DESCRIPTION="A Tool for network monitoring and data acquisition"
58 HOMEPAGE="http://www.tcpdump.org/"
59 SRC_URI="http://www.tcpdump.org/release/${P}.tar.gz
60 http://www.jp.tcpdump.org/release/${P}.tar.gz"
61
62 LICENSE="BSD"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux"
65 IUSE="+chroot smi ssl ipv6 -samba suid test"
66
67 RDEPEND="
68 chroot? ( sys-libs/libcap-ng )
69 net-libs/libpcap
70 smi? ( net-libs/libsmi )
71 ssl? ( >=dev-libs/openssl-0.9.6m )
72 "
73 DEPEND="
74 ${RDEPEND}
75 chroot? ( virtual/pkgconfig )
76 test? (
77 || ( app-arch/sharutils sys-freebsd/freebsd-ubin )
78 dev-lang/perl
79 )
80 "
81
82 pkg_setup() {
83 if use samba ; then
84 ewarn
85 ewarn "CAUTION !!! CAUTION !!! CAUTION"
86 ewarn
87 ewarn "You're about to compile tcpdump with samba printing support"
88 ewarn "Upstream tags it as 'possibly-buggy SMB printer'"
89 ewarn "So think twice whether this is fine with you"
90 ewarn
91 ewarn "CAUTION !!! CAUTION !!! CAUTION"
92 ewarn
93 fi
94 enewgroup tcpdump
95 enewuser tcpdump -1 -1 -1 tcpdump
96 }
97
98 src_configure() {
99 # tcpdump needs some optymalization. see bug #108391
100 ( ! is-flag -O? || is-flag -O0 ) && append-flags -O2
101 if use chroot; then
102 append-cppflags -DHAVE_CAP_NG_H
103 export LIBS=$( $(tc-getPKG_CONFIG) --libs libcap-ng )
104 fi
105
106 replace-flags -O[3-9] -O2
107 filter-flags -finline-functions
108
109 econf \
110 $(use_enable ipv6) \
111 $(use_enable samba smb) \
112 $(use_with chroot chroot '') \
113 $(use_with smi) \
114 $(use_with ssl crypto "${EPREFIX}/usr") \
115 --with-user=tcpdump
116 }
117
118 src_test() {
119 sed '/^\(espudp1\|eapon1\)/d;' -i tests/TESTLIST
120 emake check
121 }
122
123 src_install() {
124 dosbin tcpdump
125 doman tcpdump.1
126 dodoc *.awk
127 dodoc CHANGES CREDITS README
128
129 if use chroot; then
130 keepdir /var/lib/tcpdump
131 fperms 700 /var/lib/tcpdump
132 fowners tcpdump:tcpdump /var/lib/tcpdump
133 fi
134 if use suid; then
135 fowners root:tcpdump /usr/sbin/tcpdump
136 fperms 4110 /usr/sbin/tcpdump
137 fi
138 }
139
140 pkg_postinst() {
141 use suid && elog "To let normal users run tcpdump add them into tcpdump group."
142 }