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