1 |
pva 10/04/02 07:07:51 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: tcpdump-4.1.0-r1.ebuild |
5 |
Log: |
6 |
Added suid USE flag to allow users in tcpdump group to sniff traffic, bug #283527, thank Hank Leininger for report. |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.141 net-analyzer/tcpdump/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/tcpdump/ChangeLog?rev=1.141&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/tcpdump/ChangeLog?rev=1.141&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/tcpdump/ChangeLog?r1=1.140&r2=1.141 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v |
19 |
retrieving revision 1.140 |
20 |
retrieving revision 1.141 |
21 |
diff -u -r1.140 -r1.141 |
22 |
--- ChangeLog 2 Apr 2010 06:02:17 -0000 1.140 |
23 |
+++ ChangeLog 2 Apr 2010 07:07:51 -0000 1.141 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for net-analyzer/tcpdump |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.140 2010/04/02 06:02:17 pva Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.141 2010/04/02 07:07:51 pva Exp $ |
29 |
+ |
30 |
+*tcpdump-4.1.0-r1 (02 Apr 2010) |
31 |
+ |
32 |
+ 02 Apr 2010; Peter Volkov <pva@g.o> +tcpdump-4.1.0-r1.ebuild: |
33 |
+ Added suid USE flag to allow users in tcpdump group to sniff traffic, bug |
34 |
+ #283527, thank Hank Leininger for report. |
35 |
|
36 |
*tcpdump-4.1.0 (02 Apr 2010) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 net-analyzer/tcpdump/tcpdump-4.1.0-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/tcpdump/tcpdump-4.1.0-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/tcpdump/tcpdump-4.1.0-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: tcpdump-4.1.0-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 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.1.0-r1.ebuild,v 1.1 2010/04/02 07:07:51 pva Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
inherit flag-o-matic toolchain-funcs eutils versionator autotools |
54 |
|
55 |
DESCRIPTION="A Tool for network monitoring and data acquisition" |
56 |
HOMEPAGE="http://www.tcpdump.org/" |
57 |
SRC_URI="http://www.tcpdump.org/release/${P}.tar.gz |
58 |
http://www.jp.tcpdump.org/release/${P}.tar.gz" |
59 |
|
60 |
LICENSE="BSD" |
61 |
SLOT="0" |
62 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux" |
63 |
IUSE="+chroot smi ssl ipv6 -samba suid test" |
64 |
|
65 |
RDEPEND="net-libs/libpcap |
66 |
smi? ( net-libs/libsmi ) |
67 |
ssl? ( >=dev-libs/openssl-0.9.6m )" |
68 |
DEPEND="${RDEPEND} |
69 |
test? ( app-arch/sharutils |
70 |
dev-lang/perl )" |
71 |
|
72 |
S=${WORKDIR}/${PN}-$(get_version_component_range 1-2) |
73 |
|
74 |
pkg_setup() { |
75 |
if use samba ; then |
76 |
ewarn |
77 |
ewarn "CAUTION !!! CAUTION !!! CAUTION" |
78 |
ewarn |
79 |
ewarn "You're about to compile tcpdump with samba printing support" |
80 |
ewarn "Upstream tags it as 'possibly-buggy SMB printer'" |
81 |
ewarn "So think twice whether this is fine with you" |
82 |
ewarn |
83 |
ewarn "CAUTION !!! CAUTION !!! CAUTION" |
84 |
ewarn |
85 |
fi |
86 |
enewgroup tcpdump |
87 |
enewuser tcpdump -1 -1 -1 tcpdump |
88 |
} |
89 |
|
90 |
src_prepare() { |
91 |
epatch "${FILESDIR}/${P}-without-chroot.patch" |
92 |
eautoconf |
93 |
} |
94 |
|
95 |
src_configure() { |
96 |
# tcpdump needs some optymalization. see bug #108391 |
97 |
( ! is-flag -O? || is-flag -O0 ) && append-flags -O2 |
98 |
|
99 |
replace-flags -O[3-9] -O2 |
100 |
filter-flags -finline-functions |
101 |
|
102 |
econf --with-user=tcpdump \ |
103 |
$(use_with ssl crypto) \ |
104 |
$(use_with smi) \ |
105 |
$(use_enable ipv6) \ |
106 |
$(use_enable samba smb) \ |
107 |
$(use_with chroot chroot /var/lib/tcpdump) |
108 |
} |
109 |
|
110 |
src_compile() { |
111 |
make CCOPT="$CFLAGS" || die "make failed" |
112 |
} |
113 |
|
114 |
src_test() { |
115 |
#sed '/^\(bgp_vpn_attrset\|ikev2four\|espudp1\|eapon1\)/d;' -i tests/TESTLIST |
116 |
#make check || die "tests failed" |
117 |
ewarn "tests are broken in the release... (tests directory missed in tarball)" |
118 |
} |
119 |
|
120 |
src_install() { |
121 |
dosbin tcpdump || die |
122 |
doman tcpdump.1 || die |
123 |
dodoc *.awk || die |
124 |
dodoc CHANGES CREDITS README || die |
125 |
|
126 |
if use chroot; then |
127 |
keepdir /var/lib/tcpdump |
128 |
fperms 700 /var/lib/tcpdump |
129 |
fowners tcpdump:tcpdump /var/lib/tcpdump |
130 |
fi |
131 |
if use suid; then |
132 |
fowners root:tcpdump /usr/sbin/tcpdump |
133 |
fperms 4110 /usr/sbin/tcpdump |
134 |
fi |
135 |
} |
136 |
|
137 |
pkg_postinst() { |
138 |
elog "To let normal users run tcpdump add them into tcpdump group." |
139 |
} |