unitas-zabbix/net-analyzer/l2dm-lldp/l2dm-lldp-1.5-r1.ebuild

46 lines
983 B
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION=""
HOMEPAGE="https://share.zabbix.com/network_devices/l2-discovery-module-for-lldp"
SRC_URI="https://share.zabbix.com/index.php?option=com_mtree&task=att_download&link_id=1359&cf_id=46 -> l2dm-lldp-1.5.x86_64.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
COMMON_DEPEND="
net-analyzer/zabbix-headers
"
DEPEND="
${COMMON_DEPEND}
"
RDEPEND="
${COMMON_DEPEND}
"
S=${WORKDIR}/${P}.x86_64
src_compile() {
cd source/modules
sed 's#^INCLUDES.*$#INCLUDES = -I/usr/include/zabbix/#' Malefile > Makefile
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/${PN}/templates
doins data/zabbix3.0/templates/*
insinto /usr/share/zabbix/${PN}/value_mapping
doins data/zabbix3.0/value_mapping/*
dodoc ChangeLog INSTALL README
}