diff options
author | Matthew Marlowe <mattm@gentoo.org> | 2012-07-02 05:43:41 +0000 |
---|---|---|
committer | Matthew Marlowe <mattm@gentoo.org> | 2012-07-02 05:43:41 +0000 |
commit | 6931256299ab44ade9fed8bd6664ffb7ef4c0a2f (patch) | |
tree | 1e524a84b89d2a20b69c422ba1b63252522530dd /net-analyzer/zabbix | |
parent | Version bump (diff) | |
download | historical-6931256299ab44ade9fed8bd6664ffb7ef4c0a2f.tar.gz historical-6931256299ab44ade9fed8bd6664ffb7ef4c0a2f.tar.bz2 historical-6931256299ab44ade9fed8bd6664ffb7ef4c0a2f.zip |
Bump for Zabbix 2.0.1, Zabbix 2.0.x releases are no longer package masked, moved to ~amd64 and ~x86. 1.8.14 slated to become future stable - removed obsolete 1.8.x ebuilds from testing.
Package-Manager: portage-2.1.10.65/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer/zabbix')
-rw-r--r-- | net-analyzer/zabbix/ChangeLog | 9 | ||||
-rw-r--r-- | net-analyzer/zabbix/Manifest | 24 | ||||
-rw-r--r-- | net-analyzer/zabbix/zabbix-1.8.13-r1.ebuild | 335 | ||||
-rw-r--r-- | net-analyzer/zabbix/zabbix-2.0.0-r1.ebuild | 404 | ||||
-rw-r--r-- | net-analyzer/zabbix/zabbix-2.0.1.ebuild (renamed from net-analyzer/zabbix/zabbix-2.0.1_rc2.ebuild) | 15 |
5 files changed, 21 insertions, 766 deletions
diff --git a/net-analyzer/zabbix/ChangeLog b/net-analyzer/zabbix/ChangeLog index 3df535190e81..6be1e3ac28ba 100644 --- a/net-analyzer/zabbix/ChangeLog +++ b/net-analyzer/zabbix/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-analyzer/zabbix # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v 1.102 2012/06/29 14:24:47 mattm Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v 1.103 2012/07/02 05:43:41 mattm Exp $ + +*zabbix-2.0.1 (02 Jul 2012) + + 02 Jul 2012; Matthew Marlowe <mattm@gentoo.org> -zabbix-1.8.13-r1.ebuild, + -zabbix-2.0.0-r1.ebuild, -zabbix-2.0.1_rc2.ebuild, +zabbix-2.0.1.ebuild: + Bump for Zabbix 2.0.1 - Zabbix 2.0 releases are no longer package masked, + moved to ~amd64 and ~x86. *zabbix-1.8.14 (29 Jun 2012) diff --git a/net-analyzer/zabbix/Manifest b/net-analyzer/zabbix/Manifest index f835c32216e8..cb75703b6da2 100644 --- a/net-analyzer/zabbix/Manifest +++ b/net-analyzer/zabbix/Manifest @@ -28,25 +28,21 @@ AUX 2.0/init.d/zabbix-agentd 666 RMD160 c2d8426ad1442e61a6e128691b1abfa8405bed12 AUX 2.0/init.d/zabbix-server 598 RMD160 c584152f4d40ccdc9aded4b57bb24e13695565de SHA1 f6809b1a50f9634f80d9a33670527d6e5a6819bd SHA256 4d17f4966513c068b6097125d0ae34a371fbd4edbea3b1c52c1b0620e2cac19b AUX zabbix-1.8.9-as-needed.patch 2737 RMD160 ddeb918ac3f4b297810da105cf2a4cfaa4268fd1 SHA1 278fe59122a90a4b8ccc26e1d722ee107c1e91fb SHA256 1c9b85c0a9d9161f983a590df387341c5168f254deb9f2cf858886a2e6e8aec1 DIST zabbix-1.8.11.tar.gz 4224738 RMD160 d2e8749a43b0846a7bc93a21c6546dad0d66b678 SHA1 2efb94e0b57f1ddbb38ef3f8da225d88effb0689 SHA256 c45819b97082799bb253e4c6a3937affd07a2cd2744d860d657107aa4a3e772b -DIST zabbix-1.8.13.tar.gz 4235482 RMD160 ade2e43e581fe1b9b3b07057e612abc239798028 SHA1 38fd1e2a208fd2069bea61f2e5d1c66ee0697504 SHA256 ac4497cde031b793e492e874b091d109da7d5410c4ba55f54cad0749ae47e667 DIST zabbix-1.8.14.tar.gz 4241608 RMD160 3934998236e54dedcf5ce5b7f590472baf01a753 SHA1 8dcf5b944efac806b88b96276fb4bc9a5723b8d6 SHA256 039be5600a4ca9051a3b068c61da5eeeaff9f948511f31d4345308071ad9ab0f -DIST zabbix-2.0.0.tar.gz 12091622 RMD160 c6c9e57cb1ce69aed45af921760d9f59d065da98 SHA1 19f0ed5174e4578c6e6f764439bdeadb7237e463 SHA256 52cc4b8a8624d53ff4591ebf86a92c19230964d46d39e5cccf7b8648fb2ecf4d -DIST zabbix-2.0.1rc2.tar.gz 12029860 RMD160 a18ed9b8a67b37d5cf8d1ca6976f263097e13bba SHA1 bdf382fac4dc6bbddc6e195b9814d0f72abc233a SHA256 fc6e77d180bb0a14685cbb00ee66aa11c36d5852c2c420d1ef93fde7580495e5 +DIST zabbix-2.0.1.tar.gz 12027206 RMD160 9f7f015431e679ea29d63bd4296b74103a7bbfc2 SHA1 ca7d548f6ddb1f963958357ed5ddaf2fbceed104 SHA256 04b9f87d4326ab6d902c3505a85a16ce66d8b65316725eacb428c0007d37a47d EBUILD zabbix-1.8.11-r2.ebuild 8594 RMD160 7d2ae7449258a3af5846664db1698304c5277d2b SHA1 23263ff33889bd43d3d547422684182c061ed477 SHA256 d9a30f149ea4fb202a3febd59ae358c82908610a405240b83c6ea0fe02a253a2 -EBUILD zabbix-1.8.13-r1.ebuild 8596 RMD160 25ae835faeeba7460d267beb25ae7fe9c8232a24 SHA1 708b73f90998afb8131eee149520f14ca5c35f17 SHA256 38b47d330723abe68a4923b2ab01b1783d0511b1e26684d3f9addb045c8f4df5 EBUILD zabbix-1.8.14.ebuild 8591 RMD160 06715f6943d045852e755f0ca28b3a118f47d1e4 SHA1 735ecfeed907a62de101a813cc8b64aace25d0f2 SHA256 b248628e958f8fd52b5df23bac2600209faf12799f1d7407594c9f42e13f530b -EBUILD zabbix-2.0.0-r1.ebuild 10825 RMD160 fb2cfbd88e449d1313960192f80c3affc12cf423 SHA1 22c152ebf4edc412822f14ac5004dca440d0cbff SHA256 be7eeb39e66edee906b6618d56970077ce207b8e883707ee4199eafdbf5bd4c4 -EBUILD zabbix-2.0.1_rc2.ebuild 10824 RMD160 025687154b6dbb40ed1d5fa9ba810fb723f215bb SHA1 ea3df409134cfa34f8012afa8545fef74c6ae0f6 SHA256 5930de3b5e3c0f738bf52ba54ef2dbd99bc0dede1a865f998e5e212a22e479d4 -MISC ChangeLog 24258 RMD160 9dffe6bf4d1176e2140837b235274bda99762ce3 SHA1 a6c089f64f963941e9ca1911fd879d0e99e2b38e SHA256 72f219a607feab9a4bf3d44eb47cd01a360dcdf9b8d5b8e4a94c3a4a6f85d780 +EBUILD zabbix-2.0.1.ebuild 10434 RMD160 2833b93fabfa516d1bc260a03a7410df36f0a89f SHA1 ff649be983ec8c8de4731cf16da96d49fa80d888 SHA256 2a129b1840f342cf4efdb99ab6f8e40855f633dfecfe9d69451f5ba4691f7cf5 +MISC ChangeLog 24543 RMD160 fff17e2930d3adaa5caf0e1072dab62ed3b2eb31 SHA1 1a5551aee55929694471e888982d85120430a010 SHA256 c923c721d4ccaa3f003af94800e99d9d8e0c418868194ef8f517a07f12e1efa8 MISC metadata.xml 1192 RMD160 643f1b9296eba1f769fe042a29700fe1e2969981 SHA1 89f5fc5cff2ae2c6e930465dbb76b576c8b78fc6 SHA256 a1ad2643da11113f3315b4eb42782f514437c7093badc9d91a921c43f1a79141 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iQEcBAEBAgAGBQJP7bq7AAoJEC1LWXx4YDen/XwH/3xQv8bEsl74Qr9cEQ4oQJmg -4XhRtYbZhii0c624kfPRp/cCgIqdFq/e6ONgrxJDPIL48r6cXf9/75GeyKhYJpNV -6gsmVGCY6dyaEzPYqlCm6W3UscFv105i3d9qlkqzn7Cgm2wVO6NdHWDRiIq9X0Kd -eT1XFXAx8Q1dgz96I1tdR+kU+9DGkclm9pt3uPr4MYQ0630oViYPOLuNrVkQ4gtC -vUbx6z5H5wxdRXTS4m6sB/6NVDDNWmRFqBN707BFCdxIaCCxnfe6mldoX5T9zNUm -eg5ndPzH/Zt2pjDCI3Ny0UhdOfYz2ogPGCO+nOk5tAQNt/S0QyIA89ySHRrUB3M= -=+ao2 +iQEcBAEBAgAGBQJP8TUZAAoJEC1LWXx4YDenz3AH/AlNnfC8fl+SAgu8tpXT2obi +ZeWUFMq8ZfG/foS3KgEDaEM/C1cC0hTBk3E3J6viCyR7XlVzRD+2XqiWcZlI3tHz +PIYVJxlo2xQs0tzUS6OF+2s0jxcU2nDfn0SQWKhU77E6MkUZKAc/5e/6Rew65QkK +Zbe3vq+Nnnh9UXexYTiCCHgnsvgup3/gs31Qsv7Xv/Rl5SL++YDXWsj5K+f1nLaM +/qdDGcNliww5sHkIF1qmoJtS4Xt+Of2gOJvdT+sKYHYwM2cYK63mW+T/7ZdqbXHl +qQ3ItZedsQaCyHeRyPWDWjoojElVN2ZvbvPLIcO5ZeZ/xSX9s8lx8raQsrvlMSY= +=loQ6 -----END PGP SIGNATURE----- diff --git a/net-analyzer/zabbix/zabbix-1.8.13-r1.ebuild b/net-analyzer/zabbix/zabbix-1.8.13-r1.ebuild deleted file mode 100644 index dcdc1396bf77..000000000000 --- a/net-analyzer/zabbix/zabbix-1.8.13-r1.ebuild +++ /dev/null @@ -1,335 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-1.8.13-r1.ebuild,v 1.2 2012/06/12 03:55:18 zmedico Exp $ - -EAPI="2" - -# needed to make webapp-config dep optional -WEBAPP_OPTIONAL="yes" -inherit flag-o-matic webapp depend.php autotools user - -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers." -HOMEPAGE="http://www.zabbix.com/" -MY_P=${P/_/} -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz" -LICENSE="GPL-2" -SLOT="0" -WEBAPP_MANUAL_SLOT="yes" -KEYWORDS="~amd64 ~x86" -IUSE="agent curl frontend ipv6 jabber ldap mysql openipmi oracle postgres proxy server ssh snmp +sqlite iodbc odbc static" - -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp ) - ldap? ( - net-nds/openldap - =dev-libs/cyrus-sasl-2* - net-libs/gnutls - ) - mysql? ( virtual/mysql ) - sqlite? ( =dev-db/sqlite-3* ) - postgres? ( dev-db/postgresql-base ) - oracle? ( dev-db/oracle-instantclient-basic ) - jabber? ( dev-libs/iksemel ) - curl? ( net-misc/curl ) - openipmi? ( sys-libs/openipmi ) - ssh? ( net-libs/libssh2 ) - odbc? ( - iodbc? ( dev-db/libiodbc ) - !iodbc? ( dev-db/unixODBC ) - )" - -RDEPEND="${COMMON_DEPEND} - proxy? ( <=net-analyzer/fping-2.9 ) - server? ( <=net-analyzer/fping-2.9 - app-admin/webapp-config ) - frontend? ( dev-lang/php[bcmath,ctype,sockets,gd,truetype,xml,session] - media-libs/gd[png] - app-admin/webapp-config )" -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig" - -use frontend && need_php_httpd - -src_prepare() { - eautoreconf -} - -pkg_setup() { - if use server || use proxy ; then - local dbnum dbtypes="mysql oracle postgres sqlite" dbtype - declare -i dbnum=0 - for dbtype in ${dbtypes}; do - use ${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 use 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 use frontend; then - webapp_pkg_setup - fi - - enewgroup zabbix - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix -} - -pkg_postinst() { - if use server || use 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=$(egethome zabbix) - 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 use 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 - - elog "Zabbix is incompatible with fping 3.0 - (Zabbix bug #ZBX-4894)." - 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 use server || use 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() { - - local myconf - - if use odbc && use iodbc ; then - myconf="${myconf} --with-iodbc --without-unixodbc" - elif use odbc && ! use iodbc; then - myconf="${myconf} --with-unixodbc --without-iodbc" - else - myconf="${myconf} --without-unixodbc --without-iodbc" - fi - - econf \ - $myconf \ - $(use_enable server) \ - $(use_enable proxy) \ - $(use_enable agent) \ - $(use_enable ipv6) \ - $(use_enable static) \ - $(use_with ldap) \ - $(use_with snmp net-snmp) \ - $(use_with mysql) \ - $(use_with postgres pgsql) \ - $(use_with oracle) \ - $(use_with sqlite 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 use 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 use 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 use 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 use 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 -} diff --git a/net-analyzer/zabbix/zabbix-2.0.0-r1.ebuild b/net-analyzer/zabbix/zabbix-2.0.0-r1.ebuild deleted file mode 100644 index a4aff5e401b5..000000000000 --- a/net-analyzer/zabbix/zabbix-2.0.0-r1.ebuild +++ /dev/null @@ -1,404 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-2.0.0-r1.ebuild,v 1.2 2012/06/12 03:55:18 zmedico Exp $ - -EAPI="2" - -# needed to make webapp-config dep optional -WEBAPP_OPTIONAL="yes" -inherit flag-o-matic webapp depend.php autotools java-pkg-opt-2 user - -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers." -HOMEPAGE="http://www.zabbix.com/" -MY_P=${P/_/} -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz" -LICENSE="GPL-2" -SLOT="0" -WEBAPP_MANUAL_SLOT="yes" -KEYWORDS="" -IUSE="agent java curl frontend ipv6 jabber ldap mysql openipmi oracle postgres proxy server ssh snmp sqlite iodbc odbc static" - -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp ) - ldap? ( - net-nds/openldap - =dev-libs/cyrus-sasl-2* - net-libs/gnutls - ) - mysql? ( >=virtual/mysql-5.0 ) - sqlite? ( >=dev-db/sqlite-3.3.5 ) - postgres? ( >=dev-db/postgresql-base-8.3.0 ) - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 ) - jabber? ( dev-libs/iksemel ) - curl? ( net-misc/curl ) - openipmi? ( sys-libs/openipmi ) - ssh? ( net-libs/libssh2 ) - java? ( >=virtual/jdk-1.4 ) - odbc? ( - iodbc? ( dev-db/libiodbc ) - !iodbc? ( dev-db/unixODBC ) - )" - -RDEPEND="${COMMON_DEPEND} - proxy? ( <=net-analyzer/fping-2.9 ) - server? ( <=net-analyzer/fping-2.9 - app-admin/webapp-config ) - java? ( - >=virtual/jre-1.4 - dev-java/slf4j-api - dev-java/json-simple - ) - frontend? ( - dev-lang/php[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls] - media-libs/gd[png] - app-admin/webapp-config )" -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig" - -use frontend && need_php_httpd - -S=${WORKDIR}/${MY_P} - -ZABBIXJAVA_BASE="opt/zabbix_java" - -java_prepare() { - cd "${S}/src/zabbix_java/lib" - rm -v *.jar || die - - java-pkg_jar-from slf4j-api - java-pkg_jar-from json-simple -} - -src_prepare() { - eautoreconf -} - -pkg_setup() { - if use server || use proxy ; then - local dbnum dbtypes="mysql oracle postgres sqlite" dbtype - declare -i dbnum=0 - for dbtype in ${dbtypes}; do - use ${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 use 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 use frontend; then - webapp_pkg_setup - fi - - enewgroup zabbix - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix -} - -pkg_postinst() { - if use server || use proxy ; then - elog - elog "You may need to configure your database for Zabbix," - elog "if you have not already done so. Most minor version" - elog "zabbix updates do not require db changes. However, " - elog "you should read the release notes to be sure." - elog - elog "Have a look at /usr/share/zabbix for" - elog "database creation and upgrades." - elog - elog "Execute schema, images, and data sql files in order." - elog - elog "For more info read the Zabbix manual at" - elog "http://www.zabbix.com/documentation.php" - elog - elog "New use flags: java, odbc, iodbc" - elog - - zabbix_homedir=$(egethome zabbix) - 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 use 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 "You may need to add these lines to /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 - - elog - elog "Zabbix will be officially supporting database upgrades from" - elog "2.0.0rc3 to the final 2.0.0 release when it is available." - elog "At some point, there should be some support for upgrading from 1.8.x" - elog "to a 2.0.x release." - elog - elog "Note that this is the first gentoo ebuild for 2.0.x and likely" - elog "will need further tuning with bumps/revisions as bugs are closed." - elog - elog "Zabbix is incompatible with fping 3.0 - (Zabbix bug #ZBX-4894)." - elog - elog "Feel free to download or contribute gentoo specific zabbix templates" - elog "via https://github.com/deploylinux/gentooZabbixTemplates (WIP). We may" - elog "eventually create a seperate package in portage for them." - - # 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 use server || use 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() { - - local myconf - - if use odbc && use iodbc ; then - myconf="${myconf} --with-iodbc --without-unixodbc" - elif use odbc && ! use iodbc; then - myconf="${myconf} --with-unixodbc --without-iodbc" - else - myconf="${myconf} --without-unixodbc --without-iodbc" - fi - - econf \ - $myconf \ - $(use_enable server) \ - $(use_enable proxy) \ - $(use_enable agent) \ - $(use_enable ipv6) \ - $(use_enable static) \ - $(use_enable java) \ - $(use_with ldap) \ - $(use_with snmp net-snmp) \ - $(use_with mysql) \ - $(use_with postgres postgresql) \ - $(use_with oracle) \ - $(use_with sqlite 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 use server; then - insinto /etc/zabbix - doins \ - "${FILESDIR}/1.6.6"/zabbix_server.conf \ - "${FILESDIR}/1.6.6"/zabbix_trapper.conf - doinitd \ - "${FILESDIR}/2.0"/init.d/zabbix-server - dosbin \ - src/zabbix_server/zabbix_server - dodir \ - /usr/share/zabbix - insinto /usr/share/zabbix - doins -r \ - database \ - upgrades - 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 use 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 - insinto /usr/share/zabbix - doins -r \ - database \ - create - fi - - if use agent; then - insinto /etc/zabbix - doins \ - "${FILESDIR}/1.6.6"/zabbix_agent.conf \ - "${FILESDIR}/1.6.6"/zabbix_agentd.conf - doinitd \ - "${FILESDIR}/2.0"/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 \ - conf/zabbix_agent.conf \ - conf/zabbix_agentd.conf \ - conf/zabbix_proxy.conf \ - conf/zabbix_agentd/userparameter_examples.conf \ - conf/zabbix_agentd/userparameter_mysql.conf \ - conf/zabbix_server.conf - - if use 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 - - if use java; then - dodir \ - /${ZABBIXJAVA_BASE} \ - /${ZABBIXJAVA_BASE}/bin \ - /${ZABBIXJAVA_BASE}/lib - keepdir /${ZABBIXJAVA_BASE} - exeinto /${ZABBIXJAVA_BASE}/bin - doexe src/zabbix_java/bin/zabbix-java-gateway-2.0.0rc3.jar - exeinto /${ZABBIXJAVA_BASE}/lib - doexe \ - src/zabbix_java/lib/logback-classic-0.9.27.jar \ - src/zabbix_java/lib/logback-console.xml \ - src/zabbix_java/lib/logback-core-0.9.27.jar \ - src/zabbix_java/lib/logback.xml \ - src/zabbix_java/lib/org-json-2010-12-28.jar \ - src/zabbix_java/lib/slf4j-api-1.6.1.jar - exeinto /${ZABBIXJAVA_BASE}/ - src/zabbix_java/settings.sh \ - src/zabbix_java/startup.sh \ - src/zabbix_java/shutdown.sh - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE} - fi - -} diff --git a/net-analyzer/zabbix/zabbix-2.0.1_rc2.ebuild b/net-analyzer/zabbix/zabbix-2.0.1.ebuild index a1ba38fd4531..41735c6c0f3b 100644 --- a/net-analyzer/zabbix/zabbix-2.0.1_rc2.ebuild +++ b/net-analyzer/zabbix/zabbix-2.0.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $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 $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-2.0.1.ebuild,v 1.1 2012/07/02 05:43:41 mattm Exp $ EAPI="2" @@ -15,7 +15,7 @@ SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" WEBAPP_MANUAL_SLOT="yes" -KEYWORDS="" +KEYWORDS="~amd64 ~x86" IUSE="agent java curl frontend ipv6 jabber ldap mysql openipmi oracle postgres proxy server ssh snmp sqlite iodbc odbc static" COMMON_DEPEND="snmp? ( net-analyzer/net-snmp ) @@ -128,7 +128,7 @@ pkg_postinst() { elog "Have a look at /usr/share/zabbix for" elog "database creation and upgrades." elog - elog "Execute schema, images, and data sql files in order." + elog "Execute schema, images, and data sql files in that order." elog elog "For more info read the Zabbix manual at" elog "http://www.zabbix.com/documentation.php" @@ -175,15 +175,6 @@ pkg_postinst() { elog "zabbix-trapper 10051/udp Zabbix Trapper" elog - elog - elog "Zabbix will be officially supporting database upgrades from" - elog "2.0.0rc3 to the final 2.0.0 release when it is available." - elog "At some point, there should be some support for upgrading from 1.8.x" - elog "to a 2.0.x release." - elog - elog "Note that this is the first gentoo ebuild for 2.0.x and likely" - elog "will need further tuning with bumps/revisions as bugs are closed." - elog elog "Zabbix is incompatible with fping 3.0 - (Zabbix bug #ZBX-4894)." elog elog "Feel free to download or contribute gentoo specific zabbix templates" |