summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2018-09-12 13:10:15 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2018-09-12 13:10:15 -0500
commitcb1320023c4b367677cb90fee9cfdfc5099e3bdc (patch)
tree7812962648bf956d6782603d3331f7292d7e1106 /net-analyzer/icinga2
parentnet-analyzer/icinga2: update mysql/maria depend (diff)
downloadgentoo-cb1320023c4b367677cb90fee9cfdfc5099e3bdc.tar.gz
gentoo-cb1320023c4b367677cb90fee9cfdfc5099e3bdc.tar.bz2
gentoo-cb1320023c4b367677cb90fee9cfdfc5099e3bdc.zip
net-analyzer/icinga2: more mysql/maria updates
Bug: https://bugs.gentoo.org/665944 Package-Manager: Portage-2.3.48, Repoman-2.3.10
Diffstat (limited to 'net-analyzer/icinga2')
-rw-r--r--net-analyzer/icinga2/icinga2-9999.ebuild19
-rw-r--r--net-analyzer/icinga2/metadata.xml1
2 files changed, 13 insertions, 7 deletions
diff --git a/net-analyzer/icinga2/icinga2-9999.ebuild b/net-analyzer/icinga2/icinga2-9999.ebuild
index 275130c94d61..c0f291e4ea22 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 b03390bc2e50..73dade688729 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>