1 |
patrick 09/09/01 13:38:46 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: zabbix-1.6.5.ebuild |
5 |
Log: |
6 |
Bump to 1.6.5. Fixes #238151. Patches by Calogero Lo Leggio. |
7 |
(Portage version: 2.2_rc40/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 net-analyzer/zabbix/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/zabbix/metadata.xml?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/zabbix/metadata.xml?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/zabbix/metadata.xml?r1=1.2&r2=1.3 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/metadata.xml,v |
19 |
retrieving revision 1.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- metadata.xml 4 Aug 2008 20:23:44 -0000 1.2 |
23 |
+++ metadata.xml 1 Sep 2009 13:38:46 -0000 1.3 |
24 |
@@ -16,6 +16,8 @@ |
25 |
<use> |
26 |
<flag name='agent'>Enable zabbix agent (for to-be-monitored machines)</flag> |
27 |
<flag name='frontend'>Enable zabbix web frontend</flag> |
28 |
+ <flag name='proxy'>Enable proxy support</flag> |
29 |
+ <flag name='openipmi'>Enable openipmi things</flag> |
30 |
<flag name='server'>Enable zabbix server</flag> |
31 |
</use> |
32 |
</pkgmetadata> |
33 |
|
34 |
|
35 |
|
36 |
1.11 net-analyzer/zabbix/ChangeLog |
37 |
|
38 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/zabbix/ChangeLog?rev=1.11&view=markup |
39 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/zabbix/ChangeLog?rev=1.11&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/zabbix/ChangeLog?r1=1.10&r2=1.11 |
41 |
|
42 |
Index: ChangeLog |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v |
45 |
retrieving revision 1.10 |
46 |
retrieving revision 1.11 |
47 |
diff -u -r1.10 -r1.11 |
48 |
--- ChangeLog 4 Aug 2008 20:23:44 -0000 1.10 |
49 |
+++ ChangeLog 1 Sep 2009 13:38:46 -0000 1.11 |
50 |
@@ -1,6 +1,16 @@ |
51 |
# ChangeLog for net-analyzer/zabbix |
52 |
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
53 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v 1.10 2008/08/04 20:23:44 jer Exp $ |
54 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
55 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v 1.11 2009/09/01 13:38:46 patrick Exp $ |
56 |
+ |
57 |
+*zabbix-1.6.5 (01 Sep 2009) |
58 |
+ |
59 |
+ 01 Sep 2009; Patrick Lauer <patrick@g.o> |
60 |
+ +files/1.6.5/init.d/zabbix-agentd, +files/1.6.5/init.d/zabbix-server, |
61 |
+ +files/1.6.5/postinstall-en.txt, +files/1.6.5/zabbix_agent.conf, |
62 |
+ +files/1.6.5/zabbix_agentd.conf, +files/1.6.5/zabbix_proxy.conf, |
63 |
+ +files/1.6.5/zabbix_server.conf, +files/1.6.5/zabbix_trapper.conf, |
64 |
+ +zabbix-1.6.5.ebuild, metadata.xml: |
65 |
+ Bump to 1.6.5. Fixes #238151. Patches by Calogero Lo Leggio. |
66 |
|
67 |
04 Aug 2008; Jeroen Roovers <jer@g.o> metadata.xml: |
68 |
Describe local USE flags for GLEP 56. |
69 |
|
70 |
|
71 |
|
72 |
1.1 net-analyzer/zabbix/zabbix-1.6.5.ebuild |
73 |
|
74 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/zabbix/zabbix-1.6.5.ebuild?rev=1.1&view=markup |
75 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/zabbix/zabbix-1.6.5.ebuild?rev=1.1&content-type=text/plain |
76 |
|
77 |
Index: zabbix-1.6.5.ebuild |
78 |
=================================================================== |
79 |
# Copyright 1999-2009 Gentoo Foundation |
80 |
# Distributed under the terms of the GNU General Public License v2 |
81 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-1.6.5.ebuild,v 1.1 2009/09/01 13:38:46 patrick Exp $ |
82 |
|
83 |
inherit eutils flag-o-matic webapp depend.php |
84 |
|
85 |
DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers." |
86 |
HOMEPAGE="http://www.zabbix.com/" |
87 |
SRC_URI="mirror://sourceforge/zabbix/${P}.tar.gz" |
88 |
LICENSE="GPL-2" |
89 |
SLOT="0" |
90 |
WEBAPP_MANUAL_SLOT="yes" |
91 |
KEYWORDS="~amd64 ~ppc ~x86" |
92 |
IUSE="agent curl frontend jabber ldap mysql oracle postgres proxy server snmp sqlite3 openipmi" |
93 |
DEPEND="virtual/libc |
94 |
snmp? ( net-analyzer/net-snmp ) |
95 |
ldap? ( |
96 |
net-nds/openldap |
97 |
=dev-libs/cyrus-sasl-2* |
98 |
net-libs/gnutls |
99 |
) |
100 |
mysql? ( virtual/mysql ) |
101 |
sqlite3? ( =dev-db/sqlite-3* ) |
102 |
postgres? ( virtual/postgresql-base ) |
103 |
jabber? ( dev-libs/iksemel ) |
104 |
curl? ( net-misc/curl ) |
105 |
openipmi? ( sys-libs/openipmi )" |
106 |
RDEPEND="${RDEPEND} |
107 |
proxy? ( net-analyzer/fping ) |
108 |
server? ( net-analyzer/fping )" |
109 |
|
110 |
useq frontend && need_php_httpd |
111 |
|
112 |
pkg_setup() { |
113 |
if useq server || useq proxy ; then |
114 |
local dbnum dbtypes="mysql oracle postgres sqlite3" dbtype |
115 |
declare -i dbnum=0 |
116 |
for dbtype in ${dbtypes}; do |
117 |
useq ${dbtype} && let dbnum++ |
118 |
done |
119 |
if [ ${dbnum} -gt 1 ]; then |
120 |
eerror |
121 |
eerror "You can't use more than one database type in Zabbix." |
122 |
eerror "Select exactly one database type out of these: ${dbtypes}" |
123 |
eerror |
124 |
die "Multiple database types selected." |
125 |
elif [ ${dbnum} -lt 1 ]; then |
126 |
eerror |
127 |
eerror "Select exactly one database type out of these: ${dbtypes}" |
128 |
eerror |
129 |
die "No database type selected." |
130 |
fi |
131 |
if useq oracle; then |
132 |
if [ -z "${ORACLE_HOME}" ]; then |
133 |
eerror |
134 |
eerror "The environment variable ORACLE_HOME must be set" |
135 |
eerror "and point to the correct location." |
136 |
eerror "It looks like you don't have Oracle installed." |
137 |
eerror |
138 |
die "Environment variable ORACLE_HOME is not set" |
139 |
fi |
140 |
if has_version 'dev-db/oracle-instantclient-basic'; then |
141 |
ewarn |
142 |
ewarn "Please ensure you have a full install of the Oracle client." |
143 |
ewarn "dev-db/oracle-instantclient* is NOT sufficient." |
144 |
ewarn |
145 |
fi |
146 |
fi |
147 |
fi |
148 |
|
149 |
if useq frontend; then |
150 |
webapp_pkg_setup |
151 |
require_gd |
152 |
fi |
153 |
|
154 |
enewgroup zabbix |
155 |
enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix |
156 |
} |
157 |
|
158 |
pkg_postinst() { |
159 |
if useq server || useq proxy ; then |
160 |
elog |
161 |
elog "You need to configure your database for Zabbix." |
162 |
elog |
163 |
elog "Have a look at /usr/share/zabbix/database for" |
164 |
elog "database creation and upgrades." |
165 |
elog |
166 |
elog "For more info read the Zabbix manual at" |
167 |
elog "http://www.zabbix.com/documentation.php" |
168 |
elog |
169 |
|
170 |
zabbix_homedir="$(egetent passwd zabbix | cut -d : -f 6 )" |
171 |
if [ -n "${zabbix_homedir}" ] && \ |
172 |
[ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then |
173 |
ewarn |
174 |
ewarn "The user 'zabbix' should have his homedir changed" |
175 |
ewarn "to /var/lib/zabbix/home if you want to use" |
176 |
ewarn "custom alert scripts." |
177 |
ewarn |
178 |
ewarn "A real homedir might be needed for configfiles" |
179 |
ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when" |
180 |
ewarn "using sendxmpp for Jabber alerts)." |
181 |
ewarn |
182 |
ewarn "To change the homedir use:" |
183 |
ewarn " usermod -d /var/lib/zabbix/home zabbix" |
184 |
ewarn |
185 |
fi |
186 |
fi |
187 |
|
188 |
if useq server; then |
189 |
elog |
190 |
elog "For distributed monitoring you have to run:" |
191 |
elog |
192 |
elog "zabbix_server -n <nodeid>" |
193 |
elog |
194 |
elog "This will convert database data for use with Node ID" |
195 |
elog "and also adds a local node." |
196 |
elog |
197 |
fi |
198 |
|
199 |
elog "--" |
200 |
elog |
201 |
elog "Add these lines in the /etc/services :" |
202 |
elog |
203 |
elog "zabbix-agent 10050/tcp Zabbix Agent" |
204 |
elog "zabbix-agent 10050/udp Zabbix Agent" |
205 |
elog "zabbix-trapper 10051/tcp Zabbix Trapper" |
206 |
elog "zabbix-trapper 10051/udp Zabbix Trapper" |
207 |
elog |
208 |
|
209 |
# repeat fowners/fperms functionality from src_install() |
210 |
# here to catch wrong permissions on existing files in |
211 |
# the live filesystem (yeah, that sucks). |
212 |
chown -R zabbix:zabbix \ |
213 |
"${ROOT}"/etc/zabbix \ |
214 |
"${ROOT}"/var/lib/zabbix \ |
215 |
"${ROOT}"/var/lib/zabbix/home \ |
216 |
"${ROOT}"/var/lib/zabbix/scripts \ |
217 |
"${ROOT}"/var/log/zabbix \ |
218 |
"${ROOT}"/var/run/zabbix |
219 |
chmod 0750 \ |
220 |
"${ROOT}"/etc/zabbix \ |
221 |
"${ROOT}"/var/lib/zabbix \ |
222 |
"${ROOT}"/var/lib/zabbix/home \ |
223 |
"${ROOT}"/var/lib/zabbix/scripts \ |
224 |
"${ROOT}"/var/log/zabbix \ |
225 |
"${ROOT}"/var/run/zabbix |
226 |
|
227 |
chmod 0640 \ |
228 |
"${ROOT}"/etc/zabbix/zabbix_* |
229 |
|
230 |
if useq server || useq proxy ; then |
231 |
# check for fping |
232 |
fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null) |
233 |
case "${fping_perms}" in |
234 |
4[157][157][157]) |
235 |
;; |
236 |
*) |
237 |
ewarn |
238 |
ewarn "If you want to use the checks 'icmpping' and 'icmppingsec'," |
239 |
ewarn "you have to make /usr/sbin/fping setuid root and executable" |
240 |
ewarn "by everyone. Run the following command to fix it:" |
241 |
ewarn |
242 |
ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping" |
243 |
ewarn |
244 |
ewarn "Please be aware that this might impose a security risk," |
245 |
ewarn "depending on the code quality of fping." |
246 |
ewarn |
247 |
ebeep 3 |
248 |
epause 5 |
249 |
;; |
250 |
esac |
251 |
fi |
252 |
} |
253 |
|
254 |
src_compile() { |
255 |
econf \ |
256 |
$(use_enable server) \ |
257 |
$(use_enable proxy) \ |
258 |
$(use_enable agent) \ |
259 |
$(use_with ldap) \ |
260 |
$(use_with snmp net-snmp) \ |
261 |
$(use_with mysql) \ |
262 |
$(use_with postgres pgsql) \ |
263 |
$(use_with oracle) \ |
264 |
$(use_with sqlite3) \ |
265 |
$(use_with jabber) \ |
266 |
$(use_with curl libcurl) \ |
267 |
$(use_with openipmi openipmi) \ |
268 |
|| die "econf failed" |
269 |
emake || die "emake failed" |
270 |
} |
271 |
|
272 |
src_install() { |
273 |
dodir \ |
274 |
/etc/zabbix \ |
275 |
/var/lib/zabbix \ |
276 |
/var/lib/zabbix/home \ |
277 |
/var/lib/zabbix/scripts \ |
278 |
/var/log/zabbix \ |
279 |
/var/run/zabbix |
280 |
|
281 |
keepdir \ |
282 |
/etc/zabbix \ |
283 |
/var/lib/zabbix \ |
284 |
/var/lib/zabbix/home \ |
285 |
/var/lib/zabbix/scripts \ |
286 |
/var/log/zabbix \ |
287 |
/var/run/zabbix |
288 |
|
289 |
if useq server; then |
290 |
insinto /etc/zabbix |
291 |
doins \ |
292 |
"${FILESDIR}/${PV}"/zabbix_server.conf \ |
293 |
"${FILESDIR}/${PV}"/zabbix_trapper.conf |
294 |
doinitd \ |
295 |
"${FILESDIR}/${PV}"/init.d/zabbix-server |
296 |
dosbin \ |
297 |
src/zabbix_server/zabbix_server |
298 |
dodir \ |
299 |
/usr/share/zabbix/database |
300 |
insinto /usr/share/zabbix/database |
301 |
doins -r \ |
302 |
upgrades \ |
303 |
create |
304 |
fowners zabbix:zabbix \ |
305 |
/etc/zabbix/zabbix_server.conf \ |
306 |
/etc/zabbix/zabbix_trapper.conf |
307 |
fperms 0640 \ |
308 |
/etc/zabbix/zabbix_server.conf \ |
309 |
/etc/zabbix/zabbix_trapper.conf |
310 |
fi |
311 |
|
312 |
if useq agent; then |
313 |
insinto /etc/zabbix |
314 |
doins \ |
315 |
"${FILESDIR}/${PV}"/zabbix_agent.conf \ |
316 |
"${FILESDIR}/${PV}"/zabbix_agentd.conf |
317 |
doinitd \ |
318 |
"${FILESDIR}/${PV}"/init.d/zabbix-agentd |
319 |
dosbin \ |
320 |
src/zabbix_agent/zabbix_agent \ |
321 |
src/zabbix_agent/zabbix_agentd |
322 |
dobin \ |
323 |
src/zabbix_sender/zabbix_sender \ |
324 |
src/zabbix_get/zabbix_get |
325 |
fowners zabbix:zabbix \ |
326 |
/etc/zabbix/zabbix_agent.conf \ |
327 |
/etc/zabbix/zabbix_agentd.conf |
328 |
fperms 0640 \ |
329 |
/etc/zabbix/zabbix_agent.conf \ |
330 |
/etc/zabbix/zabbix_agentd.conf |
331 |
fi |
332 |
|
333 |
fowners zabbix:zabbix \ |
334 |
/etc/zabbix \ |
335 |
/var/lib/zabbix \ |
336 |
/var/lib/zabbix/home \ |
337 |
/var/lib/zabbix/scripts \ |
338 |
/var/log/zabbix \ |
339 |
/var/run/zabbix |
340 |
fperms 0750 \ |
341 |
/etc/zabbix \ |
342 |
/var/lib/zabbix \ |
343 |
/var/lib/zabbix/home \ |
344 |
/var/lib/zabbix/scripts \ |
345 |
/var/log/zabbix \ |
346 |
/var/run/zabbix |
347 |
|
348 |
dodoc README INSTALL NEWS ChangeLog |
349 |
|
350 |
if useq frontend; then |
351 |
webapp_src_preinst |
352 |
cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}" |
353 |
webapp_postinst_txt en "${FILESDIR}/${PV}"/postinstall-en.txt |
354 |
webapp_configfile \ |
355 |
"${MY_HTDOCSDIR}"/include/db.inc.php \ |
356 |
"${MY_HTDOCSDIR}"/include/config.inc.php |
357 |
webapp_src_install |
358 |
fi |
359 |
} |