2012-05-18 10:13:33 +02:00
|
|
|
# Template build file for 'net-snmp'.
|
|
|
|
pkgname=net-snmp
|
|
|
|
version=5.7.1
|
2014-05-09 11:33:45 +02:00
|
|
|
revision=6
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="bzip2-devel openssl-devel libnl-devel pciutils-devel"
|
2012-05-18 10:13:33 +02: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 04:36:19 +02:00
|
|
|
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz"
|
2012-05-18 10:13:33 +02:00
|
|
|
checksum=7c71c9650c65b715356547e20ca2dbe6313944278af8cc19c32a5337f46b181f
|
|
|
|
|
|
|
|
do_configure() {
|
2013-05-26 10:41:55 +02:00
|
|
|
./configure ${configure_args} --enable-ucd-snmp-compatibility \
|
2014-05-09 11:33:45 +02:00
|
|
|
--enable-ipv6 --with-default-snmp-version="3" \
|
2012-05-18 10:13:33 +02:00
|
|
|
--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" \
|
2014-05-09 11:33:45 +02:00
|
|
|
--with-persistent-directory=/var/net-snmp --disable-static \
|
|
|
|
--without-python --without-perl
|
2012-05-18 10:13:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs} NETSNMP_DONT_CHECK_VERSION=1
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-05-09 11:33:45 +02:00
|
|
|
make DESTDIR=${DESTDIR} INSTALL_PREFIX=${DESTDIR} INSTALLDIRS=vendor install
|
2012-05-18 10:13:33 +02:00
|
|
|
}
|
2013-04-14 04:36:19 +02:00
|
|
|
|
|
|
|
libnet-snmp_package() {
|
2014-01-01 16:10:11 +01:00
|
|
|
short_desc+=" - shared libraries"
|
2013-04-14 04:36:19 +02:00
|
|
|
pkg_install() {
|
2014-02-21 15:56:52 +01:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-14 04:36:19 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
net-snmp-devel_package() {
|
2014-05-09 11:33:45 +02:00
|
|
|
depends="libnet-snmp>=${version}_${revision}"
|
2014-01-01 16:10:11 +01:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 04:36:19 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/net-snmp-config
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share/man/man3
|
2014-02-21 15:56:52 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-14 04:36:19 +02:00
|
|
|
}
|
|
|
|
}
|