View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit perl-functions
EGIT_COMMIT="0f0770ec0e6f63b40da1af9b014e0e2eb1a322b5"
DESCRIPTION="Perl modules providing the basis for labs.consol.de Nagios/Naemon/Icinga plugins"
HOMEPAGE="https://github.com/lausser/GLPlugin"
SRC_URI="https://github.com/lausser/GLPlugin/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
PATCHES=(
"${FILESDIR}"/01_snmp_timeout.patch
)
LICENSE="Artistic-2"
SLOT="0"
KEYWORDS="amd64 x86"
RDEPEND="
dev-perl/JSON
"
DEPEND=""
src_configure(){
default
echo '1;'> autosplit.ix
}
src_install(){
default
my_vendorlib="$(perl_get_vendorlib)"
insinto "${my_vendorlib}"/auto/Monitoring/GLPlugin/UPNP/
doins autosplit.ix
insinto "${my_vendorlib}"/auto/Monitoring/GLPlugin/SNMP/
doins autosplit.ix
pushd lib/Monitoring || die
perl_domodule -C Monitoring -r .
popd || die
}