2021-04-13 19:04:15 +02:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2023-02-24 18:56:11 +01:00
|
|
|
DESCRIPTION="Zabbix SNMP LLDP Topology Discovery"
|
|
|
|
HOMEPAGE="https://git.unitas-network.de/Zabbix/snmp_lldp"
|
|
|
|
SRC_URI="https://git.unitas-network.de/Zabbix/snmp_lldp/archive/1.5.tar.gz -> ${P}.tar.gz"
|
2021-04-13 19:04:15 +02:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 x86"
|
|
|
|
|
|
|
|
COMMON_DEPEND="
|
2021-11-10 11:47:11 +01:00
|
|
|
net-analyzer/zabbix-headers
|
2021-04-13 19:04:15 +02:00
|
|
|
"
|
|
|
|
DEPEND="
|
|
|
|
${COMMON_DEPEND}
|
|
|
|
"
|
|
|
|
RDEPEND="
|
|
|
|
${COMMON_DEPEND}
|
|
|
|
"
|
|
|
|
|
2023-02-24 18:56:11 +01:00
|
|
|
S=${WORKDIR}/snmp_lldp
|
2021-04-13 19:04:15 +02:00
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
cd source/modules
|
2023-02-24 18:56:11 +01:00
|
|
|
sed -i 's#^INCLUDES.*$#INCLUDES = -I/usr/include/zabbix/#' Makefile
|
2021-04-13 19:04:15 +02:00
|
|
|
emake
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
exeinto /usr/$(get_libdir)/zabbix
|
|
|
|
doexe source/modules/lldp_get.so
|
|
|
|
|
|
|
|
insinto /usr/share/snmp/mibs
|
|
|
|
doins mibs/lldp-mibs/*
|
|
|
|
|
2023-02-24 18:56:11 +01:00
|
|
|
insinto /usr/share/zabbix/snmp_lldp/templates
|
2021-04-13 19:04:15 +02:00
|
|
|
doins data/zabbix3.0/templates/*
|
2023-02-24 18:56:11 +01:00
|
|
|
insinto /usr/share/zabbix/snmp_lldp/value_mapping
|
2021-04-13 19:04:15 +02:00
|
|
|
doins data/zabbix3.0/value_mapping/*
|
|
|
|
|
2023-02-24 18:56:11 +01:00
|
|
|
dodoc ChangeLog INSTALL README.md
|
2021-04-13 19:04:15 +02:00
|
|
|
}
|