unitas-zabbix/net-analyzer/snmp-lldp/snmp-lldp-1.5.ebuild

46 lines
954 B
Bash
Raw Normal View History

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
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}
"
S=${WORKDIR}/snmp_lldp
2021-04-13 19:04:15 +02:00
src_compile() {
cd source/modules
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/*
insinto /usr/share/zabbix/snmp_lldp/templates
2021-04-13 19:04:15 +02:00
doins data/zabbix3.0/templates/*
insinto /usr/share/zabbix/snmp_lldp/value_mapping
2021-04-13 19:04:15 +02:00
doins data/zabbix3.0/value_mapping/*
dodoc ChangeLog INSTALL README.md
2021-04-13 19:04:15 +02:00
}