1 |
jlec 10/11/28 09:29:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: iptraf-3.0.0-r6.ebuild |
5 |
Log: |
6 |
Fixes for overflows buffers taken from debian |
7 |
|
8 |
(Portage version: 2.2.0_alpha6/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.83 net-analyzer/iptraf/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/iptraf/ChangeLog?rev=1.83&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/iptraf/ChangeLog?rev=1.83&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/iptraf/ChangeLog?r1=1.82&r2=1.83 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/iptraf/ChangeLog,v |
20 |
retrieving revision 1.82 |
21 |
retrieving revision 1.83 |
22 |
diff -u -r1.82 -r1.83 |
23 |
--- ChangeLog 6 Jan 2010 20:12:05 -0000 1.82 |
24 |
+++ ChangeLog 28 Nov 2010 09:29:02 -0000 1.83 |
25 |
@@ -1,309 +1,10 @@ |
26 |
# ChangeLog for net-analyzer/iptraf |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/iptraf/ChangeLog,v 1.82 2010/01/06 20:12:05 jer Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/iptraf/ChangeLog,v 1.83 2010/11/28 09:29:02 jlec Exp $ |
30 |
|
31 |
- 06 Jan 2010; Jeroen Roovers <jer@g.o> |
32 |
- -files/iptraf-3.0.0-atheros.patch, -files/iptraf-3.0.0-bnep.patch, |
33 |
- -files/iptraf-3.0.0-ipv6-glibc24.patch: |
34 |
- Remove unused patches. |
35 |
+*iptraf-3.0.0-r6 (28 Nov 2010) |
36 |
|
37 |
- 06 Jan 2010; Jeroen Roovers <jer@g.o> -iptraf-3.0.0-r4.ebuild: |
38 |
- Remove old. |
39 |
+ 28 Nov 2010; Justin Lecher <jlec@g.o> |
40 |
+ +files/3.0.0-buffer-overflow.patch, +iptraf-3.0.0-r6.ebuild: |
41 |
+ Fixes for overflows buffers taken from debian |
42 |
|
43 |
- 06 Jan 2010; Brent Baude <ranger@g.o> iptraf-3.0.0-r5.ebuild: |
44 |
- Marking iptraf-3.0.0-r5 ppc64 for bug 291491 |
45 |
- |
46 |
- 29 Dec 2009; Raúl Porcel <armin76@g.o> iptraf-3.0.0-r5.ebuild: |
47 |
- arm/s390/sh stable wrt #291491 |
48 |
- |
49 |
- 06 Dec 2009; Tobias Klausmann <klausman@g.o> |
50 |
- iptraf-3.0.0-r5.ebuild: |
51 |
- Stable on alpha, bug #291491 |
52 |
- |
53 |
- 12 Nov 2009; Jeroen Roovers <jer@g.o> iptraf-3.0.0-r5.ebuild: |
54 |
- Stable for HPPA (bug #291491). |
55 |
- |
56 |
- 12 Nov 2009; Jeroen Roovers <jer@g.o> iptraf-3.0.0-r4.ebuild, |
57 |
- iptraf-3.0.0-r5.ebuild: |
58 |
- Fix whitespace. Download ipv6 patch conditionally. Separate unpacking and |
59 |
- patching (bug #291491 comment #3). |
60 |
- |
61 |
- 12 Nov 2009; Tiago Cunha <tcunha@g.o> iptraf-3.0.0-r5.ebuild: |
62 |
- stable sparc, bug 291491 |
63 |
- |
64 |
- 08 Nov 2009; nixnut <nixnut@g.o> iptraf-3.0.0-r5.ebuild: |
65 |
- ppc stable #291491 |
66 |
- |
67 |
- 04 Nov 2009; Markus Meier <maekke@g.o> iptraf-3.0.0-r5.ebuild: |
68 |
- amd64/x86 stable, bug #291491 |
69 |
- |
70 |
- 21 Mar 2009; Jeroen Roovers <jer@g.o> |
71 |
- -files/iptraf-2.7.0-2.6.patch, -files/iptraf-2.7.0-atheros.patch, |
72 |
- -files/iptraf-2.7.0-ipv6-glibc24.patch, files/iptraf-3.0.0-Makefile.patch, |
73 |
- -iptraf-2.7.0-r1.ebuild, iptraf-3.0.0-r5.ebuild: |
74 |
- Remove ancient version. Fix parallel make thanks to Davide Pesavento (bug |
75 |
- #262971). Explicate RDEPEND. |
76 |
- |
77 |
- 08 Mar 2009; Dawid Węgliński <cla@g.o> iptraf-3.0.0-r4.ebuild, |
78 |
- iptraf-3.0.0-r5.ebuild: |
79 |
- Migrate to EAPI 2 |
80 |
- |
81 |
- 30 Dec 2008; Peter Volkov <pva@g.o> |
82 |
- +files/iptraf-3.0.0-ipv6-glibc24-updated.patch, iptraf-3.0.0-r5.ebuild: |
83 |
- Fixed build issue with uclibc, bug #252874, thank Tom Lloyd for report. |
84 |
- |
85 |
- 27 Oct 2008; Peter Volkov <pva@g.o> iptraf-3.0.0-r5.ebuild: |
86 |
- ~mips keyworded, bug #237773 |
87 |
- |
88 |
-*iptraf-3.0.0-r5 (24 Oct 2008) |
89 |
- |
90 |
- 24 Oct 2008; Peter Volkov <pva@g.o> +files/iptraf-3.0.0-vlan.patch, |
91 |
- -iptraf-3.0.0-r3.ebuild, +iptraf-3.0.0-r5.ebuild: |
92 |
- Fixes ability to listen on vlan interfaces, bug #231745, thank Tomas Vasek |
93 |
- for report and Ross Dougherty for actual tests. Removed old. |
94 |
- |
95 |
- 06 Nov 2007; Markus Rothe <corsair@g.o> iptraf-3.0.0-r4.ebuild: |
96 |
- Stable on ppc64; bug #197609 |
97 |
- |
98 |
- 03 Nov 2007; Raúl Porcel <armin76@g.o> iptraf-3.0.0-r4.ebuild: |
99 |
- alpha stable wrt #197609 |
100 |
- |
101 |
- 02 Nov 2007; Lars Weiler <pylon@g.o> iptraf-3.0.0-r4.ebuild: |
102 |
- stable ppc, bug #197609 |
103 |
- |
104 |
- 02 Nov 2007; Steve Dibb <beandog@g.o> iptraf-3.0.0-r4.ebuild: |
105 |
- amd64 stable, bug 197609 |
106 |
- |
107 |
- 31 Oct 2007; Dawid Węgliński <cla@g.o> iptraf-3.0.0-r4.ebuild: |
108 |
- Stable on x86 (bug #197609) |
109 |
- |
110 |
- 31 Oct 2007; Jeroen Roovers <jer@g.o> iptraf-3.0.0-r4.ebuild: |
111 |
- Stable for HPPA (bug #197609). |
112 |
- |
113 |
- 31 Oct 2007; Ferris McCormick <fmccor@g.o> iptraf-3.0.0-r4.ebuild: |
114 |
- Sparc stable, fix quoting --- Bug #197609 --- Neat! |
115 |
- |
116 |
- 06 Sep 2007; Markus Ullmann <jokey@g.o> -iptraf-3.0.0.ebuild: |
117 |
- Cleanup |
118 |
- |
119 |
- 03 Sep 2007; Jeroen Roovers <jer@g.o> iptraf-3.0.0-r4.ebuild: |
120 |
- Back to ~arch (bug #190032). |
121 |
- |
122 |
-*iptraf-3.0.0-r4 (02 Sep 2007) |
123 |
- |
124 |
- 02 Sep 2007; <pva@g.o> +files/iptraf-3.0.0-add-devnames.patch, |
125 |
- -iptraf-3.0.0-r2.ebuild, +iptraf-3.0.0-r4.ebuild: |
126 |
- bnep, ath and misc additional devices reported in bug #190032 by Rui Santos |
127 |
- <rsantos AT ruisantos.com> are integrated in one patch and added. Cleaned |
128 |
- old ebuild. |
129 |
- |
130 |
- 27 Jun 2007; Raúl Porcel <armin76@g.o> iptraf-3.0.0-r3.ebuild: |
131 |
- alpha stable wrt #183386 |
132 |
- |
133 |
- 27 Jun 2007; Christoph Mende <angelos@g.o> iptraf-3.0.0-r3.ebuild: |
134 |
- Stable on amd64 wrt bug 183386 |
135 |
- |
136 |
- 01 May 2007; Marius Mauch <genone@g.o> iptraf-3.0.0-r2.ebuild, |
137 |
- iptraf-3.0.0-r3.ebuild: |
138 |
- Replacing einfo with elog |
139 |
- |
140 |
- 24 Apr 2007; Jeroen Roovers <jer@g.o> iptraf-3.0.0-r3.ebuild: |
141 |
- Stable for HPPA too. |
142 |
- |
143 |
- 16 Apr 2007; Markus Rothe <corsair@g.o> iptraf-3.0.0-r3.ebuild: |
144 |
- Stable on ppc64 |
145 |
- |
146 |
- 06 Apr 2007; Tobias Scherbaum <dertobi123@g.o> |
147 |
- iptraf-3.0.0-r3.ebuild: |
148 |
- ppc stable |
149 |
- |
150 |
- 22 Mar 2007; Gustavo Zacarias <gustavoz@g.o> |
151 |
- iptraf-3.0.0-r3.ebuild: |
152 |
- Stable on sparc |
153 |
- |
154 |
- 20 Mar 2007; Raúl Porcel <armin76@g.o> iptraf-3.0.0-r3.ebuild: |
155 |
- x86 stable |
156 |
- |
157 |
- 15 Nov 2006; Cedric Krier <ced@×××××××××××.org> iptraf-3.0.0-r3.ebuild: |
158 |
- Add flag unicode and fix cross-compile |
159 |
- |
160 |
-*iptraf-3.0.0-r3 (14 Nov 2006) |
161 |
- |
162 |
- 14 Nov 2006; Cedric Krier <ced@×××××××××××.org> |
163 |
- +files/iptraf-3.0.0-ncursesw.patch, +files/iptraf-3.0.0-setlocale.patch, |
164 |
- +iptraf-3.0.0-r3.ebuild: |
165 |
- Fixed UTF-8 display bug 152883 |
166 |
- |
167 |
- 16 Oct 2006; Jose Luis Rivero <yoswink@g.o> iptraf-3.0.0-r2.ebuild: |
168 |
- Stable on alpha wrt bug #146939 |
169 |
- |
170 |
- 11 Oct 2006; Markus Rothe <corsair@g.o> iptraf-3.0.0-r2.ebuild: |
171 |
- Stable on ppc64; bug #146939 |
172 |
- |
173 |
- 10 Oct 2006; Jeroen Roovers <jer@g.o> iptraf-3.0.0-r2.ebuild: |
174 |
- Stable for HPPA (bug #146939). |
175 |
- |
176 |
- 10 Oct 2006; Chris Gianelloni <wolf31o2@g.o> |
177 |
- iptraf-3.0.0-r2.ebuild: |
178 |
- Stable on amd64/x86 wrt bug #146939. |
179 |
- |
180 |
- 10 Oct 2006; Gustavo Zacarias <gustavoz@g.o> |
181 |
- iptraf-3.0.0-r2.ebuild: |
182 |
- Stable on sparc wrt #146939 |
183 |
- |
184 |
- 10 Oct 2006; Markus Ullmann <jokey@g.o> iptraf-3.0.0-r2.ebuild: |
185 |
- stable on arm per bug #146939 |
186 |
- |
187 |
- 10 Oct 2006; Markus Ullmann <jokey@g.o> |
188 |
- files/iptraf-3.0.0-headerfix.patch, |
189 |
- files/iptraf-3.0.0-ipv6-headerfix.patch, -iptraf-2.7.0-r2.ebuild, |
190 |
- -iptraf-3.0.0-r1.ebuild: |
191 |
- Adding linux-headers compile fix wrt bug #144205 thanks to Bo Orsted Andresen |
192 |
- |
193 |
- 16 Sep 2006; Markus Rothe <corsair@g.o> iptraf-3.0.0-r2.ebuild: |
194 |
- Added ~ppc64 |
195 |
- |
196 |
- 08 Jul 2006; Lars Weiler <pylon@g.o> iptraf-3.0.0-r2.ebuild: |
197 |
- Stable on ppc; gcc-4 related; dragonheart is fine with the move. |
198 |
- |
199 |
- 20 May 2006; Thomas Cort <tcort@g.o> iptraf-3.0.0-r2.ebuild: |
200 |
- Re-added ~alpha keyword. |
201 |
- |
202 |
- 27 Apr 2006; Jason Wever <weeve@g.o> iptraf-3.0.0-r2.ebuild: |
203 |
- Re-added ~sparc keyword as it mysteriously went missing. |
204 |
- |
205 |
- 15 Apr 2006; Markus Ullmann <jokey@g.o> |
206 |
- +files/iptraf-3.0.0-headerfix.patch, |
207 |
- +files/iptraf-3.0.0-ipv6-headerfix.patch, iptraf-3.0.0-r2.ebuild: |
208 |
- Adding header patches to fix bug #128965, thanks to plasmaroo |
209 |
- |
210 |
-*iptraf-3.0.0-r2 (21 Mar 2006) |
211 |
-*iptraf-2.7.0-r2 (21 Mar 2006) |
212 |
- |
213 |
- 21 Mar 2006; Markus Ullmann <jokey@g.o> |
214 |
- +files/iptraf-2.7.0-ipv6-glibc24.patch, |
215 |
- +files/iptraf-3.0.0-ipv6-glibc24.patch, +iptraf-2.7.0-r2.ebuild, |
216 |
- +iptraf-3.0.0-r2.ebuild: |
217 |
- Fixed glibc-2.4-dep bug #126479 and added suid-root support bug #125681 |
218 |
- |
219 |
- 05 Mar 2006; Markus Ullmann <jokey@g.o> iptraf-2.7.0-r1.ebuild, |
220 |
- iptraf-3.0.0.ebuild: |
221 |
- INSTALL cleanup |
222 |
- |
223 |
-*iptraf-3.0.0-r1 (29 Jan 2006) |
224 |
- |
225 |
- 29 Jan 2006; Markus Ullmann <jokey@g.o> |
226 |
- +files/iptraf-3.0.0-Makefile.patch, +files/iptraf-3.0.0-bnep.patch, |
227 |
- +iptraf-3.0.0-r1.ebuild: |
228 |
- Adding bnepX support bug #118471, thanks to Jan Spitalnik <jan@×××××××××.net> |
229 |
- Adding optional ipv6 support bug #106775 |
230 |
- |
231 |
-*iptraf-3.0.0 (01 Nov 2005) |
232 |
- |
233 |
- 01 Nov 2005; Mike Frysinger <vapier@g.o> |
234 |
- +files/iptraf-3.0.0-atheros.patch, +files/iptraf-3.0.0-build.patch, |
235 |
- +files/iptraf-3.0.0-linux-headers.patch, +iptraf-3.0.0.ebuild: |
236 |
- Version bump #106775 by tonich/Tudor Alexandru Dragos. |
237 |
- |
238 |
- 16 Sep 2005; Ciaran McCreesh <ciaranm@g.o> ChangeLog: |
239 |
- Converted to UTF-8, fixed encoding screwups |
240 |
- |
241 |
- 18 Jul 2005; Aaron Walker <ka0ttic@g.o> |
242 |
- files/iptraf-2.7.0-2.6.patch, iptraf-2.7.0-r1.ebuild: |
243 |
- Update ipv6 patch revision, which can now be applied unconditionally. This |
244 |
- fixes the USE=ipv6 compile failure that resulted from the bug 89458 fix. |
245 |
- Both patches can now live in harmony. |
246 |
- |
247 |
- 17 Jul 2005; Aaron Walker <ka0ttic@g.o> |
248 |
- +files/iptraf-2.7.0-2.6.patch, iptraf-2.7.0-r1.ebuild: |
249 |
- Add patch from Aurelien Minet in bug 89458 that fixes compile issues when |
250 |
- running a 2.6 kernel. |
251 |
- |
252 |
- 25 Jun 2005; Marcelo Goes <vanquirius@g.o> -iptraf-2.7.0.ebuild, |
253 |
- iptraf-2.7.0-r1.ebuild: |
254 |
- Remove old ebuild, add -j1 to emake. |
255 |
- |
256 |
- 10 Apr 2005; Andrej Kacian <ticho@g.o> iptraf-2.7.0-r1.ebuild: |
257 |
- Stable on amd64. |
258 |
- |
259 |
- 07 Mar 2005; Markus Rothe <corsair@g.o> iptraf-2.7.0-r1.ebuild: |
260 |
- Stable on ppc64 |
261 |
- |
262 |
- 26 Feb 2005; <solar@g.o> +files/iptraf-2.7.0-atheros.patch, |
263 |
- iptraf-2.7.0-r1.ebuild: |
264 |
- - Add atheros interface support |
265 |
- |
266 |
- 25 Jan 2005; Markus Rothe <corsair@g.o> iptraf-2.7.0-r1.ebuild: |
267 |
- Added ~ppc64 to KEYWORDS; bug #79367 |
268 |
- |
269 |
- 23 Jul 2004; Eldad Zack <eldad@g.o> iptraf-2.7.0-r1.ebuild: |
270 |
- Fixed URL location of ipv6 patch. Closes #58021. |
271 |
- |
272 |
- 09 Jul 2004; Eldad Zack <eldad@g.o> iptraf-2.7.0-r1.ebuild, |
273 |
- iptraf-2.7.0.ebuild: |
274 |
- Tidy. Added missing IUSE |
275 |
- |
276 |
- 09 Jun 2004; Aron Griffis <agriffis@g.o> iptraf-2.7.0-r1.ebuild: |
277 |
- Fix use invocation |
278 |
- |
279 |
- 05 Jun 2004; Bryan Østergaard <kloeri@g.o> iptraf-2.7.0-r1.ebuild: |
280 |
- Stable on alpha. |
281 |
- |
282 |
- 28 Dec 2003; Joshua Kinard <kumba@g.o> iptraf-2.7.0-r1.ebuild: |
283 |
- Move to mips stable (~mips -> mips) |
284 |
- |
285 |
- 02 Nov 2003; Christian Birchinger <joker@g.o> iptraf-2.7.0-r1.ebuild: |
286 |
- Added sparc stable keyword |
287 |
- |
288 |
- 05 Oct 2003; Brad House <brad_mssw@g.o> iptraf-2.7.0-r1.ebuild: |
289 |
- add ~amd64 flag |
290 |
- |
291 |
-*iptraf-2.7.0-r1 (03 Aug 2003) |
292 |
- |
293 |
- 27 Oct 2003; Guy Martin <gmsoft@g.o> iptraf-2.7.0-r1.ebuild : |
294 |
- Marked stable on x86 and hppa. |
295 |
- |
296 |
- 04 Aug 2003; Guy Martin <gmsoft@g.o> iptraf-2.7.0-r1.ebuild : |
297 |
- Updated ipv6 patch to alpha11. |
298 |
- |
299 |
- 03 Aug 2003; Guy Martin <gmsoft@g.o> iptraf-2.7.0-r1.ebuild : |
300 |
- Added ipv6 support. Fixed a small bug with path. Marked unstable. |
301 |
- |
302 |
-*iptraf-2.7.0 (30 Aug 2002) |
303 |
- |
304 |
- 01 Aug 2003; Jan Seidel <tuxus@g.o> iptraf-2.7.0.ebuild : |
305 |
- Added mips to keywords. |
306 |
- |
307 |
- 04 Mar 2003; Martin Holzer <mholzer@g.o> iptraf-2.7.0.ebuild : |
308 |
- Changed dodir to keepdir. Closes #16776. |
309 |
- |
310 |
- 18 Feb 2003; Guy Martin <gmsoft@g.o> iptraf-2.7.0.ebuild : |
311 |
- Added hppa to keywords. |
312 |
- |
313 |
- 02 Feb 2003; Daniel Ahlberg <aliz@g.o> iptraf-2.7.0.ebuild : |
314 |
- Closes #14654. |
315 |
- |
316 |
- 06 Dec 2002; Rodney Rees <manson@g.o> : changed sparc ~sparc keywords |
317 |
- |
318 |
- 25 Sep 2002; Mike Frysinger <vapier@g.o> : |
319 |
- Added alpha to KEYWORDS. |
320 |
- |
321 |
- 30 Aug 2002; Sascha Schwabbauer <cybersystem@g.o> iptraf-2.7.0.ebuild: |
322 |
- Added ppc to KEYWORDS. |
323 |
- |
324 |
- 18 Aug 2002; Daniel Ahlberg <aliz@×××××.com> iptraf-2.7.0.ebuild: |
325 |
- Moved bins from /usr/bin to /usr/sbin as suggested in #6517. |
326 |
- |
327 |
- 20 Jun 2002; J.Alberto Suárez L. iptraf-2.7.0.ebuild : |
328 |
- |
329 |
- Version bumped. |
330 |
- |
331 |
-*iptraf-2.4.0-r1 (1 Feb 2002) |
332 |
- |
333 |
- 1 Feb 2002; G.Bevin <gbevin@g.o> ChangeLog : |
334 |
- |
335 |
- Added initial ChangeLog which should be updated whenever the package is |
336 |
- updated in any way. This changelog is targetted to users. This means that the |
337 |
- comments should well explained and written in clean English. The details about |
338 |
- writing correct changelogs are explained in the skel.ChangeLog file which you |
339 |
- can find in the root directory of the portage repository. |
340 |
|
341 |
|
342 |
|
343 |
1.1 net-analyzer/iptraf/iptraf-3.0.0-r6.ebuild |
344 |
|
345 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/iptraf/iptraf-3.0.0-r6.ebuild?rev=1.1&view=markup |
346 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/iptraf/iptraf-3.0.0-r6.ebuild?rev=1.1&content-type=text/plain |
347 |
|
348 |
Index: iptraf-3.0.0-r6.ebuild |
349 |
=================================================================== |
350 |
# Copyright 1999-2010 Gentoo Foundation |
351 |
# Distributed under the terms of the GNU General Public License v2 |
352 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/iptraf/iptraf-3.0.0-r6.ebuild,v 1.1 2010/11/28 09:29:02 jlec Exp $ |
353 |
|
354 |
EAPI="2" |
355 |
|
356 |
inherit eutils flag-o-matic toolchain-funcs |
357 |
|
358 |
DESCRIPTION="IPTraf is an ncurses-based IP LAN monitor" |
359 |
HOMEPAGE="http://iptraf.seul.org/" |
360 |
SRC_URI="ftp://iptraf.seul.org/pub/iptraf/${P}.tar.gz |
361 |
ipv6? ( mirror://gentoo/${P}-ipv6.patch.bz2 )" |
362 |
|
363 |
LICENSE="GPL-2" |
364 |
SLOT="0" |
365 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
366 |
IUSE="ipv6 suid unicode" |
367 |
|
368 |
DEPEND=">=sys-libs/ncurses-5.2-r1[unicode?]" |
369 |
RDEPEND="${DEPEND}" |
370 |
|
371 |
src_prepare() { |
372 |
epatch \ |
373 |
"${FILESDIR}/${P}-Makefile.patch" \ |
374 |
"${FILESDIR}"/${P}-build.patch \ |
375 |
"${FILESDIR}"/${P}-add-devnames.patch \ |
376 |
"${FILESDIR}"/${P}-linux-headers.patch |
377 |
use unicode && epatch "${FILESDIR}/${P}-ncursesw.patch" #152883 |
378 |
epatch \ |
379 |
"${FILESDIR}/${P}-setlocale.patch" \ |
380 |
"${FILESDIR}"/${P}-headerfix.patch \ |
381 |
"${FILESDIR}"/${P}-vlan.patch \ |
382 |
"${FILESDIR}"/${PV}-buffer-overflow.patch |
383 |
|
384 |
sed -i \ |
385 |
-e 's:/var/local/iptraf:/var/lib/iptraf:g' \ |
386 |
-e "s:Documentation/:/usr/share/doc/${PF}:g" \ |
387 |
Documentation/*.* || die "sed doc paths" |
388 |
|
389 |
if use ipv6 ; then |
390 |
epatch "${DISTDIR}"/${P}-ipv6.patch.bz2 |
391 |
|
392 |
# bug #126479 and bug #252874 |
393 |
epatch "${FILESDIR}"/${P}-ipv6-glibc24-updated.patch |
394 |
epatch "${FILESDIR}"/${P}-ipv6-headerfix.patch #128965 |
395 |
fi |
396 |
} |
397 |
|
398 |
src_compile() { |
399 |
if use suid ; then |
400 |
append-flags -DALLOWUSERS |
401 |
fi |
402 |
emake -C src CFLAGS="$CFLAGS" CC="$(tc-getCC)" || die "emake failed" |
403 |
} |
404 |
|
405 |
src_install() { |
406 |
dosbin src/{iptraf,rawtime,rvnamed} || die |
407 |
dodoc FAQ README* CHANGES RELEASE-NOTES || die |
408 |
doman Documentation/*.8 || die |
409 |
dohtml -r Documentation/* || die |
410 |
keepdir /var/{lib,run,log}/iptraf || die |
411 |
} |
412 |
|
413 |
pkg_postinst() { |
414 |
if use suid ; then |
415 |
elog |
416 |
elog "You've chosen to build iptraf with run-as-user support" |
417 |
elog |
418 |
elog "The app now has this support, but for security reasons" |
419 |
elog "you need to run the following command to allow your users" |
420 |
elog "to suid-run it:" |
421 |
elog |
422 |
elog " # chmod 4755 /usr/sbin/iptraf" |
423 |
elog |
424 |
fi |
425 |
} |