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
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
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
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
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.