summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Marlowe <mattm@gentoo.org>2013-12-17 19:22:32 +0000
committerMatthew Marlowe <mattm@gentoo.org>2013-12-17 19:22:32 +0000
commit72f0b354b002a20a96feaed151350566ab07af27 (patch)
tree5108bbe64dee3faafe1deae198e5eb085792e76d /net-analyzer
parentsci-physics/lammps: Adding recent versions of the code. (diff)
downloadhistorical-72f0b354b002a20a96feaed151350566ab07af27.tar.gz
historical-72f0b354b002a20a96feaed151350566ab07af27.tar.bz2
historical-72f0b354b002a20a96feaed151350566ab07af27.zip
Remove all ebuilds known to have security vulnernabilities.
Removed Zabbix 2.2.0 from package mask, no bugs entered for it over last several weeks, ready to enter testing tree - marked ~amd64/~x86. Current stable is 2.0.9-r1, which upstream made some other additional changes to and released as 2.0.10. Package-Manager: portage-2.1.12.2/cvs/Linux x86_64 Manifest-Sign-Key: 0x786037A7
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/zabbix/ChangeLog10
-rw-r--r--net-analyzer/zabbix/Manifest30
-rw-r--r--net-analyzer/zabbix/zabbix-2.0.9.ebuild394
-rw-r--r--net-analyzer/zabbix/zabbix-2.0.9_rc1-r2.ebuild395
-rw-r--r--net-analyzer/zabbix/zabbix-2.0.9_rc1-r3.ebuild394
-rw-r--r--net-analyzer/zabbix/zabbix-2.2.0-r4.ebuild4
6 files changed, 21 insertions, 1206 deletions
diff --git a/net-analyzer/zabbix/ChangeLog b/net-analyzer/zabbix/ChangeLog
index ea71d6a2bede..493c4bf62e44 100644
--- a/net-analyzer/zabbix/ChangeLog
+++ b/net-analyzer/zabbix/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-analyzer/zabbix
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v 1.150 2013/12/10 13:23:28 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v 1.151 2013/12/17 19:22:21 mattm Exp $
+
+ 17 Dec 2013; Matthew Marlowe <mattm@gentoo.org> -zabbix-2.0.9.ebuild,
+ -zabbix-2.0.9_rc1-r2.ebuild, -zabbix-2.0.9_rc1-r3.ebuild,
+ zabbix-2.2.0-r4.ebuild:
+ Remove all ebuilds known to have security vulnernabilities. Removed Zabbix
+ 2.2.0 from package mask, no bugs entered for it over last several weeks, ready
+ to enter testing tree - marked ~amd64/~x86. Current stable is 2.0.9-r1, which
+ upstream made some other additional changes to and released as 2.0.10.
10 Dec 2013; Agostino Sarubbo <ago@gentoo.org> zabbix-2.0.9-r1.ebuild:
Stable for x86, wrt bug #493250
diff --git a/net-analyzer/zabbix/Manifest b/net-analyzer/zabbix/Manifest
index 36d9e7994b3f..f29e437f98be 100644
--- a/net-analyzer/zabbix/Manifest
+++ b/net-analyzer/zabbix/Manifest
@@ -1,5 +1,5 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
+Hash: SHA256
AUX 1.4.6/init.d/zabbix-agentd 581 SHA256 5afaed3880c7f8d1a13d51d963f2758a0bc3ec982c667cc2aad9c84d44753452 SHA512 4d29435590d42374dc7428f09617ddbcc6e551850651f4d057a20b39689c041dcf3966b18efcec1c4478e44b9995ec3c55b1f3d3e27ba9ff5b96f0aef076da7a WHIRLPOOL 197096795bdb5387f62687b52894d86a10002a4e9bab11b28a71c3f0e575daebe6827d14b48983c9c0c3f49491a12751789ccc43e7e0e4e80ad60aac156eaf23
AUX 1.4.6/init.d/zabbix-server 563 SHA256 8c2bc6b7dc1fb80e6b24536f7acb7ba102975b345da055cc19e33adfcdb95976 SHA512 897134b640ed2bd070fa3c29b9fdda368f6451179908fcd00aa2ee8710ea64556e6fcc1592e40a7050b323b56b67837004c1411c326ff4024f949089f980429b WHIRLPOOL e84983ddd78c29f76d8aed51b54f63db70a00637b6102cab065e36178c01f227770e19d999e0fae201ea266178221f40e141fb010f8171c787e2d78da6767372
@@ -41,29 +41,19 @@ AUX 2.2/zabbix_proxy.conf 11353 SHA256 65f4a096489c0c5b416d7cceaed3d3e5ec922d0a7
AUX 2.2/zabbix_server.conf 12145 SHA256 31f87d3f6f403dbb3b64bd841a0e2b16cbab388c73d46cf6984cf827431a4e66 SHA512 d53801446011d36ede4821207dd507b50d3b8ebc29d54f9a4d9bfc2814746c73b7fc43156a940c3bd154776cb1b358853727e931eff68a9d1fcd9549c10c6e77 WHIRLPOOL 461c96dbcfa272e8eccc7e2163ba7904bde7e4a88e9770f104bb172c771f7ff44c843241857198ba431fd91236070a5db64b57c3f628ec386b4ec1ce033f18e1
AUX zabbix-1.8.9-as-needed.patch 2737 SHA256 1c9b85c0a9d9161f983a590df387341c5168f254deb9f2cf858886a2e6e8aec1 SHA512 9ba379e8088697f26f29ac31f2c5e8cad8e0709993285afe9e390f63150ec09fab46089e3f29f2d6a818bf55042c39646ce19840498355fd6df43b1834c6078d WHIRLPOOL bc4728cf9e14284b91b45627090e45d39f53a721ba46d9379418d650d22732994bec11046d64d0f0136932d4f4e2f0c29de68f527db9d9f765f0245f1d39288f
DIST zabbix-2.0.9.tar.gz 13648392 SHA256 d5ef1ea94f6f09992a7f1f6fb9b58f99c3bca6196c5454ad29fa63c03996ee14 SHA512 60ed4ea76aa60032a70a5870f7db78c0675eab1108043049cc3c2788b21c521f3cf4f87801a905270201120a44af95bf3b653b02b11abafac360553c6a8d6070 WHIRLPOOL e49696c685b96e5d96c1a861d18d401e5d544f1aae0a8ece387635b7963e6b757f756e32d5867d073398c7e4b47577762363592bc881d7301143afab79418e6a
-DIST zabbix-2.0.9rc1.tar.gz 13648577 SHA256 474ac3a0fb47a0f2dc43667948ae40fbe895ae754ae71377ff084cb33c716db3 SHA512 2d67f5850066c6c932b42a2ca371def9bbc77a52b29e8f98bb116261a94df5aa13160f45a5d5c18a856c5c61a0cdb18d73178701e1ee80e476ad6eeb36110963 WHIRLPOOL 44edc34c4b8f81899e55c4d4b9f68bf6b604df3acd15c1d1a5468c5ac2cca9394cc9091e37dfbe0ca71278aebb7d1df9e622ef799bd8e84944f391b0ff5b058b
DIST zabbix-2.2.0.tar.gz 14252290 SHA256 f436f660866eaf16f9e360c158170f0e7c7251f7a393f9e14d19541161f3465d SHA512 bbc9aa3b6449076e0575f3514c595b740e9699e266402f32e4776f0b0fdf945748e3bc671b590a9678ff364742607dd5789f1a7f6e4efecce252217a7e45b36e WHIRLPOOL 88e8d86e9bd16657ca9ca799a65d1e9c0e5c4b9b57cfc929e96a20fde8d711f87a0e57960a2583cfbfd8797ef0037c246bfbff72d0897d551ed734d684841ae6
EBUILD zabbix-2.0.9-r1.ebuild 10605 SHA256 a538a7f83ef35fafc99a39668c4a77396521e430c98fe7aacc2472bac712b6f1 SHA512 618189f423dccba481c86fe5faaa89b98c1766b8430852895372893245d19c598553db46893bf5c93edc51c618b66b7ca1914a54e9d9681386b18194866f12aa WHIRLPOOL 45771cdefeb8989afe40f06de701374b274d35b398d90b66a173fc10098a90f9cd5dd3c8125faee9c70891dd016cc7bed98c7dbeae1a86429255596c6c65662e
-EBUILD zabbix-2.0.9.ebuild 10558 SHA256 dd62272fb9264814b9f631584ba8885e8881708a81fbed232147a6e8ea29ffaf SHA512 d8d94f1d71712b5419b2f0b7e4bab498fc57008332b53e4e5e7762f6cee1094e59b7f0f76042ca79f510bfc15610b9ad5823c368ab45495b2b441748c8059172 WHIRLPOOL 7c553e38862a05cc5034b1cd0fc956833fb95b54eed464e625dc07d88d9cb128779a178be74560e345f04c44ffafcc941ab6cb5c73a5e31916896f568d8c1818
-EBUILD zabbix-2.0.9_rc1-r2.ebuild 10560 SHA256 f2098014c15d357edf50a590d372a9988598808720939337078cc3c4c9b91c73 SHA512 40353c6b0a72840e1ef251c57e80fcee763daf0308ac4f431f28048a61bff480011e92ffadf4d44b5afc0df0bf30f996775b385ed3b33a71d1e47a4a1e7ab7df WHIRLPOOL 509b5de60c5980787cac831c0b271b2fead29eb3a2711bd9f83750f247fd42ab96c33884be19d319119be3b26bf39926047e67e673644bde47174b05b596053f
-EBUILD zabbix-2.0.9_rc1-r3.ebuild 10569 SHA256 1aec64e76a53c785d84818b05b04fee9c87e462eae00de58b7768a8f8967677d SHA512 9beb3a2666ccaaee823841ff6ce90d5add23d936f001484a471d42a5e213f238dc7b64fbe7c09f6108670276d0b2483723ee6b60c20682aa380a44710d625764 WHIRLPOOL e42b4d43c4d45c85c7b4664b10d9671463dfaaaab5b6fb812f33821d9abd4f6752933af4dac0b3aced48fda62251bdc177f52e67230cfbff636596de05f0c409
-EBUILD zabbix-2.2.0-r4.ebuild 9659 SHA256 a9698752f702fd8c5da6f423722bdcbeef5c8fa91e5ced7e67c1fdca2f389b9d SHA512 b13d803b0c72b57fc6aa6a88789452eb13277b5dfce258f6022f277f545e0b77f3001944f45b1a2d9bf7b4ed7d6224890b89002cca87f12562c21d0aefe9c738 WHIRLPOOL a6cb85cd970b8cd6c7baadf8250ca59ee0daadafb96c87b4b4f2ade8cccc51f56b58d64ec4a93e97be0db92638f9787f8f13d5975dff4190ac92ce1d006fbe03
-MISC ChangeLog 34396 SHA256 9cdf1af55b4e5f1e4597c37082fdab2bc06f25f93f2f3f4e2c392c9cb793d35d SHA512 c9b472fa4ab20b9f2fb13167ad3840e6bd8232c49dad49310f3ae2d9ad715f90059fbe598056739b50964a42603b8d609541363ecedd4be12dd5d56d3a8ea800 WHIRLPOOL 2daf70adbb2733e16af304551cccf5d7c5a3bce3d6f5ed57ea92acb9e0928ba1f3f535092736ab53bc2efb67186d7008a7919d38241bdac760a5147a032a8ed3
+EBUILD zabbix-2.2.0-r4.ebuild 9670 SHA256 e1983a5f1a13f4f151f08662d99cadaed12e37f06e9a584ba4201c480c8bd14f SHA512 7aa3f81c2bcf4976bd65018e07c16a5583742f353faf41ebe657e839087bd79394ec772400f6157c16d7e12e8a8621ca826a71ca6032ff6470d3e5552e2c4b2c WHIRLPOOL 3171fe7fb3bbc86e53c63b136aadb5a0d673bb99d41b615461aed184f837885364f6472ebb2677991ede5409be530e37b988bfd01cba937c834201cb3a06eb37
+MISC ChangeLog 34868 SHA256 f2131a9e905786ff3fc74d727dfec0094109f582266e745441c130fe8119b4fd SHA512 249583ba9e186b11d1481a0376975bba2c4819c0a63381814adcec97cbab79cfef13ec068694e0d9f13642d94c93673dfc5f8f26ad50c0d0842579a1d5afe6db WHIRLPOOL fbba6da248effbe99f94a8fc2b5e57efbfcae0d26549abd4252c4cd214179e320259a0c13d4f4a1259540f3edacf4b4c279088de5dd8d69aa0cd7a9b53654afc
MISC metadata.xml 1221 SHA256 94d1841cf3efb9a709dbc9ee160a29c394a1c0f5af5069fe1466f9f08796c72d SHA512 3d3ed8e75fcd9f521402a9734d5bd19c163a7a5d33cef3b20b6e476416fc352a91a62782ecc0ed032efbafd5f07f6ac08e28a88fb766095a1bba146f8f50b5e5 WHIRLPOOL ae2d69cab99c364721ca2e806fc5e02d1dbe72ad48bea43b4d1a0fd49c00cc2b94ea6ea85f4f5a9ff90522a90ade17fe816fe85ca7a16e755d02239d4426da92
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQIcBAEBCgAGBQJSpxXHAAoJELp701BxlEWfPW4P+wR+H5+fD3sLbWBWcBF5M7yr
-nNONwJL3lIre3CIrdxM6aHkMHk55dq2fWw8xARGgrKIYesn7o9cm3rX5LekbRgKp
-m2eFK2VKF/FmN2yTp3gsSM0dWknk3CxGixB0+0aNJVxQLBn+JId8ZL+93O9p3fXh
-ijhAPBO9CF/LRCzKlT1n1YtHAUdfybRhmi3bfhBS/2QSiXxWnQe/pFAAKJ6X0QO9
-ryqrA9QdpDC+SX3HHMFjDTxiRD7qBef4s7iwW9th/OxKapcBR0HxQCXeeclGTjxD
-BvJCdQOoM8v67vdZ4gj7lZ91r7s5qdjM+rH8l+MP0u8knSTqGGIv6nz6PokXsSsU
-/P//QPaxsIZ3y6VrfJqontAjiTmUpfB/8AdihiHX8C+XLTgSEqdjM52zXRPacDax
-E/SNvPGLitEgZWnujwYsIGz+ZPWZvN6PNzyBofJSj1c1WjXYhL1nVqOZ4LtHMNeG
-kHdN1r19EkD2WqvsNJ3vXSw9PT0SnHvhZm4e3LFPx4Oq9IS6WJZKoQ8Y9VVy357c
-I2r2Dc9e3g7rnifKKJqXlbqoBhUZ8iwpudSAnd6ec042ZgPcOQiwEJZRUY6OGukb
-G3fz2yWHoTy/E8vO2Xq63lmcMM+GqhYZs6q3vzn74Gv46bMpJGr4Cla363hP5n2L
-M9czoEXXODGxBp4woQF7
-=Svyb
+iQEcBAEBCAAGBQJSsKR0AAoJEC1LWXx4YDenz+0H/icsIGiouOPSjOO4lfQaD4Z1
+r9aiRmiddHg9mzym8C7licDB6Z8k0w99aAZ1g0RtNbWLlT5jGlkxtpCOgxMp9K7U
+lEI8kOPm1ulr5poeFFqhl9grcmVJ2aGqAXEoIJhV4P2yYEIJrVTZ460q/tByN/u6
+sDlEXdRMuVXdcHqjpeap4Zf5AuBEWBZvrsZDtFiCJVqylJv0dnepkMNNN002T+j9
+bRVjNEenSuClE88+tkPjV8u+0FhHXkBsQndDJ88u8NJ4b5C4Y5hW6Cm/3dyzxxlQ
+2IO/EIJsb+OLvwp1yoj5r1Sp9hAOqjC3/oqEwDkVXOsTRxjUXo2TMKeQQ+0LwBk=
+=xzRN
-----END PGP SIGNATURE-----
diff --git a/net-analyzer/zabbix/zabbix-2.0.9.ebuild b/net-analyzer/zabbix/zabbix-2.0.9.ebuild
deleted file mode 100644
index 4902d4a14b43..000000000000
--- a/net-analyzer/zabbix/zabbix-2.0.9.ebuild
+++ /dev/null
@@ -1,394 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-2.0.9.ebuild,v 1.2 2013/11/27 10:16:53 mattm Exp $
-
-EAPI="5"
-
-# needed to make webapp-config dep optional
-WEBAPP_OPTIONAL="yes"
-inherit flag-o-matic webapp depend.php autotools java-pkg-opt-2 user toolchain-funcs
-
-DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers."
-HOMEPAGE="http://www.zabbix.com/"
-MY_P=${P/_/}
-MY_PV=${PV/_/}
-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 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,sysvipc,unicode]
- || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
- media-libs/gd[png]
- app-admin/webapp-config )"
-DEPEND="${COMMON_DEPEND}
- virtual/pkgconfig"
-
-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() {
- epatch "${FILESDIR}/2.0/patches/zbx282.patch"
- 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 that 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 "Feel free to download or contribute gentoo specific zabbix templates"
- elog "via https://github.com/deploylinux/gentooZabbixTemplates (WIP)."
-
- # 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
- chmod 0750 \
- "${ROOT}"/etc/zabbix \
- "${ROOT}"/var/lib/zabbix \
- "${ROOT}"/var/lib/zabbix/home \
- "${ROOT}"/var/lib/zabbix/scripts \
- "${ROOT}"/var/log/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
- ;;
- 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
-
- keepdir \
- /etc/zabbix \
- /var/lib/zabbix \
- /var/lib/zabbix/home \
- /var/lib/zabbix/scripts \
- /var/log/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
- #remove unneeded files left over from wholesale copy (bug #433708)
- rm "${ED}"/usr/share/zabbix/{database,upgrades}/Makefile{,.in,.am}
- 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}/2.0"/init.d/zabbix-proxy
- dosbin \
- src/zabbix_proxy/zabbix_proxy
- insinto /etc/zabbix
- doins \
- "${FILESDIR}/2.0"/zabbix_proxy.conf
- dodir \
- /usr/share/zabbix
- insinto /usr/share/zabbix
- doins -r \
- database \
- upgrades
- 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
- fperms 0750 \
- /etc/zabbix \
- /var/lib/zabbix \
- /var/lib/zabbix/home \
- /var/lib/zabbix/scripts \
- /var/log/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-${MY_PV}.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}/
- doexe \
- src/zabbix_java/settings.sh \
- src/zabbix_java/startup.sh \
- src/zabbix_java/shutdown.sh
- fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
- fi
-
-}
-
-src_compile() {
- if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
- emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
- fi
-}
diff --git a/net-analyzer/zabbix/zabbix-2.0.9_rc1-r2.ebuild b/net-analyzer/zabbix/zabbix-2.0.9_rc1-r2.ebuild
deleted file mode 100644
index d7373bd7584c..000000000000
--- a/net-analyzer/zabbix/zabbix-2.0.9_rc1-r2.ebuild
+++ /dev/null
@@ -1,395 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-2.0.9_rc1-r2.ebuild,v 1.5 2013/10/13 10:32:02 ago Exp $
-
-EAPI="5"
-
-# needed to make webapp-config dep optional
-WEBAPP_OPTIONAL="yes"
-inherit flag-o-matic webapp depend.php autotools java-pkg-opt-2 user toolchain-funcs
-
-DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers."
-HOMEPAGE="http://www.zabbix.com/"
-MY_P=${P/_/}
-MY_PV=${PV/_/}
-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 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,sysvipc,unicode]
- || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
- media-libs/gd[png]
- app-admin/webapp-config )"
-DEPEND="${COMMON_DEPEND}
- virtual/pkgconfig"
-
-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() {
- epatch "${FILESDIR}/2.0/patches/zbx282.patch"
- 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 that 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 "Feel free to download or contribute gentoo specific zabbix templates"
- elog "via https://github.com/deploylinux/gentooZabbixTemplates (WIP)."
-
- # 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
- chmod 0750 \
- "${ROOT}"/etc/zabbix \
- "${ROOT}"/var/lib/zabbix \
- "${ROOT}"/var/lib/zabbix/home \
- "${ROOT}"/var/lib/zabbix/scripts \
- "${ROOT}"/var/log/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
- ;;
- 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
-
- keepdir \
- /etc/zabbix \
- /var/lib/zabbix \
- /var/lib/zabbix/home \
- /var/lib/zabbix/scripts \
- /var/log/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
- #remove unneeded files left over from wholesale copy (bug #433708)
- rm "${ED}"/usr/share/zabbix/{database,upgrades}/Makefile{,.in,.am}
-
- 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}/2.0"/init.d/zabbix-proxy
- dosbin \
- src/zabbix_proxy/zabbix_proxy
- insinto /etc/zabbix
- doins \
- "${FILESDIR}/2.0"/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
- fperms 0750 \
- /etc/zabbix \
- /var/lib/zabbix \
- /var/lib/zabbix/home \
- /var/lib/zabbix/scripts \
- /var/log/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-${MY_PV}.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}/
- doexe \
- src/zabbix_java/settings.sh \
- src/zabbix_java/startup.sh \
- src/zabbix_java/shutdown.sh
- fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
- fi
-
-}
-
-src_compile() {
- if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
- emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
- fi
-}
diff --git a/net-analyzer/zabbix/zabbix-2.0.9_rc1-r3.ebuild b/net-analyzer/zabbix/zabbix-2.0.9_rc1-r3.ebuild
deleted file mode 100644
index 9787b00bdb82..000000000000
--- a/net-analyzer/zabbix/zabbix-2.0.9_rc1-r3.ebuild
+++ /dev/null
@@ -1,394 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-2.0.9_rc1-r3.ebuild,v 1.3 2013/10/05 03:12:50 zerochaos Exp $
-
-EAPI="5"
-
-# needed to make webapp-config dep optional
-WEBAPP_OPTIONAL="yes"
-inherit flag-o-matic webapp depend.php autotools java-pkg-opt-2 user toolchain-funcs
-
-DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers."
-HOMEPAGE="http://www.zabbix.com/"
-MY_P=${P/_/}
-MY_PV=${PV/_/}
-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 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,sysvipc,unicode]
- || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
- media-libs/gd[png]
- app-admin/webapp-config )"
-DEPEND="${COMMON_DEPEND}
- virtual/pkgconfig"
-
-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() {
- epatch "${FILESDIR}/2.0/patches/zbx282.patch"
- 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 that 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 "Feel free to download or contribute gentoo specific zabbix templates"
- elog "via https://github.com/deploylinux/gentooZabbixTemplates (WIP)."
-
- # 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
- chmod 0750 \
- "${ROOT}"/etc/zabbix \
- "${ROOT}"/var/lib/zabbix \
- "${ROOT}"/var/lib/zabbix/home \
- "${ROOT}"/var/lib/zabbix/scripts \
- "${ROOT}"/var/log/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
- ;;
- 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
-
- keepdir \
- /etc/zabbix \
- /var/lib/zabbix \
- /var/lib/zabbix/home \
- /var/lib/zabbix/scripts \
- /var/log/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
- #remove unneeded files left over from wholesale copy (bug #433708)
- rm "${ED}"/usr/share/zabbix/{database,upgrades}/Makefile{,.in,.am}
- 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}/2.0"/init.d/zabbix-proxy
- dosbin \
- src/zabbix_proxy/zabbix_proxy
- insinto /etc/zabbix
- doins \
- "${FILESDIR}/2.0"/zabbix_proxy.conf
- dodir \
- /usr/share/zabbix
- insinto /usr/share/zabbix
- doins -r \
- database \
- upgrades
- 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
- fperms 0750 \
- /etc/zabbix \
- /var/lib/zabbix \
- /var/lib/zabbix/home \
- /var/lib/zabbix/scripts \
- /var/log/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-${MY_PV}.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}/
- doexe \
- src/zabbix_java/settings.sh \
- src/zabbix_java/startup.sh \
- src/zabbix_java/shutdown.sh
- fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
- fi
-
-}
-
-src_compile() {
- if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
- emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
- fi
-}
diff --git a/net-analyzer/zabbix/zabbix-2.2.0-r4.ebuild b/net-analyzer/zabbix/zabbix-2.2.0-r4.ebuild
index a209b7a34ad9..27d7d8613ab3 100644
--- a/net-analyzer/zabbix/zabbix-2.2.0-r4.ebuild
+++ b/net-analyzer/zabbix/zabbix-2.2.0-r4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-2.2.0-r4.ebuild,v 1.1 2013/12/03 19:28:19 mattm Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-2.2.0-r4.ebuild,v 1.2 2013/12/17 19:22:21 mattm Exp $
EAPI="5"
@@ -16,7 +16,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 libxml2 mysql openipmi oracle postgres proxy server ssh snmp sqlite odbc static"
COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )