|
|
@ -1,4 +1,4 @@ |
|
|
|
# Copyright 1999-2019 Gentoo Authors |
|
|
|
# Copyright 1999-2020 Gentoo Authors |
|
|
|
# Distributed under the terms of the GNU General Public License v2 |
|
|
|
|
|
|
|
EAPI="6" |
|
|
@ -40,6 +40,7 @@ COMMON_DEPEND="snmp? ( net-analyzer/net-snmp ) |
|
|
|
odbc? ( dev-db/unixODBC ) |
|
|
|
server? ( sys-libs/zlib ) |
|
|
|
proxy? ( sys-libs/zlib ) |
|
|
|
server? ( dev-libs/libevent ) |
|
|
|
ssl? ( dev-libs/openssl:=[-bindist] ) |
|
|
|
agent2? ( dev-lang/go )" |
|
|
|
|
|
|
@ -47,8 +48,7 @@ RDEPEND="${COMMON_DEPEND} |
|
|
|
proxy? ( net-analyzer/fping[suid] ) |
|
|
|
server? ( net-analyzer/fping[suid] |
|
|
|
app-admin/webapp-config |
|
|
|
dev-libs/libpcre |
|
|
|
dev-libs/libevent ) |
|
|
|
dev-libs/libpcre ) |
|
|
|
java? ( |
|
|
|
>=virtual/jre-1.4 |
|
|
|
dev-java/slf4j-api |
|
|
@ -70,12 +70,12 @@ DEPEND="${COMMON_DEPEND} |
|
|
|
=dev-libs/cyrus-sasl-2*[static-libs] |
|
|
|
net-libs/gnutls[static-libs] |
|
|
|
) |
|
|
|
mysql? ( >=virtual/mysql-5.0.3[static-libs] ) |
|
|
|
mysql? ( >=virtual/mysql-5.0.3[static] ) |
|
|
|
sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] ) |
|
|
|
postgres? ( >=dev-db/postgresql-8.1:*[static-libs] ) |
|
|
|
libxml2? ( dev-libs/libxml2[static-libs] ) |
|
|
|
curl? ( net-misc/curl[static-libs] ) |
|
|
|
ssh? ( net-libs/libssh2[static-libs] ) |
|
|
|
ssh? ( net-libs/libssh2 ) |
|
|
|
odbc? ( dev-db/unixODBC[static-libs] ) |
|
|
|
) |
|
|
|
virtual/pkgconfig" |
|
|
@ -142,14 +142,13 @@ src_configure() { |
|
|
|
$(use_with ssh ssh2) \ |
|
|
|
$(use_with libxml2) \ |
|
|
|
$(use_with odbc unixodbc) \ |
|
|
|
$(use_with ssl openssl) \ |
|
|
|
|| die "econf failed" |
|
|
|
$(use_with ssl openssl) |
|
|
|
} |
|
|
|
|
|
|
|
src_compile() { |
|
|
|
# export GOPATH="${WORKDIR}/${P}" |
|
|
|
if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then |
|
|
|
emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed" |
|
|
|
emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
@ -190,6 +189,8 @@ src_install() { |
|
|
|
dosbin src/zabbix_proxy/zabbix_proxy |
|
|
|
insinto /etc/zabbix |
|
|
|
doins "${FILESDIR}/3.0"/zabbix_proxy.conf |
|
|
|
fowners root:zabbix /etc/zabbix/zabbix_proxy.conf |
|
|
|
fperms 0640 /etc/zabbix/zabbix_proxy.conf |
|
|
|
dodir /usr/share/zabbix |
|
|
|
/bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/ |
|
|
|
systemd_dounit "${FILESDIR}/zabbix-proxy.service" |
|
|
@ -206,6 +207,7 @@ src_install() { |
|
|
|
dobin \ |
|
|
|
src/zabbix_sender/zabbix_sender \ |
|
|
|
src/zabbix_get/zabbix_get |
|
|
|
fperms 0640 /etc/zabbix/zabbix_agentd.conf |
|
|
|
systemd_dounit "${FILESDIR}/zabbix-agentd.service" |
|
|
|
systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf |
|
|
|
fi |
|
|
@ -281,7 +283,8 @@ pkg_postinst() { |
|
|
|
ewarn "custom alert scripts." |
|
|
|
ewarn |
|
|
|
ewarn "A real homedir might be needed for configfiles" |
|
|
|
ewarn "for custom alert scripts" |
|
|
|
ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when" |
|
|
|
ewarn "using sendxmpp for Jabber alerts)." |
|
|
|
ewarn |
|
|
|
ewarn "To change the homedir use:" |
|
|
|
ewarn " usermod -d /var/lib/zabbix/home zabbix" |