From 600a27a2e5c69a9aacc63220715075111106f6cd Mon Sep 17 00:00:00 2001 From: Matthew Marlowe Date: Sat, 1 Oct 2011 01:23:53 +0000 Subject: Bump for minor production update to 1.8.8, removed temp old ebuild 1.8.6_rc1 Package-Manager: portage-2.1.10.19/cvs/Linux x86_64 --- net-analyzer/zabbix/ChangeLog | 7 +- net-analyzer/zabbix/Manifest | 22 +- net-analyzer/zabbix/zabbix-1.8.6_rc1.ebuild | 317 ---------------------------- net-analyzer/zabbix/zabbix-1.8.8.ebuild | 314 +++++++++++++++++++++++++++ 4 files changed, 332 insertions(+), 328 deletions(-) delete mode 100644 net-analyzer/zabbix/zabbix-1.8.6_rc1.ebuild create mode 100644 net-analyzer/zabbix/zabbix-1.8.8.ebuild (limited to 'net-analyzer/zabbix') diff --git a/net-analyzer/zabbix/ChangeLog b/net-analyzer/zabbix/ChangeLog index 5a2de10bdd30..c64a223985c8 100644 --- a/net-analyzer/zabbix/ChangeLog +++ b/net-analyzer/zabbix/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/zabbix # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v 1.60 2011/09/01 17:35:31 mattm Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/ChangeLog,v 1.61 2011/10/01 01:23:53 mattm Exp $ + +*zabbix-1.8.8 (01 Oct 2011) + + 01 Oct 2011; Matthew Marlowe +zabbix-1.8.8.ebuild: + Bump for minor production update to version 1.8.8 *zabbix-1.8.7 (01 Sep 2011) diff --git a/net-analyzer/zabbix/Manifest b/net-analyzer/zabbix/Manifest index e2091e32b2d7..4d3c2bee24c2 100644 --- a/net-analyzer/zabbix/Manifest +++ b/net-analyzer/zabbix/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 +Hash: SHA1 AUX 1.4.6/init.d/zabbix-agentd 582 RMD160 051a6bf6e8d8181258f99ddb3964881ff78d0954 SHA1 757d60d5f681ea9dd2c32347f6eb787d2c23a5ce SHA256 e6b10adda63ff234bd3c11fd19fd30970dcbda292b2fcfa1c382d9d0b7a795f1 AUX 1.4.6/init.d/zabbix-server 564 RMD160 f05bfbcbfc163db19076656e995ddc72fbb7a78e SHA1 141f08ae3966fd935df89589eea62554c3b69bb3 SHA256 eb5ea05e53d8bbf502cf3f6b873c9275dba793446b0f5ab11ed7a169d757b3c9 @@ -30,25 +30,27 @@ AUX zabbix-as-needed.patch 2296 RMD160 2f369ec35e3245d191433613dc5e82fc4a21f2e0 DIST zabbix-1.8.3.tar.gz 4106152 RMD160 f0d54c1cd8865c952945a8ec3958e7ebdd9a92d5 SHA1 68f5d1f12897bc69c6ff5deea2bad82b0c1f5761 SHA256 37262d751c9661a361380bf1480d277d81621d8a49c60a81667cbe258021065c DIST zabbix-1.8.5.tar.gz 4184672 RMD160 200e1cdddb0f7149c7cfb62237a46a563054f95e SHA1 655f5c7381139ec97d23df4cce0469e1e032c54d SHA256 885b9f1953c3f6aa1f13760340b3d23d6e01287dc46e6e241c964aec7a38ef32 DIST zabbix-1.8.6.tar.gz 4204545 RMD160 925b43dba17bdbeb3967b335c2da264bda09996f SHA1 03c8db65ce5a7face0c2357dc6dab5487231a768 SHA256 9e1b778c17f98b816324332675b910c9ce6e4d184c955b9cee82b6b25371a729 -DIST zabbix-1.8.6rc1.tar.gz 4204542 RMD160 5631b799a9fee9f254f5eee5068ad56a668e119b SHA1 732d9c0b739decb0e39c04c0a1db1edf197404e6 SHA256 d568236b33a2524b7571fbc0f2435806b6c4321c60b46a2de828464fa79b5dd2 DIST zabbix-1.8.7.tar.gz 4211376 RMD160 7de7e7d90d6b08bc070a1f44c14c626c74fca429 SHA1 48a5d02ea127b7cab619187d3cbab33294f636ee SHA256 2d2929802b042a90bb91b9ca81aa4190a69b8fa67e10645353c739787df2479c +DIST zabbix-1.8.8.tar.gz 4213181 RMD160 efaef4f3fcde09e5dd0ee2bea90db3a56f4dbc66 SHA1 3f98c6f8883340d49395a957b803a6dd3a7bd154 SHA256 25eded2536213cf1c75631f2becf46349b915dd8782698f5b2936f5abb7eeb99 DIST zabbix-1.9.4.tar.gz 5582992 RMD160 b08252a3ee7860b7239596bb95b7dcf4d08cf529 SHA1 17dba347592b1aee833dbb3f68b76556cb6a1f39 SHA256 2ebb6db448da9b8c4041e63af9ed45b53124a89b5a6e84b2ba842d0b6c36d954 DIST zabbix-1.9.5.tar.gz 6321068 RMD160 ec607d019d926e44d4755afca331bef190386217 SHA1 c9d03641984409e6df829c8d3369dc6f9c50a942 SHA256 311b1756da32949c1d3ebaa17ee60eb364b8892b60290417cfa68a281e6834c5 EBUILD zabbix-1.8.3.ebuild 8118 RMD160 f256bdf8b859a37dfa49178765cd9a0666a927fc SHA1 65ced1c2a92225849956618db9b3474564938bc1 SHA256 3f55306944c6d1ec5adbc1b1ade1aea196c02cd32c05d2f52486690018c13c77 EBUILD zabbix-1.8.5.ebuild 8124 RMD160 0a3c1c36db5bb3c7c3f384c5cd9a8e39fe9d798e SHA1 7651512da9bdc4a081f3bfa594dd69fe34ab439c SHA256 48012774399ac86849b615b40d05c30a6d2fdf7118ccebdb264df61626bb9c6c EBUILD zabbix-1.8.6.ebuild 8122 RMD160 e03017a44059f6affe79bf1e36fce72ba32913ae SHA1 6cc45f8cb947efb540e1cc89cc5ba9cf5a5155d6 SHA256 613c10b78fd9413c4c70f90f068b16e267334ea709c5d5ff22499703eeb6dc54 -EBUILD zabbix-1.8.6_rc1.ebuild 8154 RMD160 4dfb3586b394ed8211887d7656eb849bf4406c73 SHA1 b8b8ea041912afd71d01864ad399af1e0ea1768f SHA256 98a71072e455bfbf7ba862490eb7b580df052cfce9b98b56ad69525aae50ffe3 EBUILD zabbix-1.8.7.ebuild 8121 RMD160 58bd33e9f8ac609abfa0171155435af7f301c7f7 SHA1 40c42e8a0f4d39196d87c0da671dbb8841c2bc91 SHA256 3ac6f98cd3803419eae50b801de8a6de8ea3cff03121b431c6004f57a033db22 +EBUILD zabbix-1.8.8.ebuild 8121 RMD160 5bb4ca5dd45068a25c349798425102f969554f0a SHA1 61aab36c053d5e83b095ff24d9f930247fec94ee SHA256 2c671d83a6bd0d7cba10713847d745a080090c8341adca7395c66a2be551a3ee EBUILD zabbix-1.9.4.ebuild 8115 RMD160 18c3265f38f04a844787a4182669b330c473d170 SHA1 c12cdd8d1b02e191058e9382c1e2deb402d885c0 SHA256 31f60b965a9051cc9ad7e32f94fb249fd4542a07488ee21b838b4ae3da85cdbf EBUILD zabbix-1.9.5.ebuild 8115 RMD160 ec34aa9a3b211e61e96867421fb0fdd14c367681 SHA1 59900f4498d454c59afc153ca424ac1fa21a274c SHA256 e48d6ed515fdf854c3572486c66305cdcec8c8c31ca2565a6ba1eec7429821d6 -MISC ChangeLog 12605 RMD160 3845fbefe3199749b8b5332b829de5209d00180b SHA1 0868ee4d93b6b051d0b9c299e0b0736e3c9e2355 SHA256 83c90fc414d6a4efc2e32e3caface69b2afdc6de658de320b3aa68a5536de147 +MISC ChangeLog 12759 RMD160 30aeabfa145e25a12b1747fb2a9c8b1e9ec78a22 SHA1 ba1094b1a718ccd10c8b2d4f74035482b7db823d SHA256 16ee5c51b0face9319c73a38e477d314b7814bf5598c8b4c9399c41b554bedfa MISC metadata.xml 990 RMD160 edaffb17a34b9015c48eaf1ae61ef676b9bfdf63 SHA1 1eb2d630b542283f5460a49327dc93fee2de5663 SHA256 b5f00181c6943bf7dc15acf9b7dd21453d7cc0402a55bb2385b3fc0de6520f6f -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.18 (GNU/Linux) +Version: GnuPG v2.0.17 (GNU/Linux) -iJwEAQEIAAYFAk59p/IACgkQfXuS5UK5QB3akAP/Z/MLHp/ANJnGAw2+w65lra9S -fpzfTgrnjZS0/LcAKlBlfLybJF1Rwn38Lh9I+eEZp3v4QJPutHOY+uqJJke32fpd -mmpxgxrUQhA29SmolyaPEAubgd7VylxzL7kkl8v5gK+fUHq43MsWN6Nlz1/3hUu4 -qKHwHWR5LgAcqY8XY0E= -=zrre +iQEcBAEBAgAGBQJOhmu1AAoJEC1LWXx4YDenNpsH/RXDtlaYsQHQZtFeOm0i7qv3 +zP4n5+w69TBhKcuuGhk8L9rMv6XTGqjWkNd4qfBiaCc4c51Toa4UO17TX/pBoSEm +4NfoQQC2c+tgzyRU+SgeITXp+cVrfSN+y76spR+svAznYeoCJ/W2z9a3iLKWI1fo +0kdxDKD63qC5WRBWKzwhKteyPkwGFSBaNCl2aZyLrPQm4w/IzbkCNrgCbhyFWwMc +8v+25SX967k/8npWNp7RcOu29q0lWxwPzeMe//0ZzfDdrBv9DfaqQq+4VdtljtU6 +aTKQVl7W7X1XFB4hHxdgYLCdcNAoOcv1xuQ85oS3WiD8IRnI4BXEcpXZJUvoZ/U= +=TdqW -----END PGP SIGNATURE----- diff --git a/net-analyzer/zabbix/zabbix-1.8.6_rc1.ebuild b/net-analyzer/zabbix/zabbix-1.8.6_rc1.ebuild deleted file mode 100644 index ecdfb2a7e957..000000000000 --- a/net-analyzer/zabbix/zabbix-1.8.6_rc1.ebuild +++ /dev/null @@ -1,317 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-1.8.6_rc1.ebuild,v 1.2 2011/07/29 22:39:39 patrick Exp $ - -EAPI="2" - -# needed to make webapp-config dep optional -WEBAPP_OPTIONAL="yes" -inherit eutils flag-o-matic webapp depend.php autotools - -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 curl frontend ipv6 jabber ldap mysql openipmi oracle postgres proxy server -ssh snmp +sqlite3" - -S=${WORKDIR}/${MY_P} - -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,truetype,xml,session] - media-libs/gd[png] - app-admin/webapp-config )" -DEPEND="${COMMON_DEPEND} - dev-util/pkgconfig" - -use frontend && need_php_httpd - -src_prepare() { - epatch "${FILESDIR}/${PN}-1.8.3-as-needed.patch" - eautoreconf -} - -pkg_setup() { - if use server || use proxy ; then - local dbnum dbtypes="mysql oracle postgres sqlite3" 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="$(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 use server; then - elog - elog "For distributed monitoring you have to run:" - elog - elog "zabbix_server -n " - 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 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() { - 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 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-1.8.8.ebuild b/net-analyzer/zabbix/zabbix-1.8.8.ebuild new file mode 100644 index 000000000000..2cab7f635692 --- /dev/null +++ b/net-analyzer/zabbix/zabbix-1.8.8.ebuild @@ -0,0 +1,314 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/zabbix-1.8.8.ebuild,v 1.1 2011/10/01 01:23:53 mattm Exp $ + +EAPI="2" + +# needed to make webapp-config dep optional +WEBAPP_OPTIONAL="yes" +inherit eutils flag-o-matic webapp depend.php autotools + +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 ~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,truetype,xml,session] + media-libs/gd[png] + app-admin/webapp-config )" +DEPEND="${COMMON_DEPEND} + dev-util/pkgconfig" + +use frontend && need_php_httpd + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.8.3-as-needed.patch" + eautoreconf +} + +pkg_setup() { + if use server || use proxy ; then + local dbnum dbtypes="mysql oracle postgres sqlite3" 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="$(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 use server; then + elog + elog "For distributed monitoring you have to run:" + elog + elog "zabbix_server -n " + 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 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() { + 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 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 +} -- cgit v1.2.3-65-gdbad