commit: cb1320023c4b367677cb90fee9cfdfc5099e3bdc Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> AuthorDate: Wed Sep 12 18:10:15 2018 +0000 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> CommitDate: Wed Sep 12 18:10:15 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb132002
net-analyzer/icinga2: more mysql/maria updates Bug: https://bugs.gentoo.org/665944 Package-Manager: Portage-2.3.48, Repoman-2.3.10 net-analyzer/icinga2/icinga2-9999.ebuild | 19 ++++++++++++------- net-analyzer/icinga2/metadata.xml | 1 + 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/net-analyzer/icinga2/icinga2-9999.ebuild b/net-analyzer/icinga2/icinga2-9999.ebuild index 275130c94d6..c0f291e4ea2 100644 --- a/net-analyzer/icinga2/icinga2-9999.ebuild +++ b/net-analyzer/icinga2/icinga2-9999.ebuild @@ -18,7 +18,7 @@ HOMEPAGE="http://icinga.org/icinga2" LICENSE="GPL-2" SLOT="0" -IUSE="+mysql postgres classicui console libressl lto mail minimal nano-syntax +plugins systemd +vim-syntax" +IUSE="classicui console libressl lto mail mariadb minimal +mysql nano-syntax +plugins postgres systemd +vim-syntax" WX_GTK_VER="3.0" CDEPEND=" @@ -26,10 +26,8 @@ CDEPEND=" libressl? ( dev-libs/libressl:0= ) >=dev-libs/boost-1.58-r1 console? ( dev-libs/libedit ) - mysql? ( || ( - dev-db/mariadb-connector-c - dev-db/mysql-connector-c ) - ) + mariadb? ( dev-db/mariadb-connector-c:= ) + mysql? ( dev-db/mysql-connector-c:= ) postgres? ( dev-db/postgresql:= ) dev-libs/yajl" @@ -47,7 +45,7 @@ RDEPEND=" mail? ( virtual/mailx ) classicui? ( net-analyzer/icinga[web] )" -REQUIRED_USE="!minimal? ( || ( mysql postgres ) )" +REQUIRED_USE="!minimal? ( || ( mariadb mysql postgres ) )" want_apache2 @@ -118,7 +116,14 @@ src_install() { newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/mysql.sql mysql.sql docinto schema/upgrade dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/upgrade/* - elif use postgres ; then + fi + if use mariadb ; then # same as mysql + docinto schema + newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/mysql.sql mysql.sql + docinto schema/upgrade + dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/upgrade/* + fi + if use postgres ; then docinto schema newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/pgsql.sql pgsql.sql docinto schema/upgrade diff --git a/net-analyzer/icinga2/metadata.xml b/net-analyzer/icinga2/metadata.xml index b03390bc2e5..73dade68872 100644 --- a/net-analyzer/icinga2/metadata.xml +++ b/net-analyzer/icinga2/metadata.xml @@ -10,6 +10,7 @@ <flag name="console">Adds support for line-editing in the console</flag> <flag name="lto">Adds support for link time optimization</flag> <flag name="mail">Allows for mailing of alerts</flag> + <flag name="mariadb">Enable support for the mariadb database backend</flag> <flag name="studio">Adds support for Icinga-studio</flag> <flag name="nano-syntax">Adds support for syntax used in the nano editor</flag> <flag name="plugins">Adds support for nagios plugins</flag>
