diff options
author | 2010-08-18 16:47:03 +0000 | |
---|---|---|
committer | 2010-08-18 16:47:03 +0000 | |
commit | 757f1b5e37fde87b34a64f45f2a73ca1eed828be (patch) | |
tree | 18dffe5aee8a8cc0a670c8ea54f540c6dd9460c5 /net-analyzer/zabbix | |
parent | Marked ~m68k-mint, bug #333209 (diff) | |
download | historical-757f1b5e37fde87b34a64f45f2a73ca1eed828be.tar.gz historical-757f1b5e37fde87b34a64f45f2a73ca1eed828be.tar.bz2 historical-757f1b5e37fde87b34a64f45f2a73ca1eed828be.zip |
Bump, fixes #326161 #327213
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer/zabbix')
-rw-r--r-- | net-analyzer/zabbix/ChangeLog | 8 | ||||
-rw-r--r-- | net-analyzer/zabbix/Manifest | 8 | ||||
-rw-r--r-- | net-analyzer/zabbix/metadata.xml | 2 | ||||
-rw-r--r-- | net-analyzer/zabbix/zabbix-1.8.2.ebuild | 4 | ||||
-rw-r--r-- | net-analyzer/zabbix/zabbix-1.8.3.ebuild | 308 |
5 files changed, 324 insertions, 6 deletions
diff --git a/net-analyzer/zabbix/ChangeLog b/net-analyzer/zabbix/ChangeLog index 458ae8f08b5b..a5da081c6c66 100644 --- a/net-analyzer/zabbix/ChangeLog +++ b/net-analyzer/zabbix/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/zabbix # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v 1.33 2010/07/18 13:03:18 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v 1.34 2010/08/18 16:47:03 patrick Exp $ + +*zabbix-1.8.3 (18 Aug 2010) + + 18 Aug 2010; Patrick Lauer <patrick@gentoo.org> zabbix-1.8.2.ebuild, + +zabbix-1.8.3.ebuild, metadata.xml: + Bump, fixes #326161 #327213 18 Jul 2010; <nixnut@gentoo.org> zabbix-1.8.2.ebuild: ppc stable #322445 diff --git a/net-analyzer/zabbix/Manifest b/net-analyzer/zabbix/Manifest index e5872cd9c9ca..f8c1851b0861 100644 --- a/net-analyzer/zabbix/Manifest +++ b/net-analyzer/zabbix/Manifest @@ -25,9 +25,11 @@ AUX zabbix-1.8.2-as-needed.patch 2328 RMD160 8a69c4b6267c0e280e0135bbd13915b5d02 AUX zabbix-as-needed.patch 2296 RMD160 2f369ec35e3245d191433613dc5e82fc4a21f2e0 SHA1 809b8a94e49a9677f520a601b5dc599c33843992 SHA256 7e8d9b6f478c4a2fbfc822400e51dd01dbe46a0c28522520db167e46e36a0c29 DIST zabbix-1.8.1.tar.gz 3607414 RMD160 2f444b7292855bb4b9aaf4830871ebeb49e28b47 SHA1 ac8d4e73eebd1a86b9fdc5df3035df67e7efa5e0 SHA256 ef487766f22527d79fd7a2631b615c34d04103038341f1dc16eceb77172d8a7c DIST zabbix-1.8.2.tar.gz 3706540 RMD160 6333bb4c676422956a60c01caee3c67c9c05dde2 SHA1 59573efdffe481f1e0d020f4e75b670daa837ded SHA256 ba1d00454551c1c6f0d270f76718b69ce9f54c427e22acb5a13ccbc9e621fd81 +DIST zabbix-1.8.3.tar.gz 4106152 RMD160 f0d54c1cd8865c952945a8ec3958e7ebdd9a92d5 SHA1 68f5d1f12897bc69c6ff5deea2bad82b0c1f5761 SHA256 37262d751c9661a361380bf1480d277d81621d8a49c60a81667cbe258021065c DIST zabbix-1.8.tar.gz 3549582 RMD160 1eba1aacb7579bf560057fe9cc1d667bf36ac608 SHA1 fa82721b745ccaa84c33602f4016c4057b5245b3 SHA256 6743f01f27116ead7b48927ac184708bb920541c88e63602fe1f2b7401866eec EBUILD zabbix-1.8-r1.ebuild 7959 RMD160 6768a6fd7e692176548f5c20796904f1874aa2b1 SHA1 5196a78cbe7c06839964606007771331bd0ecd95 SHA256 4b4f05a836c9351ad90ebd22e637db354669d12ed0a5a1f45830d29316e8f3e5 EBUILD zabbix-1.8.1.ebuild 7958 RMD160 916893aebcc37537fc07797c14098c42e31e37ab SHA1 120d3119cca2463de4b216cf802d8a98f0b03126 SHA256 de79bec79ca1168bfdf1c00ecc77508f0276c1ee12136fa799ca88d8ea195641 -EBUILD zabbix-1.8.2.ebuild 8023 RMD160 f81bcd079afda16d537d6f7c8ac483862827cbab SHA1 99262ba3142942d7408041e628c8f2032ef09a49 SHA256 4f0485217b1fa2f4699be3e49281e08956d4ceb3f2d1d8356c872050507d3909 -MISC ChangeLog 8538 RMD160 21e1ae84aa38f3f13b69b6a52b597fbbdc706b76 SHA1 0f60e7591c3d7559f5e6906792599c021ec9bdd3 SHA256 608769ecc8a54b642a35fe1812d1f12f190a2e94309281ed4e3f3c7d06231ede -MISC metadata.xml 876 RMD160 eaaf9df3e263aebe0a1229b6fae6ba4596fe0a4d SHA1 fdfdd13b2376b6674d65aff6b70949265ee187ee SHA256 821c5cb433694059af057e1001020f0556a609c69732b34e1326758664e545c9 +EBUILD zabbix-1.8.2.ebuild 8032 RMD160 f529502b7f7659b736dca285229fb0467f889215 SHA1 d655a83c703eddabd2212e34b3a4666a4655cbd8 SHA256 639e0b4b0deaf872d76ced15c6c6dbcb58cf01dd168d4f6cf84c43b2f7c8e7d2 +EBUILD zabbix-1.8.3.ebuild 8021 RMD160 2e0621379d304f628f9bc389a70f15a273549fa6 SHA1 90178345659fa512f34e659b47c21b215c9a9f04 SHA256 d8526860ee54580b4adc000be55840b4e8050c3ecbcbe548b93d6c4d59fd08cb +MISC ChangeLog 8708 RMD160 832963d321a4521052aa657f5404cd92a8790dff SHA1 14fc4313c3d5dbfd688aabe82aacfb140ce617a3 SHA256 c83d0e252d615d5175d962f9094e6894b9e5686a8d617d4932baaa362083e310 +MISC metadata.xml 923 RMD160 4318cea3643c9523c0bf71913d355b31954d079b SHA1 0a121546e57330503091d4c29f03de07d54f578f SHA256 1f7a69cb4461cebb0f1bc62c1a91167a2e69dc9c3640c8c4eb9488643f154c23 diff --git a/net-analyzer/zabbix/metadata.xml b/net-analyzer/zabbix/metadata.xml index af76c729bb6b..97f7b08548ad 100644 --- a/net-analyzer/zabbix/metadata.xml +++ b/net-analyzer/zabbix/metadata.xml @@ -18,5 +18,7 @@ configure different types of notifications for pre-defined events. <flag name='proxy'>Enable proxy support</flag> <flag name='openipmi'>Enable openipmi things</flag> <flag name='server'>Enable zabbix server</flag> + <flag name='ssh'>Enable ssh.run items</flag> + </use> </pkgmetadata> diff --git a/net-analyzer/zabbix/zabbix-1.8.2.ebuild b/net-analyzer/zabbix/zabbix-1.8.2.ebuild index 94f50a83a76f..a2a6362a24c6 100644 --- a/net-analyzer/zabbix/zabbix-1.8.2.ebuild +++ b/net-analyzer/zabbix/zabbix-1.8.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-1.8.2.ebuild,v 1.8 2010/07/18 13:03:18 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-1.8.2.ebuild,v 1.9 2010/08/18 16:47:03 patrick Exp $ EAPI="2" @@ -33,7 +33,7 @@ RDEPEND="${COMMON_DEPEND} proxy? ( net-analyzer/fping ) server? ( net-analyzer/fping app-admin/webapp-config ) - frontend? ( dev-lang/php[bcmath,ctype] + frontend? ( dev-lang/php[bcmath,ctype,sockets] app-admin/webapp-config )" DEPEND="${COMMON_DEPEND} jabber? ( dev-util/pkgconfig )" diff --git a/net-analyzer/zabbix/zabbix-1.8.3.ebuild b/net-analyzer/zabbix/zabbix-1.8.3.ebuild new file mode 100644 index 000000000000..12820c1a3a06 --- /dev/null +++ b/net-analyzer/zabbix/zabbix-1.8.3.ebuild @@ -0,0 +1,308 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-1.8.3.ebuild,v 1.1 2010/08/18 16:47:03 patrick Exp $ + +EAPI="2" + +# needed to make webapp-config dep optional +WEBAPP_OPTIONAL="yes" +inherit eutils flag-o-matic webapp depend.php + +DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers." +HOMEPAGE="http://www.zabbix.com/" +SRC_URI="http://prdownloads.sourceforge.net/zabbix/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +WEBAPP_MANUAL_SLOT="yes" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="agent curl frontend ipv6 jabber ldap mysql openipmi oracle postgres proxy server -ssh snmp +sqlite3" + +COMMON_DEPEND="snmp? ( net-analyzer/net-snmp ) + ldap? ( + net-nds/openldap + =dev-libs/cyrus-sasl-2* + net-libs/gnutls + ) + mysql? ( virtual/mysql ) + sqlite3? ( =dev-db/sqlite-3* ) + postgres? ( dev-db/postgresql-base ) + jabber? ( dev-libs/iksemel ) + curl? ( net-misc/curl ) + openipmi? ( sys-libs/openipmi ) + ssh? ( net-libs/libssh2 )" + +RDEPEND="${COMMON_DEPEND} + proxy? ( net-analyzer/fping ) + server? ( net-analyzer/fping + app-admin/webapp-config ) + frontend? ( dev-lang/php[bcmath,ctype,sockets,gd] + app-admin/webapp-config )" +DEPEND="${COMMON_DEPEND} + jabber? ( dev-util/pkgconfig )" + +useq frontend && need_php_httpd + +pkg_setup() { + if useq server || useq proxy ; then + local dbnum dbtypes="mysql oracle postgres sqlite3" dbtype + declare -i dbnum=0 + for dbtype in ${dbtypes}; do + useq ${dbtype} && let dbnum++ + done + if [ ${dbnum} -gt 1 ]; then + eerror + eerror "You can't use more than one database type in Zabbix." + eerror "Select exactly one database type out of these: ${dbtypes}" + eerror + die "Multiple database types selected." + elif [ ${dbnum} -lt 1 ]; then + eerror + eerror "Select exactly one database type out of these: ${dbtypes}" + eerror + die "No database type selected." + fi + if useq oracle; then + if [ -z "${ORACLE_HOME}" ]; then + eerror + eerror "The environment variable ORACLE_HOME must be set" + eerror "and point to the correct location." + eerror "It looks like you don't have Oracle installed." + eerror + die "Environment variable ORACLE_HOME is not set" + fi + if has_version 'dev-db/oracle-instantclient-basic'; then + ewarn + ewarn "Please ensure you have a full install of the Oracle client." + ewarn "dev-db/oracle-instantclient* is NOT sufficient." + ewarn + fi + fi + fi + + if useq frontend; then + webapp_pkg_setup + fi + + enewgroup zabbix + enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix +} + +pkg_postinst() { + if useq server || useq proxy ; then + elog + elog "You need to configure your database for Zabbix." + elog + elog "Have a look at /usr/share/zabbix/database for" + elog "database creation and upgrades." + elog + elog "For more info read the Zabbix manual at" + elog "http://www.zabbix.com/documentation.php" + elog + + zabbix_homedir="$(egetent passwd zabbix | cut -d : -f 6 )" + if [ -n "${zabbix_homedir}" ] && \ + [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then + ewarn + ewarn "The user 'zabbix' should have his homedir changed" + ewarn "to /var/lib/zabbix/home if you want to use" + ewarn "custom alert scripts." + ewarn + ewarn "A real homedir might be needed for configfiles" + ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when" + ewarn "using sendxmpp for Jabber alerts)." + ewarn + ewarn "To change the homedir use:" + ewarn " usermod -d /var/lib/zabbix/home zabbix" + ewarn + fi + fi + + if useq server; then + elog + elog "For distributed monitoring you have to run:" + elog + elog "zabbix_server -n <nodeid>" + elog + elog "This will convert database data for use with Node ID" + elog "and also adds a local node." + elog + fi + + elog "--" + elog + elog "Add these lines in the /etc/services :" + elog + elog "zabbix-agent 10050/tcp Zabbix Agent" + elog "zabbix-agent 10050/udp Zabbix Agent" + elog "zabbix-trapper 10051/tcp Zabbix Trapper" + elog "zabbix-trapper 10051/udp Zabbix Trapper" + elog + + # repeat fowners/fperms functionality from src_install() + # here to catch wrong permissions on existing files in + # the live filesystem (yeah, that sucks). + chown -R zabbix:zabbix \ + "${ROOT}"/etc/zabbix \ + "${ROOT}"/var/lib/zabbix \ + "${ROOT}"/var/lib/zabbix/home \ + "${ROOT}"/var/lib/zabbix/scripts \ + "${ROOT}"/var/log/zabbix \ + "${ROOT}"/var/run/zabbix + chmod 0750 \ + "${ROOT}"/etc/zabbix \ + "${ROOT}"/var/lib/zabbix \ + "${ROOT}"/var/lib/zabbix/home \ + "${ROOT}"/var/lib/zabbix/scripts \ + "${ROOT}"/var/log/zabbix \ + "${ROOT}"/var/run/zabbix + + chmod 0640 \ + "${ROOT}"/etc/zabbix/zabbix_* + + if useq server || useq proxy ; then + # check for fping + fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null) + case "${fping_perms}" in + 4[157][157][157]) + ;; + *) + ewarn + ewarn "If you want to use the checks 'icmpping' and 'icmppingsec'," + ewarn "you have to make /usr/sbin/fping setuid root and executable" + ewarn "by everyone. Run the following command to fix it:" + ewarn + ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping" + ewarn + ewarn "Please be aware that this might impose a security risk," + ewarn "depending on the code quality of fping." + ewarn + ebeep 3 + epause 5 + ;; + esac + fi +} + +src_configure() { + econf \ + $(use_enable server) \ + $(use_enable proxy) \ + $(use_enable agent) \ + $(use_enable ipv6) \ + $(use_with ldap) \ + $(use_with snmp net-snmp) \ + $(use_with mysql) \ + $(use_with postgres pgsql) \ + $(use_with oracle) \ + $(use_with sqlite3) \ + $(use_with jabber) \ + $(use_with curl libcurl) \ + $(use_with openipmi openipmi) \ + $(use_with ssh ssh2) \ + || die "econf failed" +} + +src_install() { + dodir \ + /etc/zabbix \ + /var/lib/zabbix \ + /var/lib/zabbix/home \ + /var/lib/zabbix/scripts \ + /var/log/zabbix \ + /var/run/zabbix + + keepdir \ + /etc/zabbix \ + /var/lib/zabbix \ + /var/lib/zabbix/home \ + /var/lib/zabbix/scripts \ + /var/log/zabbix \ + /var/run/zabbix + + if useq server; then + insinto /etc/zabbix + doins \ + "${FILESDIR}/1.6.6"/zabbix_server.conf \ + "${FILESDIR}/1.6.6"/zabbix_trapper.conf + doinitd \ + "${FILESDIR}/1.6.6"/init.d/zabbix-server + dosbin \ + src/zabbix_server/zabbix_server + dodir \ + /usr/share/zabbix/database + insinto /usr/share/zabbix/database + doins -r \ + upgrades \ + create + fowners zabbix:zabbix \ + /etc/zabbix/zabbix_server.conf \ + /etc/zabbix/zabbix_trapper.conf + fperms 0640 \ + /etc/zabbix/zabbix_server.conf \ + /etc/zabbix/zabbix_trapper.conf + fi + + if useq proxy; then + doinitd \ + "${FILESDIR}/1.6.6"/init.d/zabbix-proxy + dosbin \ + src/zabbix_proxy/zabbix_proxy + insinto /etc/zabbix + doins \ + "${FILESDIR}/1.6.6"/zabbix_proxy.conf + dodir \ + /usr/share/zabbix/database + insinto /usr/share/zabbix/database + doins -r \ + upgrades \ + create + fi + + if useq agent; then + insinto /etc/zabbix + doins \ + "${FILESDIR}/1.6.6"/zabbix_agent.conf \ + "${FILESDIR}/1.6.6"/zabbix_agentd.conf + doinitd \ + "${FILESDIR}/1.6.6"/init.d/zabbix-agentd + dosbin \ + src/zabbix_agent/zabbix_agent \ + src/zabbix_agent/zabbix_agentd + dobin \ + src/zabbix_sender/zabbix_sender \ + src/zabbix_get/zabbix_get + fowners zabbix:zabbix \ + /etc/zabbix/zabbix_agent.conf \ + /etc/zabbix/zabbix_agentd.conf + fperms 0640 \ + /etc/zabbix/zabbix_agent.conf \ + /etc/zabbix/zabbix_agentd.conf + fi + + fowners zabbix:zabbix \ + /etc/zabbix \ + /var/lib/zabbix \ + /var/lib/zabbix/home \ + /var/lib/zabbix/scripts \ + /var/log/zabbix \ + /var/run/zabbix + fperms 0750 \ + /etc/zabbix \ + /var/lib/zabbix \ + /var/lib/zabbix/home \ + /var/lib/zabbix/scripts \ + /var/log/zabbix \ + /var/run/zabbix + + dodoc README INSTALL NEWS ChangeLog + + if useq frontend; then + webapp_src_preinst + cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}" + webapp_postinst_txt en "${FILESDIR}/"1.6.6/postinstall-en.txt + webapp_configfile \ + "${MY_HTDOCSDIR}"/include/db.inc.php \ + "${MY_HTDOCSDIR}"/include/config.inc.php + webapp_src_install + fi +} |