blob: 939c6b307bae81ad5bcad82758e367f31dfdb42c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ucd-snmp/ucd-snmp-4.2.6-r1.ebuild,v 1.6 2004/06/09 18:52:48 agriffis Exp $
IUSE="ssl ipv6 tcpd"
PROVIDE="virtual/snmp"
S=${WORKDIR}/${P}
DESCRIPTION="Software for generating and retrieving SNMP data"
SRC_URI="mirror://sourceforge/net-snmp/${P}.tar.gz"
HOMEPAGE="http://net-snmp.sourceforge.net/"
DEPEND="<sys-libs/db-2
>=sys-libs/zlib-1.1.4
ssl? ( >=dev-libs/openssl-0.9.6 )
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
RDEPEND="${DEPEND}
!virtual/snmp"
SLOT="0"
LICENSE="as-is"
KEYWORDS="x86 sparc ~ppc hppa"
src_compile() {
export SNMPCONFPATH="/etc/ucd-snmp"
local myconf
use ssl || myconf="${myconf} --enable-internal-md5 --with-openssl=no"
use tcpd && myconf="${myconf} --with-libwrap"
use ipv6 && myconf="${myconf} --with-ipv6"
./configure \
--with-zlib \
--prefix=/usr \
--enable-shared \
--mandir=/usr/share/man \
--with-sys-location="Unknown" \
--with-sys-contact="root@Unknown" \
--with-logfile=/var/log/snmpd.log \
--with-persistent-directory=/var/lib/ucd-snmp \
--with-mib-modules=host \
--host=${CHOST} ${myconf} || die "bad ./configure"
emake || die "compile problem"
}
src_install () {
make install \
prefix=${D}/usr \
exec_prefix=${D}/usr \
mandir=${D}/usr/share/man \
persistentdir=${D}/var/lib/ucd-snmp || die
dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO EXAMPLE.conf
exeinto /etc/init.d
newexe ${FILESDIR}/snmpd.rc6 snmpd
exeinto /etc/conf.d
newexe ${FILESDIR}/snmpd.conf snmpd
dodir /etc/ucd-snmp
insinto /etc/ucd-snmp
newins EXAMPLE.conf snmpd.conf.dist
}
|