net-analyzer/ndoutils: replace virtual/mysql build-time dependency.
authorMichael Orlitzky <mjo@gentoo.org>
Sat, 22 Sep 2018 22:50:58 +0000 (18:50 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Sun, 23 Sep 2018 01:27:01 +0000 (21:27 -0400)
The ndoutils build system (m4/np_mysqlclient.m4) requires the
mysql_config program at build time but doesn't require any of the
other server files to be present Per bug 665954, I've replaced the
virtual/mysql DEPEND with dev-db/mysql-connector-c.

The mysql virtual is still used in RDEPEND because, as far as I know,
either server is still supported at runtime regardless of the client
library in use.

In an unrelated change, two symlinks were made relative to please
repoman. Their targets were also made executable, since otherwise
you can't run them via the symlinks.

Closes: https://bugs.gentoo.org/665954
Package-Manager: Portage-2.3.40, Repoman-2.3.9

net-analyzer/ndoutils/ndoutils-2.1.3-r1.ebuild [moved from net-analyzer/ndoutils/ndoutils-2.1.3.ebuild with 85% similarity]

similarity index 85%
rename from net-analyzer/ndoutils/ndoutils-2.1.3.ebuild
rename to net-analyzer/ndoutils/ndoutils-2.1.3-r1.ebuild
index 1872b7849d8ddeb91f7ad16ff1cb767c41dd489a..57a0389779bc517a9e15c1572fd03c145e23d293 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -14,11 +14,12 @@ KEYWORDS="~amd64 ~ppc ~x86"
 
 # We require the "nagios" user from net-analyzer/nagios-core at build
 # time.
-DEPEND="dev-perl/DBD-mysql
+DEPEND="dev-db/mysql-connector-c
+       dev-perl/DBD-mysql
        dev-perl/DBI
-       >=net-analyzer/nagios-core-4
+       >=net-analyzer/nagios-core-4"
+RDEPEND="${DEPEND}
        virtual/mysql"
-RDEPEND="${DEPEND}"
 
 S="${WORKDIR}/${PN}-${P}"
 
@@ -74,12 +75,17 @@ src_install() {
        # The documentation isn't installed by the build system
        dodoc -r docs/html
 
-       # Use symlinks because the installdb/upgradedb scripts use relative
-       # paths to the SQL queries.
        insinto "/usr/share/${PN}"
        doins -r db
-       dosym "/usr/share/${PN}/db/installdb" /usr/bin/ndoutils-installdb
-       dosym "/usr/share/${PN}/db/upgradedb" /usr/bin/ndoutils-upgradedb
+
+       # These need to be executable...
+       exeinto "/usr/share/${PN}/db"
+       doexe db/{installdb,prepsql,upgradedb}
+
+       # Use symlinks because the installdb/upgradedb scripts use relative
+       # paths to the SQL queries.
+       dosym "../share/${PN}/db/installdb" /usr/bin/ndoutils-installdb
+       dosym "../share/${PN}/db/upgradedb" /usr/bin/ndoutils-upgradedb
 }
 
 pkg_postinst() {