Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500394 - net-analyzer/zabbix should install database creation scripts
Summary: net-analyzer/zabbix should install database creation scripts
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Marlowe (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-05 17:47 UTC by Peter Wilmott (RETIRED)
Modified: 2014-05-14 06:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Wilmott (RETIRED) gentoo-dev 2014-02-05 17:47:48 UTC
With zabbix-2.0 database creation scripts (https://www.zabbix.com/documentation/2.2/manual/appendix/install/db_scripts) got installed to /usr/share/zabbix/database. This does not appear to be the case with zabbix-2.2



Reproducible: Always

Steps to Reproduce:
1. emerge -av =net-analyzer/zabbix-2.2.0-r4
2. ls /usr/share/zabbix/database


Actual Results:  
/usr/share/zabbix/database is empty



Expected Results:  
/usr/share/zabbix/database should contain database creation scripts
Comment 1 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2014-02-12 09:18:28 UTC
This patch should install database creation script:

--- /usr/portage/net-analyzer/zabbix/zabbix-2.2.0-r4.ebuild     2013-12-18 04:31:25.000000000 +0900
+++ zabbix-2.2.1.ebuild 2014-02-12 18:06:17.000000000 +0900
@@ -256,6 +256,8 @@ src_install() {
                dosbin src/zabbix_server/zabbix_server
                fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
                fperms 0640 /etc/zabbix/zabbix_server.conf
+               dodir /usr/share/zabbix
+               cp -R "${S}/database/" "${D}"/usr/share/zabbix/
        fi
 
        if use proxy; then
Comment 2 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2014-02-13 10:28:56 UTC
Because is the database directory is needed also if only the proxy is installed

--- /usr/portage/net-analyzer/zabbix/zabbix-2.2.0-r4.ebuild     2013-12-18 04:31:25.000000000 +0900
+++ zabbix-2.2.2.ebuild 2014-02-13 19:15:38.000000000 +0900
@@ -256,6 +256,8 @@ src_install() {
                dosbin src/zabbix_server/zabbix_server
                fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
                fperms 0640 /etc/zabbix/zabbix_server.conf
+               dodir /usr/share/zabbix
+               cp -R "${S}/database/" "${D}"/usr/share/zabbix/
        fi
 
        if use proxy; then
@@ -266,6 +268,8 @@ src_install() {
                insinto /etc/zabbix
                doins \
                        "${FILESDIR}/2.2"/zabbix_proxy.conf
+               dodir /usr/share/zabbix
+               cp -R "${S}/database/" "${D}"/usr/share/zabbix/
        fi
 
        if use agent; then
Comment 3 cyberbat 2014-05-04 11:01:42 UTC
Update for current 2.2.2-r1 ebuild:

--- /usr/portage/net-analyzer/zabbix/zabbix-2.2.2-r1.ebuild     2014-04-13 15:55:26.000000000 +0400
+++ zabbix-2.2.3.ebuild 2014-05-04 14:59:21.833792270 +0400
@@ -255,6 +255,8 @@
                dosbin src/zabbix_server/zabbix_server
                fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
                fperms 0640 /etc/zabbix/zabbix_server.conf
+               dodir /usr/share/zabbix
+               cp -R "${S}/database/" "${D}"/usr/share/zabbix/
                systemd_dounit "${FILESDIR}/zabbix-server.service"
                systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
        fi
@@ -267,6 +269,8 @@
                insinto /etc/zabbix
                doins \
                        "${FILESDIR}/2.2"/zabbix_proxy.conf
+               dodir /usr/share/zabbix
+               cp -R "${S}/database/" "${D}"/usr/share/zabbix/
                systemd_dounit "${FILESDIR}/zabbix-proxy.service"
                systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
        fi
Comment 4 Matthew Marlowe (RETIRED) gentoo-dev 2014-05-14 06:02:21 UTC
Looks like fixing of a previous bug complaining about makefiles in /usr/share/zabbix somehow stopped the install of /usr/share/zabbix/database scripts. Hopefully fixed in 2.2.3 which was just added to cvs.