Files
@ 048989821d8e
Branch filter:
Location: portage-overlay.git/net-analyzer/bsnmp/bsnmp-1.12-r1.ebuild - annotation
048989821d8e
1.0 KiB
application/vnd.gentoo.ebuild
net-analyzer/bsnmp: update to EAPI 5
45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 048989821d8e 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c 45ab1f5cf51c | # Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils flag-o-matic
DESCRIPTION="Mini-SNMP Daemon and Library"
HOMEPAGE="http://people.freebsd.org/~harti/"
SRC_URI="http://people.freebsd.org/~harti/bsnmp/${P}.tar.gz"
LICENSE="BSD GPL-2" # GPL-2 init script
SLOT="0"
KEYWORDS=""
IUSE="tcpd"
DEPEND="dev-libs/libbegemot
tcpd? ( sys-apps/tcp-wrappers )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-1.10-gcc34.patch"
epatch "${FILESDIR}/werror.patch"
epatch "${FILESDIR}/${P}-mibII.patch"
}
src_compile() {
if use elibc_glibc; then
# bsnmp is bsd-based, without this it will fail
append-flags "-D_BSD_SOURCE"
fi
filter-flags -fno-inline
econf \
--with-libbegemot=/usr \
$(use_with tcpd tcpwrappers) \
|| die "econf failed"
emake -j1 || die "emake failed"
}
src_install() {
einstall || die "make install failed"
newinitd "${FILESDIR}"/bsnmpd.init bsnmpd || die
insinto /etc
doins "${FILESDIR}"/snmpd.config
}
|