1 |
radhermit 13/11/28 04:57:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: tcpdump-4.5.1.ebuild |
5 |
Log: |
6 |
Version bump, fix test logic. |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.174 net-analyzer/tcpdump/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/ChangeLog?rev=1.174&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/ChangeLog?rev=1.174&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/ChangeLog?r1=1.173&r2=1.174 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v |
20 |
retrieving revision 1.173 |
21 |
retrieving revision 1.174 |
22 |
diff -u -r1.173 -r1.174 |
23 |
--- ChangeLog 27 Jul 2013 17:11:03 -0000 1.173 |
24 |
+++ ChangeLog 28 Nov 2013 04:57:43 -0000 1.174 |
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.173 2013/07/27 17:11:03 jer Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.174 2013/11/28 04:57:43 radhermit Exp $ |
30 |
+ |
31 |
+*tcpdump-4.5.1 (28 Nov 2013) |
32 |
+ |
33 |
+ 28 Nov 2013; Tim Harder <radhermit@g.o> +tcpdump-4.5.1.ebuild: |
34 |
+ Version bump, fix test logic. |
35 |
|
36 |
27 Jul 2013; Jeroen Roovers <jer@g.o> metadata.xml: |
37 |
Remove duplicate description. |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-analyzer/tcpdump/tcpdump-4.5.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/tcpdump-4.5.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/tcpdump-4.5.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: tcpdump-4.5.1.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.ebuild,v 1.1 2013/11/28 04:57:43 radhermit 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 |
eautoconf |
104 |
} |
105 |
src_configure() { |
106 |
# tcpdump needs some optimization. see bug #108391 |
107 |
# but do not replace -Os |
108 |
filter-flags -O[0-9] |
109 |
has -O? ${CFLAGS} || append-cflags -O2 |
110 |
|
111 |
filter-flags -finline-functions |
112 |
|
113 |
if use drop-root; then |
114 |
append-cppflags -DHAVE_CAP_NG_H |
115 |
export LIBS=$( $(tc-getPKG_CONFIG) --libs libcap-ng ) |
116 |
fi |
117 |
|
118 |
econf \ |
119 |
$(use_enable ipv6) \ |
120 |
$(use_enable samba smb) \ |
121 |
$(use_with drop-root chroot '') \ |
122 |
$(use_with smi) \ |
123 |
$(use_with ssl crypto "${EPREFIX}/usr") \ |
124 |
--with-user=tcpdump |
125 |
} |
126 |
|
127 |
src_test() { |
128 |
if [[ ${EUID} -ne 0 ]] || ! use drop-root; then |
129 |
sed -i '/^\(espudp1\|eapon1\)/d;' -i tests/TESTLIST |
130 |
emake check |
131 |
else |
132 |
ewarn "If you want to run the test suite, make sure you either" |
133 |
ewarn "set FEATURES=userpriv or set USE=-drop-root" |
134 |
fi |
135 |
} |
136 |
|
137 |
src_install() { |
138 |
dosbin tcpdump |
139 |
doman tcpdump.1 |
140 |
dodoc *.awk |
141 |
dodoc CHANGES CREDITS README.md |
142 |
|
143 |
if use suid; then |
144 |
fowners root:tcpdump /usr/sbin/tcpdump |
145 |
fperms 4110 /usr/sbin/tcpdump |
146 |
fi |
147 |
} |
148 |
|
149 |
pkg_preinst() { |
150 |
if use drop-root || use suid; then |
151 |
enewgroup tcpdump |
152 |
enewuser tcpdump -1 -1 -1 tcpdump |
153 |
fi |
154 |
} |
155 |
|
156 |
pkg_postinst() { |
157 |
use suid && elog "To let normal users run tcpdump add them into tcpdump group." |
158 |
} |