1 |
pva 08/10/24 15:23:57 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: iptraf-3.0.0-r5.ebuild |
5 |
Removed: iptraf-3.0.0-r3.ebuild |
6 |
Log: |
7 |
Fixes ability to listen on vlan interfaces, bug #231745, thank Tomas Vasek for report and Ross Dougherty for actual tests. Removed old. |
8 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.26-openvz.git-777e816 i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.68 net-analyzer/iptraf/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/iptraf/ChangeLog?rev=1.68&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/iptraf/ChangeLog?rev=1.68&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/iptraf/ChangeLog?r1=1.67&r2=1.68 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/iptraf/ChangeLog,v |
20 |
retrieving revision 1.67 |
21 |
retrieving revision 1.68 |
22 |
diff -u -r1.67 -r1.68 |
23 |
--- ChangeLog 6 Nov 2007 17:26:07 -0000 1.67 |
24 |
+++ ChangeLog 24 Oct 2008 15:23:57 -0000 1.68 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-analyzer/iptraf |
27 |
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/iptraf/ChangeLog,v 1.67 2007/11/06 17:26:07 corsair Exp $ |
29 |
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/iptraf/ChangeLog,v 1.68 2008/10/24 15:23:57 pva Exp $ |
31 |
+ |
32 |
+*iptraf-3.0.0-r5 (24 Oct 2008) |
33 |
+ |
34 |
+ 24 Oct 2008; Peter Volkov <pva@g.o> +files/iptraf-3.0.0-vlan.patch, |
35 |
+ -iptraf-3.0.0-r3.ebuild, +iptraf-3.0.0-r5.ebuild: |
36 |
+ Fixes ability to listen on vlan interfaces, bug #231745, thank Tomas Vasek |
37 |
+ for report and Ross Dougherty for actual tests. Removed old. |
38 |
|
39 |
06 Nov 2007; Markus Rothe <corsair@g.o> iptraf-3.0.0-r4.ebuild: |
40 |
Stable on ppc64; bug #197609 |
41 |
|
42 |
|
43 |
|
44 |
1.1 net-analyzer/iptraf/iptraf-3.0.0-r5.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/iptraf/iptraf-3.0.0-r5.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/iptraf/iptraf-3.0.0-r5.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: iptraf-3.0.0-r5.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2008 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/iptraf/iptraf-3.0.0-r5.ebuild,v 1.1 2008/10/24 15:23:57 pva Exp $ |
54 |
|
55 |
inherit eutils flag-o-matic toolchain-funcs |
56 |
|
57 |
DESCRIPTION="IPTraf is an ncurses-based IP LAN monitor" |
58 |
HOMEPAGE="http://iptraf.seul.org/" |
59 |
SRC_URI="ftp://iptraf.seul.org/pub/iptraf/${P}.tar.gz |
60 |
mirror://gentoo/${P}-ipv6.patch.bz2" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" |
65 |
IUSE="ipv6 suid unicode" |
66 |
|
67 |
DEPEND=">=sys-libs/ncurses-5.2-r1" |
68 |
|
69 |
pkg_setup() { |
70 |
if use unicode && ! built_with_use sys-libs/ncurses unicode; then |
71 |
eerror "sys-libs/ncurses must be build with unicode" |
72 |
die "${PN} requires sys-libs/ncurses with USE=unicode" |
73 |
fi |
74 |
} |
75 |
|
76 |
src_unpack() { |
77 |
unpack ${P}.tar.gz |
78 |
cd "${S}" |
79 |
|
80 |
epatch "${FILESDIR}/${P}-Makefile.patch" |
81 |
epatch "${FILESDIR}"/${P}-build.patch |
82 |
epatch "${FILESDIR}"/${P}-add-devnames.patch |
83 |
epatch "${FILESDIR}"/${P}-linux-headers.patch |
84 |
use unicode && epatch "${FILESDIR}/${P}-ncursesw.patch" #152883 |
85 |
epatch "${FILESDIR}/${P}-setlocale.patch" |
86 |
epatch "${FILESDIR}"/${P}-headerfix.patch #128965 |
87 |
epatch "${FILESDIR}"/${P}-vlan.patch |
88 |
|
89 |
sed -i \ |
90 |
-e 's:/var/local/iptraf:/var/lib/iptraf:g' \ |
91 |
-e "s:Documentation/:/usr/share/doc/${PF}:g" \ |
92 |
Documentation/*.* || die "sed doc paths" |
93 |
|
94 |
if use ipv6 ; then |
95 |
epatch "${DISTDIR}"/${P}-ipv6.patch.bz2 |
96 |
|
97 |
# bug 126479 |
98 |
if has_version '>=sys-libs/glibc-2.4' ; then |
99 |
epatch "${FILESDIR}"/${P}-ipv6-glibc24.patch |
100 |
fi |
101 |
|
102 |
# bug 128965 |
103 |
epatch "${FILESDIR}"/${P}-ipv6-headerfix.patch |
104 |
fi |
105 |
} |
106 |
|
107 |
src_compile() { |
108 |
if use suid ; then |
109 |
append-flags -DALLOWUSERS |
110 |
fi |
111 |
emake -C src CFLAGS="$CFLAGS" CC="$(tc-getCC)" || die "emake failed" |
112 |
} |
113 |
|
114 |
src_install() { |
115 |
dosbin src/{iptraf,rawtime,rvnamed} || die |
116 |
dodoc FAQ README* CHANGES RELEASE-NOTES |
117 |
doman Documentation/*.8 |
118 |
dohtml -r Documentation/* |
119 |
keepdir /var/{lib,run,log}/iptraf |
120 |
} |
121 |
|
122 |
pkg_postinst() { |
123 |
if use suid ; then |
124 |
elog |
125 |
elog "You've chosen to build iptraf with run-as-user support" |
126 |
elog |
127 |
elog "The app now has this support, but for security reasons" |
128 |
elog "you need to run the following command to allow your users" |
129 |
elog "to suid-run it:" |
130 |
elog |
131 |
elog " # chmod 4755 /usr/sbin/iptraf" |
132 |
elog |
133 |
fi |
134 |
} |