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