1 |
mattm 12/07/02 05:43:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: zabbix-2.0.1.ebuild |
5 |
Removed: zabbix-1.8.13-r1.ebuild zabbix-2.0.1_rc2.ebuild |
6 |
zabbix-2.0.0-r1.ebuild |
7 |
Log: |
8 |
Bump for Zabbix 2.0.1, Zabbix 2.0.x releases are no longer package masked, moved to ~amd64 and ~x86. 1.8.14 slated to become future stable - removed obsolete 1.8.x ebuilds from testing. |
9 |
|
10 |
(Portage version: 2.1.10.65/cvs/Linux x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.103 net-analyzer/zabbix/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/zabbix/ChangeLog?rev=1.103&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/zabbix/ChangeLog?rev=1.103&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/zabbix/ChangeLog?r1=1.102&r2=1.103 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v |
22 |
retrieving revision 1.102 |
23 |
retrieving revision 1.103 |
24 |
diff -u -r1.102 -r1.103 |
25 |
--- ChangeLog 29 Jun 2012 14:24:47 -0000 1.102 |
26 |
+++ ChangeLog 2 Jul 2012 05:43:41 -0000 1.103 |
27 |
@@ -1,6 +1,13 @@ |
28 |
# ChangeLog for net-analyzer/zabbix |
29 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v 1.102 2012/06/29 14:24:47 mattm Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v 1.103 2012/07/02 05:43:41 mattm Exp $ |
32 |
+ |
33 |
+*zabbix-2.0.1 (02 Jul 2012) |
34 |
+ |
35 |
+ 02 Jul 2012; Matthew Marlowe <mattm@g.o> -zabbix-1.8.13-r1.ebuild, |
36 |
+ -zabbix-2.0.0-r1.ebuild, -zabbix-2.0.1_rc2.ebuild, +zabbix-2.0.1.ebuild: |
37 |
+ Bump for Zabbix 2.0.1 - Zabbix 2.0 releases are no longer package masked, |
38 |
+ moved to ~amd64 and ~x86. |
39 |
|
40 |
*zabbix-1.8.14 (29 Jun 2012) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 net-analyzer/zabbix/zabbix-2.0.1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/zabbix/zabbix-2.0.1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/zabbix/zabbix-2.0.1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: zabbix-2.0.1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2012 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-2.0.1.ebuild,v 1.1 2012/07/02 05:43:41 mattm Exp $ |
55 |
|
56 |
EAPI="2" |
57 |
|
58 |
# needed to make webapp-config dep optional |
59 |
WEBAPP_OPTIONAL="yes" |
60 |
inherit flag-o-matic webapp depend.php autotools java-pkg-opt-2 user |
61 |
|
62 |
DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers." |
63 |
HOMEPAGE="http://www.zabbix.com/" |
64 |
MY_P=${P/_/} |
65 |
SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz" |
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
WEBAPP_MANUAL_SLOT="yes" |
69 |
KEYWORDS="~amd64 ~x86" |
70 |
IUSE="agent java curl frontend ipv6 jabber ldap mysql openipmi oracle postgres proxy server ssh snmp sqlite iodbc odbc static" |
71 |
|
72 |
COMMON_DEPEND="snmp? ( net-analyzer/net-snmp ) |
73 |
ldap? ( |
74 |
net-nds/openldap |
75 |
=dev-libs/cyrus-sasl-2* |
76 |
net-libs/gnutls |
77 |
) |
78 |
mysql? ( >=virtual/mysql-5.0 ) |
79 |
sqlite? ( >=dev-db/sqlite-3.3.5 ) |
80 |
postgres? ( >=dev-db/postgresql-base-8.3.0 ) |
81 |
oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 ) |
82 |
jabber? ( dev-libs/iksemel ) |
83 |
curl? ( net-misc/curl ) |
84 |
openipmi? ( sys-libs/openipmi ) |
85 |
ssh? ( net-libs/libssh2 ) |
86 |
java? ( >=virtual/jdk-1.4 ) |
87 |
odbc? ( |
88 |
iodbc? ( dev-db/libiodbc ) |
89 |
!iodbc? ( dev-db/unixODBC ) |
90 |
)" |
91 |
|
92 |
RDEPEND="${COMMON_DEPEND} |
93 |
proxy? ( <=net-analyzer/fping-2.9 ) |
94 |
server? ( <=net-analyzer/fping-2.9 |
95 |
app-admin/webapp-config ) |
96 |
java? ( |
97 |
>=virtual/jre-1.4 |
98 |
dev-java/slf4j-api |
99 |
dev-java/json-simple |
100 |
) |
101 |
frontend? ( |
102 |
dev-lang/php[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls] |
103 |
media-libs/gd[png] |
104 |
app-admin/webapp-config )" |
105 |
DEPEND="${COMMON_DEPEND} |
106 |
virtual/pkgconfig" |
107 |
|
108 |
use frontend && need_php_httpd |
109 |
|
110 |
S=${WORKDIR}/${MY_P} |
111 |
|
112 |
ZABBIXJAVA_BASE="opt/zabbix_java" |
113 |
|
114 |
java_prepare() { |
115 |
cd "${S}/src/zabbix_java/lib" |
116 |
rm -v *.jar || die |
117 |
|
118 |
java-pkg_jar-from slf4j-api |
119 |
java-pkg_jar-from json-simple |
120 |
} |
121 |
|
122 |
src_prepare() { |
123 |
eautoreconf |
124 |
} |
125 |
|
126 |
pkg_setup() { |
127 |
if use server || use proxy ; then |
128 |
local dbnum dbtypes="mysql oracle postgres sqlite" dbtype |
129 |
declare -i dbnum=0 |
130 |
for dbtype in ${dbtypes}; do |
131 |
use ${dbtype} && let dbnum++ |
132 |
done |
133 |
if [ ${dbnum} -gt 1 ]; then |
134 |
eerror |
135 |
eerror "You can't use more than one database type in Zabbix." |
136 |
eerror "Select exactly one database type out of these: ${dbtypes}" |
137 |
eerror |
138 |
die "Multiple database types selected." |
139 |
elif [ ${dbnum} -lt 1 ]; then |
140 |
eerror |
141 |
eerror "Select exactly one database type out of these: ${dbtypes}" |
142 |
eerror |
143 |
die "No database type selected." |
144 |
fi |
145 |
if use oracle; then |
146 |
if [ -z "${ORACLE_HOME}" ]; then |
147 |
eerror |
148 |
eerror "The environment variable ORACLE_HOME must be set" |
149 |
eerror "and point to the correct location." |
150 |
eerror "It looks like you don't have Oracle installed." |
151 |
eerror |
152 |
die "Environment variable ORACLE_HOME is not set" |
153 |
fi |
154 |
if has_version 'dev-db/oracle-instantclient-basic'; then |
155 |
ewarn |
156 |
ewarn "Please ensure you have a full install of the Oracle client." |
157 |
ewarn "dev-db/oracle-instantclient* is NOT sufficient." |
158 |
ewarn |
159 |
fi |
160 |
fi |
161 |
fi |
162 |
|
163 |
if use frontend; then |
164 |
webapp_pkg_setup |
165 |
fi |
166 |
|
167 |
enewgroup zabbix |
168 |
enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix |
169 |
} |
170 |
|
171 |
pkg_postinst() { |
172 |
if use server || use proxy ; then |
173 |
elog |
174 |
elog "You may need to configure your database for Zabbix," |
175 |
elog "if you have not already done so. Most minor version" |
176 |
elog "zabbix updates do not require db changes. However, " |
177 |
elog "you should read the release notes to be sure." |
178 |
elog |
179 |
elog "Have a look at /usr/share/zabbix for" |
180 |
elog "database creation and upgrades." |
181 |
elog |
182 |
elog "Execute schema, images, and data sql files in that order." |
183 |
elog |
184 |
elog "For more info read the Zabbix manual at" |
185 |
elog "http://www.zabbix.com/documentation.php" |
186 |
elog |
187 |
elog "New use flags: java, odbc, iodbc" |
188 |
elog |
189 |
|
190 |
zabbix_homedir=$(egethome zabbix) |
191 |
if [ -n "${zabbix_homedir}" ] && \ |
192 |
[ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then |
193 |
ewarn |
194 |
ewarn "The user 'zabbix' should have his homedir changed" |
195 |
ewarn "to /var/lib/zabbix/home if you want to use" |
196 |
ewarn "custom alert scripts." |
197 |
ewarn |
198 |
ewarn "A real homedir might be needed for configfiles" |
199 |
ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when" |
200 |
ewarn "using sendxmpp for Jabber alerts)." |
201 |
ewarn |
202 |
ewarn "To change the homedir use:" |
203 |
ewarn " usermod -d /var/lib/zabbix/home zabbix" |
204 |
ewarn |
205 |
fi |
206 |
fi |
207 |
|
208 |
if use server; then |
209 |
elog |
210 |
elog "For distributed monitoring you have to run:" |
211 |
elog |
212 |
elog "zabbix_server -n <nodeid>" |
213 |
elog |
214 |
elog "This will convert database data for use with Node ID" |
215 |
elog "and also adds a local node." |
216 |
elog |
217 |
fi |
218 |
|
219 |
elog "--" |
220 |
elog |
221 |
elog "You may need to add these lines to /etc/services:" |
222 |
elog |
223 |
elog "zabbix-agent 10050/tcp Zabbix Agent" |
224 |
elog "zabbix-agent 10050/udp Zabbix Agent" |
225 |
elog "zabbix-trapper 10051/tcp Zabbix Trapper" |
226 |
elog "zabbix-trapper 10051/udp Zabbix Trapper" |
227 |
elog |
228 |
|
229 |
elog "Zabbix is incompatible with fping 3.0 - (Zabbix bug #ZBX-4894)." |
230 |
elog |
231 |
elog "Feel free to download or contribute gentoo specific zabbix templates" |
232 |
elog "via https://github.com/deploylinux/gentooZabbixTemplates (WIP). We may" |
233 |
elog "eventually create a seperate package in portage for them." |
234 |
|
235 |
# repeat fowners/fperms functionality from src_install() |
236 |
# here to catch wrong permissions on existing files in |
237 |
# the live filesystem (yeah, that sucks). |
238 |
chown -R zabbix:zabbix \ |
239 |
"${ROOT}"/etc/zabbix \ |
240 |
"${ROOT}"/var/lib/zabbix \ |
241 |
"${ROOT}"/var/lib/zabbix/home \ |
242 |
"${ROOT}"/var/lib/zabbix/scripts \ |
243 |
"${ROOT}"/var/log/zabbix \ |
244 |
"${ROOT}"/var/run/zabbix |
245 |
chmod 0750 \ |
246 |
"${ROOT}"/etc/zabbix \ |
247 |
"${ROOT}"/var/lib/zabbix \ |
248 |
"${ROOT}"/var/lib/zabbix/home \ |
249 |
"${ROOT}"/var/lib/zabbix/scripts \ |
250 |
"${ROOT}"/var/log/zabbix \ |
251 |
"${ROOT}"/var/run/zabbix |
252 |
|
253 |
chmod 0640 \ |
254 |
"${ROOT}"/etc/zabbix/zabbix_* |
255 |
|
256 |
if use server || use proxy ; then |
257 |
# check for fping |
258 |
fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null) |
259 |
case "${fping_perms}" in |
260 |
4[157][157][157]) |
261 |
;; |
262 |
*) |
263 |
ewarn |
264 |
ewarn "If you want to use the checks 'icmpping' and 'icmppingsec'," |
265 |
ewarn "you have to make /usr/sbin/fping setuid root and executable" |
266 |
ewarn "by everyone. Run the following command to fix it:" |
267 |
ewarn |
268 |
ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping" |
269 |
ewarn |
270 |
ewarn "Please be aware that this might impose a security risk," |
271 |
ewarn "depending on the code quality of fping." |
272 |
ewarn |
273 |
ebeep 3 |
274 |
epause 5 |
275 |
;; |
276 |
esac |
277 |
fi |
278 |
} |
279 |
|
280 |
src_configure() { |
281 |
|
282 |
local myconf |
283 |
|
284 |
if use odbc && use iodbc ; then |
285 |
myconf="${myconf} --with-iodbc --without-unixodbc" |
286 |
elif use odbc && ! use iodbc; then |
287 |
myconf="${myconf} --with-unixodbc --without-iodbc" |
288 |
else |
289 |
myconf="${myconf} --without-unixodbc --without-iodbc" |
290 |
fi |
291 |
|
292 |
econf \ |
293 |
$myconf \ |
294 |
$(use_enable server) \ |
295 |
$(use_enable proxy) \ |
296 |
$(use_enable agent) \ |
297 |
$(use_enable ipv6) \ |
298 |
$(use_enable static) \ |
299 |
$(use_enable java) \ |
300 |
$(use_with ldap) \ |
301 |
$(use_with snmp net-snmp) \ |
302 |
$(use_with mysql) \ |
303 |
$(use_with postgres postgresql) \ |
304 |
$(use_with oracle) \ |
305 |
$(use_with sqlite sqlite3) \ |
306 |
$(use_with jabber) \ |
307 |
$(use_with curl libcurl) \ |
308 |
$(use_with openipmi openipmi) \ |
309 |
$(use_with ssh ssh2) \ |
310 |
|| die "econf failed" |
311 |
} |
312 |
|
313 |
src_install() { |
314 |
dodir \ |
315 |
/etc/zabbix \ |
316 |
/var/lib/zabbix \ |
317 |
/var/lib/zabbix/home \ |
318 |
/var/lib/zabbix/scripts \ |
319 |
/var/log/zabbix \ |
320 |
/var/run/zabbix |
321 |
|
322 |
keepdir \ |
323 |
/etc/zabbix \ |
324 |
/var/lib/zabbix \ |
325 |
/var/lib/zabbix/home \ |
326 |
/var/lib/zabbix/scripts \ |
327 |
/var/log/zabbix \ |
328 |
/var/run/zabbix |
329 |
|
330 |
if use server; then |
331 |
insinto /etc/zabbix |
332 |
doins \ |
333 |
"${FILESDIR}/1.6.6"/zabbix_server.conf \ |
334 |
"${FILESDIR}/1.6.6"/zabbix_trapper.conf |
335 |
doinitd \ |
336 |
"${FILESDIR}/2.0"/init.d/zabbix-server |
337 |
dosbin \ |
338 |
src/zabbix_server/zabbix_server |
339 |
dodir \ |
340 |
/usr/share/zabbix |
341 |
insinto /usr/share/zabbix |
342 |
doins -r \ |
343 |
database \ |
344 |
upgrades |
345 |
fowners zabbix:zabbix \ |
346 |
/etc/zabbix/zabbix_server.conf \ |
347 |
/etc/zabbix/zabbix_trapper.conf |
348 |
fperms 0640 \ |
349 |
/etc/zabbix/zabbix_server.conf \ |
350 |
/etc/zabbix/zabbix_trapper.conf |
351 |
fi |
352 |
|
353 |
if use proxy; then |
354 |
doinitd \ |
355 |
"${FILESDIR}/1.6.6"/init.d/zabbix-proxy |
356 |
dosbin \ |
357 |
src/zabbix_proxy/zabbix_proxy |
358 |
insinto /etc/zabbix |
359 |
doins \ |
360 |
"${FILESDIR}/1.6.6"/zabbix_proxy.conf |
361 |
dodir \ |
362 |
/usr/share/zabbix |
363 |
insinto /usr/share/zabbix |
364 |
doins -r \ |
365 |
database \ |
366 |
create |
367 |
fi |
368 |
|
369 |
if use agent; then |
370 |
insinto /etc/zabbix |
371 |
doins \ |
372 |
"${FILESDIR}/1.6.6"/zabbix_agent.conf \ |
373 |
"${FILESDIR}/1.6.6"/zabbix_agentd.conf |
374 |
doinitd \ |
375 |
"${FILESDIR}/2.0"/init.d/zabbix-agentd |
376 |
dosbin \ |
377 |
src/zabbix_agent/zabbix_agent \ |
378 |
src/zabbix_agent/zabbix_agentd |
379 |
dobin \ |
380 |
src/zabbix_sender/zabbix_sender \ |
381 |
src/zabbix_get/zabbix_get |
382 |
fowners zabbix:zabbix \ |
383 |
/etc/zabbix/zabbix_agent.conf \ |
384 |
/etc/zabbix/zabbix_agentd.conf |
385 |
fperms 0640 \ |
386 |
/etc/zabbix/zabbix_agent.conf \ |
387 |
/etc/zabbix/zabbix_agentd.conf |
388 |
fi |
389 |
|
390 |
fowners zabbix:zabbix \ |
391 |
/etc/zabbix \ |
392 |
/var/lib/zabbix \ |
393 |
/var/lib/zabbix/home \ |
394 |
/var/lib/zabbix/scripts \ |
395 |
/var/log/zabbix \ |
396 |
/var/run/zabbix |
397 |
fperms 0750 \ |
398 |
/etc/zabbix \ |
399 |
/var/lib/zabbix \ |
400 |
/var/lib/zabbix/home \ |
401 |
/var/lib/zabbix/scripts \ |
402 |
/var/log/zabbix \ |
403 |
/var/run/zabbix |
404 |
|
405 |
dodoc README INSTALL NEWS ChangeLog \ |
406 |
conf/zabbix_agent.conf \ |
407 |
conf/zabbix_agentd.conf \ |
408 |
conf/zabbix_proxy.conf \ |
409 |
conf/zabbix_agentd/userparameter_examples.conf \ |
410 |
conf/zabbix_agentd/userparameter_mysql.conf \ |
411 |
conf/zabbix_server.conf |
412 |
|
413 |
if use frontend; then |
414 |
webapp_src_preinst |
415 |
cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}" |
416 |
webapp_postinst_txt en "${FILESDIR}/"1.6.6/postinstall-en.txt |
417 |
webapp_configfile \ |
418 |
"${MY_HTDOCSDIR}"/include/db.inc.php \ |
419 |
"${MY_HTDOCSDIR}"/include/config.inc.php |
420 |
webapp_src_install |
421 |
fi |
422 |
|
423 |
if use java; then |
424 |
dodir \ |
425 |
/${ZABBIXJAVA_BASE} \ |
426 |
/${ZABBIXJAVA_BASE}/bin \ |
427 |
/${ZABBIXJAVA_BASE}/lib |
428 |
keepdir /${ZABBIXJAVA_BASE} |
429 |
exeinto /${ZABBIXJAVA_BASE}/bin |
430 |
doexe src/zabbix_java/bin/zabbix-java-gateway-2.0.0rc3.jar |
431 |
exeinto /${ZABBIXJAVA_BASE}/lib |
432 |
doexe \ |
433 |
src/zabbix_java/lib/logback-classic-0.9.27.jar \ |
434 |
src/zabbix_java/lib/logback-console.xml \ |
435 |
src/zabbix_java/lib/logback-core-0.9.27.jar \ |
436 |
src/zabbix_java/lib/logback.xml \ |
437 |
src/zabbix_java/lib/org-json-2010-12-28.jar \ |
438 |
src/zabbix_java/lib/slf4j-api-1.6.1.jar |
439 |
exeinto /${ZABBIXJAVA_BASE}/ |
440 |
src/zabbix_java/settings.sh \ |
441 |
src/zabbix_java/startup.sh \ |
442 |
src/zabbix_java/shutdown.sh |
443 |
fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE} |
444 |
fi |
445 |
|
446 |
} |