blob: eb1f8bb6a2047cb2178666a1ab2109141ba6a817 (
plain) (
tree)
|
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="SNMP agent for linux iptables"
HOMEPAGE="http://www.nobiscuit.com/iptables-snmp"
SRC_URI="http://www.nobiscuit.com/iptables-snmp/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
REQUIRED_USE="kernel_linux"
DEPEND="net-firewall/iptables
net-analyzer/net-snmp"
RDEPEND="${DEPEND}"
src_prepare() {
default
tc-export CC
}
src_compile() {
emake V=1 VERSION="${PVR}"
}
src_install() {
emake install-lib V=1 \
DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)"
insinto /usr/share/snmp/mibs
newins mibs/IPTABLES.MIB IPTABLES.txt
newins mibs/STAMFEST.MIB STAMFEST.txt
dodoc README
}
pkg_postinst() {
elog
elog "You can now enable ${PN} by adding"
elog " dlmod iptables ${EPREFIX}/usr/$(get_libdir)/${PN}.so"
elog "To ${EPREFIX}/etc/snmp/snmpd.conf"
elog
}
|