2012-05-18 08:13:33 +00:00
|
|
|
# Template build file for 'net-snmp'.
|
|
|
|
pkgname=net-snmp
|
|
|
|
version=5.7.1
|
2013-04-14 02:36:19 +00:00
|
|
|
revision=4
|
|
|
|
makedepends="bzip2-devel openssl-devel libnl-devel pciutils-devel
|
|
|
|
python-devel python-distribute perl>=5.16"
|
2012-05-18 08:13:33 +00:00
|
|
|
short_desc="Simple Network Management Protocol (SNMP) suite"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.net-snmp.org/"
|
|
|
|
license="BSD"
|
2013-04-14 02:36:19 +00:00
|
|
|
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz"
|
2012-05-18 08:13:33 +00:00
|
|
|
checksum=7c71c9650c65b715356547e20ca2dbe6313944278af8cc19c32a5337f46b181f
|
|
|
|
long_desc="
|
|
|
|
Simple Network Management Protocol (SNMP) is a widely used protocol for monitoring
|
|
|
|
the health and welfare of network equipment (eg. routers), computer equipment and
|
|
|
|
even devices like UPSs. Net-SNMP is a suite of applications used to implement
|
|
|
|
SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6."
|
|
|
|
|
|
|
|
do_configure() {
|
2013-05-26 08:41:55 +00:00
|
|
|
./configure ${configure_args} --enable-ucd-snmp-compatibility \
|
2012-05-18 08:13:33 +00:00
|
|
|
--enable-ipv6 --with-python-modules --with-default-snmp-version="3" \
|
|
|
|
--with-sys-contact="root@localhost" --with-sys-location="Unknown" \
|
|
|
|
--with-logfile=/var/log/snmpd.log \
|
|
|
|
--with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod" \
|
|
|
|
--with-persistent-directory=/var/net-snmp --disable-static
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs} NETSNMP_DONT_CHECK_VERSION=1
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} INSTALL_PREFIX=${DESTDIR} \
|
|
|
|
INSTALLDIRS=vendor install
|
|
|
|
}
|
2013-04-14 02:36:19 +00:00
|
|
|
|
|
|
|
libnet-snmp_package() {
|
|
|
|
short_desc="${short_desc} - shared libraries"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
net-snmp-devel_package() {
|
|
|
|
depends="libnet-snmp>=$version"
|
|
|
|
short_desc="${short_desc} - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/net-snmp-config
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
net-snmp_package() {
|
|
|
|
depends="python perl>=5.16"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|