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