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