| 1 |
# Copyright 1999-2005 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: $
|
| 4 |
|
| 5 |
inherit flag-o-matic
|
| 6 |
|
| 7 |
DESCRIPTION="Mini-SNMP Daemon and Library"
|
| 8 |
HOMEPAGE="http://people.freebsd.org/~harti/"
|
| 9 |
SRC_URI="http://people.freebsd.org/~harti/bsnmp/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="BSD"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="~x86-fbsd"
|
| 14 |
IUSE="tcpd"
|
| 15 |
|
| 16 |
DEPEND="dev-libs/libbegemot
|
| 17 |
tcpd? ( sys-apps/tcp-wrappers )"
|
| 18 |
|
| 19 |
src_unpack() {
|
| 20 |
unpack ${A}
|
| 21 |
cd ${S}
|
| 22 |
|
| 23 |
epatch "${FILESDIR}/${PN}-1.10-gcc34.patch"
|
| 24 |
}
|
| 25 |
|
| 26 |
src_compile() {
|
| 27 |
if use elibc_glibc; then
|
| 28 |
# bsnmp is bsd-based, without this it will fail
|
| 29 |
append-flags "-D_BSD_SOURCE"
|
| 30 |
fi
|
| 31 |
|
| 32 |
filter-flags -fno-inline
|
| 33 |
|
| 34 |
econf \
|
| 35 |
--with-libbegemot=/usr \
|
| 36 |
$(use_with tcpd tcpwrappers) \
|
| 37 |
|| die "econf failed"
|
| 38 |
|
| 39 |
emake -j1 || die "emake failed"
|
| 40 |
}
|
| 41 |
|
| 42 |
src_install() {
|
| 43 |
einstall || die "make install failed"
|
| 44 |
}
|