1 |
zerochaos 13/12/06 04:43:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: tcpdump-4.5.1-r1.ebuild |
5 |
Log: |
6 |
fix for bug #488522 thanks to pchrist |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key DD11F94A) |
9 |
|
10 |
Revision Changes Path |
11 |
1.177 net-analyzer/tcpdump/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/ChangeLog?rev=1.177&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/ChangeLog?rev=1.177&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/ChangeLog?r1=1.176&r2=1.177 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v |
20 |
retrieving revision 1.176 |
21 |
retrieving revision 1.177 |
22 |
diff -u -r1.176 -r1.177 |
23 |
--- ChangeLog 28 Nov 2013 05:07:55 -0000 1.176 |
24 |
+++ ChangeLog 6 Dec 2013 04:43:27 -0000 1.177 |
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.176 2013/11/28 05:07:55 radhermit Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.177 2013/12/06 04:43:27 zerochaos Exp $ |
30 |
+ |
31 |
+*tcpdump-4.5.1-r1 (06 Dec 2013) |
32 |
+ |
33 |
+ 06 Dec 2013; Rick Farina <zerochaos@g.o> +tcpdump-4.5.1-r1.ebuild: |
34 |
+ fix for bug #488522 thanks to pchrist |
35 |
|
36 |
28 Nov 2013; Tim Harder <radhermit@g.o> tcpdump-4.4.0-r1.ebuild: |
37 |
Fix test logic (bug #482374). |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-analyzer/tcpdump/tcpdump-4.5.1-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/tcpdump-4.5.1-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/tcpdump-4.5.1-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: tcpdump-4.5.1-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.5.1-r1.ebuild,v 1.1 2013/12/06 04:43:27 zerochaos Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
|
54 |
AUTOTOOLS_AUTO_DEPEND="no" # Only cross-compiling |
55 |
inherit autotools eutils flag-o-matic toolchain-funcs user |
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="+drop-root smi ssl ipv6 -samba suid test" |
66 |
|
67 |
RDEPEND=" |
68 |
drop-root? ( 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 |
drop-root? ( 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 with:" |
89 |
ewarn "WARNING: The SMB printer may have exploitable buffer overflows!!!" |
90 |
ewarn "So think twice whether this is fine with you" |
91 |
ewarn |
92 |
ewarn "CAUTION !!! CAUTION !!! CAUTION" |
93 |
ewarn |
94 |
fi |
95 |
if use drop-root || use suid; then |
96 |
enewgroup tcpdump |
97 |
enewuser tcpdump -1 -1 -1 tcpdump |
98 |
fi |
99 |
} |
100 |
|
101 |
src_prepare() { |
102 |
sed -i aclocal.m4 -e 's|\"-O2\"|\"\"|g' || die |
103 |
sed -i configure.in -e \ |
104 |
's|-z \"$with_user\" ;|-z \"$with_user\" \&\& test \"$with_user\" != \"no\" ;|g' || die |
105 |
eautoconf |
106 |
} |
107 |
src_configure() { |
108 |
# tcpdump needs some optimization. see bug #108391 |
109 |
# but do not replace -Os |
110 |
filter-flags -O[0-9] |
111 |
has -O? ${CFLAGS} || append-cflags -O2 |
112 |
|
113 |
filter-flags -finline-functions |
114 |
|
115 |
if use drop-root; then |
116 |
append-cppflags -DHAVE_CAP_NG_H |
117 |
export LIBS=$( $(tc-getPKG_CONFIG) --libs libcap-ng ) |
118 |
fi |
119 |
|
120 |
econf \ |
121 |
$(use_enable ipv6) \ |
122 |
$(use_enable samba smb) \ |
123 |
$(use_with drop-root chroot '') \ |
124 |
$(use_with smi) \ |
125 |
$(use_with ssl crypto "${EPREFIX}/usr") \ |
126 |
$(use_with drop-root user tcpdump) |
127 |
} |
128 |
|
129 |
src_test() { |
130 |
if [[ ${EUID} -ne 0 ]] || ! use drop-root; then |
131 |
sed -i '/^\(espudp1\|eapon1\)/d;' -i tests/TESTLIST |
132 |
emake check |
133 |
else |
134 |
ewarn "If you want to run the test suite, make sure you either" |
135 |
ewarn "set FEATURES=userpriv or set USE=-drop-root" |
136 |
fi |
137 |
} |
138 |
|
139 |
src_install() { |
140 |
dosbin tcpdump |
141 |
doman tcpdump.1 |
142 |
dodoc *.awk |
143 |
dodoc CHANGES CREDITS README.md |
144 |
|
145 |
if use suid; then |
146 |
fowners root:tcpdump /usr/sbin/tcpdump |
147 |
fperms 4110 /usr/sbin/tcpdump |
148 |
fi |
149 |
} |
150 |
|
151 |
pkg_preinst() { |
152 |
if use drop-root || use suid; then |
153 |
enewgroup tcpdump |
154 |
enewuser tcpdump -1 -1 -1 tcpdump |
155 |
fi |
156 |
} |
157 |
|
158 |
pkg_postinst() { |
159 |
use suid && elog "To let normal users run tcpdump add them into tcpdump group." |
160 |
} |