unitas-zabbix/net-analyzer/zabbix-headers/zabbix-headers-6.0.7.ebuild

65 lines
1.6 KiB
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Install the Zabbix header files to offer the possibility to compile/install plugins"
HOMEPAGE="https://www.zabbix.com/"
MY_PV=${PV/_/}
MY_P=zabbix-${PV/_/}
SRC_URI="https://cdn.zabbix.com/zabbix/sources/stable/$(ver_cut 1-2)/${MY_P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="amd64 x86"
SLOT="0"
IUSE="agent +agent2 curl frontend gnutls ipv6 java ldap libxml2 mysql odbc openipmi +openssl oracle +pcre2 +postgres proxy server snmp sqlite ssh static"
DEPEND="
=net-analyzer/zabbix-${MY_PV}[agent=,agent2=,curl=,frontend=,gnutls=,ipv6=,java=,ldap=,libxml2=,mysql=,odbc=,openipmi=,openssl=,oracle=,pcre2=,postgres=,proxy=,server=,snmp=,sqlite=,ssh=,static=]
"
S=${WORKDIR}/${MY_P}
src_configure() {
local econf_args=(
"$(use_enable agent)"
"$(use_enable agent2)"
"$(use_enable ipv6)"
"$(use_enable java)"
"$(use_enable proxy)"
"$(use_enable server)"
"$(use_enable static)"
"$(use_with curl libcurl)"
"$(use_with gnutls)"
"$(use_with ldap)"
"$(use_with libxml2)"
"$(use_with mysql)"
"$(use_with odbc unixodbc)"
"$(use_with openipmi openipmi)"
"$(use_with openssl)"
"$(use_with oracle)"
"$(use_with postgres postgresql)"
"$(use_with snmp net-snmp)"
"$(use_with sqlite sqlite3)"
"$(use_with ssh ssh2)"
)
if use pcre2; then
econf_args+=( --with-libpcre2 )
else
# If pcre2 is not enabled, then use the old pcre library.
econf_args+=( --with-libpcre )
fi
econf ${econf_args[@]}
}
src_compile() {
einfo "Nothing to compile"
}
src_install() {
insinto /usr/include/zabbix
doins include/*.h
}