1 |
mrness 09/04/25 09:30:09 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ntop-3.3.9-r2.ebuild |
5 |
Removed: ntop-3.3.9-r1.ebuild |
6 |
Log: |
7 |
Fix insecure log file creation (#266947). |
8 |
(Portage version: 2.1.6.7/cvs/Linux x86_64, RepoMan options: --force) |
9 |
|
10 |
Revision Changes Path |
11 |
1.75 net-analyzer/ntop/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ntop/ChangeLog?rev=1.75&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ntop/ChangeLog?rev=1.75&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ntop/ChangeLog?r1=1.74&r2=1.75 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/ntop/ChangeLog,v |
20 |
retrieving revision 1.74 |
21 |
retrieving revision 1.75 |
22 |
diff -u -r1.74 -r1.75 |
23 |
--- ChangeLog 22 Apr 2009 21:13:45 -0000 1.74 |
24 |
+++ ChangeLog 25 Apr 2009 09:30:09 -0000 1.75 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-analyzer/ntop |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ntop/ChangeLog,v 1.74 2009/04/22 21:13:45 maekke Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ntop/ChangeLog,v 1.75 2009/04/25 09:30:09 mrness Exp $ |
30 |
+ |
31 |
+*ntop-3.3.9-r2 (25 Apr 2009) |
32 |
+ |
33 |
+ 25 Apr 2009; Alin Năstac <mrness@g.o> |
34 |
+ +files/ntop-3.3.9-accesslog-umask.patch, -ntop-3.3.9-r1.ebuild, |
35 |
+ +ntop-3.3.9-r2.ebuild: |
36 |
+ Fix insecure log file creation (#266947). |
37 |
|
38 |
22 Apr 2009; Markus Meier <maekke@g.o> ntop-3.3.9-r1: |
39 |
x86 stable, bug #265704 |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-analyzer/ntop/ntop-3.3.9-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ntop/ntop-3.3.9-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ntop/ntop-3.3.9-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: ntop-3.3.9-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ntop/ntop-3.3.9-r2.ebuild,v 1.1 2009/04/25 09:30:09 mrness Exp $ |
53 |
|
54 |
EAPI="2" |
55 |
|
56 |
inherit eutils autotools |
57 |
|
58 |
DESCRIPTION="tool that shows network usage like top" |
59 |
HOMEPAGE="http://www.ntop.org/ntop.html" |
60 |
SRC_URI="mirror://sourceforge/ntop/${P}.tar.gz" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="amd64 ~arm ~hppa ~ia64 ppc ppc64 ~s390 ~sh ~sparc x86" |
65 |
IUSE="ipv6 nls ssl tcpd" |
66 |
#snmp support is disabled |
67 |
|
68 |
#snmp? ( net-analyzer/net-snmp ) |
69 |
COMMON_DEPEND="sys-apps/gawk |
70 |
dev-lang/perl |
71 |
sys-libs/gdbm |
72 |
net-libs/libpcap |
73 |
media-libs/gd |
74 |
media-libs/libpng |
75 |
net-analyzer/rrdtool |
76 |
ssl? ( dev-libs/openssl ) |
77 |
tcpd? ( sys-apps/tcp-wrappers ) |
78 |
sys-libs/zlib |
79 |
>=dev-libs/geoip-1.4.5" |
80 |
DEPEND="${COMMON_DEPEND} |
81 |
>=sys-devel/libtool-1.4" |
82 |
|
83 |
# Needed by xmldumpPlugin - couldn't get it to work |
84 |
# dev-libs/gdome2 |
85 |
# >=dev-libs/glib-2" |
86 |
RDEPEND="${COMMON_DEPEND} |
87 |
media-fonts/corefonts |
88 |
media-gfx/graphviz |
89 |
net-misc/wget |
90 |
app-arch/gzip" |
91 |
|
92 |
pkg_setup() { |
93 |
# snmp doesn't compile in this release, disabled for now |
94 |
#if use snmp ; then |
95 |
# ewarn "snmp plugin is under development and upstream does not recommend" |
96 |
# ewarn "it for usage in production environment." |
97 |
# if ! use ipv6 ; then |
98 |
# echo |
99 |
# eerror "snmp plugin has compilation problems without ipv6 support." |
100 |
# eerror "For additional information see bug #121497." |
101 |
# die "snmp without ipv6 is broken" |
102 |
# else |
103 |
# if ! built_with_use net-analyzer/net-snmp ipv6 ; then |
104 |
# echo |
105 |
# eerror "You have both ipv6 and snmp enabled." |
106 |
# eerror "This require ipv6 support in net-analyzer/net-snmp." |
107 |
# eerror "However, net-analyzer/net-snmp was compiled with ipv6 flag disabled." |
108 |
# eerror "Please, re-emerge net-analyzer/net-snmp with USE=\"ipv6\"." |
109 |
# die "net-analyzer/net-snmp was build without ipv6." |
110 |
# fi |
111 |
# fi |
112 |
#fi |
113 |
|
114 |
enewgroup ntop |
115 |
enewuser ntop -1 -1 /var/lib/ntop ntop |
116 |
} |
117 |
|
118 |
src_prepare() { |
119 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
120 |
epatch "${FILESDIR}"/${P}-external-geoip.patch |
121 |
epatch "${FILESDIR}"/${P}-accesslog-umask.patch |
122 |
cat acinclude.m4.in acinclude.m4.ntop > acinclude.m4 |
123 |
eautoreconf |
124 |
} |
125 |
|
126 |
src_configure() { |
127 |
# force disable xmldumpPlugin |
128 |
export \ |
129 |
ac_cv_header_glib_h=no \ |
130 |
ac_cv_header_glibconfig_h=no \ |
131 |
ac_cv_header_gdome_h=no \ |
132 |
ac_cv_lib_glib_g_date_julian=no \ |
133 |
ac_cv_lib_xml2_xmlCheckVersion=no \ |
134 |
ac_cv_lib_gdome_gdome_di_saveDocToFile=no |
135 |
|
136 |
econf \ |
137 |
$(use_enable ipv6) \ |
138 |
$(use_enable nls i18n) \ |
139 |
$(use_with ssl) $(use_enable ssl sslwatchdog) \ |
140 |
$(use_with tcpd tcpwrapper) \ |
141 |
--with-rrd-home=/usr/lib \ |
142 |
--disable-snmp \ |
143 |
|| die "configure problem" |
144 |
# $(use_enable snmp) |
145 |
} |
146 |
|
147 |
src_install() { |
148 |
LC_ALL=C # apparently doesn't work with some locales (#191576 and #205382) |
149 |
emake DESTDIR="${D}" install || die "install problem" |
150 |
|
151 |
keepdir /var/lib/ntop && |
152 |
fowners ntop:ntop /var/lib/ntop && |
153 |
fperms 750 /var/lib/ntop || |
154 |
die "failed to prepare /var/lib/ntop dir" |
155 |
|
156 |
dodoc AUTHORS CONTENTS ChangeLog MANIFESTO NEWS |
157 |
dodoc PORTING README SUPPORT_NTOP.txt THANKS $(find docs -type f) |
158 |
|
159 |
newinitd "${FILESDIR}"/ntop-initd ntop |
160 |
newconfd "${FILESDIR}"/ntop-confd ntop |
161 |
|
162 |
exeinto /etc/cron.monthly |
163 |
doexe "${FILESDIR}"/ntop-update-geoip-db |
164 |
} |
165 |
|
166 |
pkg_postinst() { |
167 |
elog "If this is the first time you install ntop, you need to run" |
168 |
elog "following commands before starting ntop service:" |
169 |
elog " ntop --set-admin-password" |
170 |
elog " /etc/cron.monthly/ntop-update-geoip-db" |
171 |
} |