blob: 179abb869ff3fb975522ea4957fe9133c61afc6f (
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
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Jerry Alexandratos <jerry@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ucd-snmp/ucd-snmp-4.1.2.ebuild,v 1.2 2000/11/08 08:44:48 jerry Exp $
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Software for generating and retrieving SNMP data"
SRC_URI="http://download.sourceforge.net/net-snmp/${A}"
HOMEPAGE="http://net-snmp.sourceforge.net/"
DEPEND=">=sys-libs/glibc-2.1.3
>=sys-libs/zlib-1.1.3
>=dev-libs/openssl-0.9.6
>=sys-apps/tcp-wrappers-7.6
>=sys-devel/perl-5.6.0"
src_compile() {
cd ${S}
try ./configure --prefix=/usr --host=${CHOST} \
--with-openssl --with-libwrap --with-zlib
try make
}
src_install () {
try make prefix=${D}/usr exec_prefix=${D}/usr \
persistentdir=${D}/var/ucd-snmp install
dodir /etc/rc.d/init.d/
cp ${O}/files/snmpd ${D}/etc/rc.d/init.d/snmpd
}
pkg_config() {
${ROOT}/usr/sbin/rc-update add snmpd
}
|