2012-05-18 08:13:33 +00:00
|
|
|
# Template build file for 'net-snmp'.
|
|
|
|
pkgname=net-snmp
|
2014-12-21 10:54:14 +00:00
|
|
|
version=5.7.3
|
2015-03-04 15:04:30 +00:00
|
|
|
revision=3
|
2014-10-05 07:22:10 +00:00
|
|
|
hostmakedepends="pkg-config unzip"
|
2015-03-27 09:50:40 +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"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-05-18 08:13:33 +00:00
|
|
|
homepage="http://www.net-snmp.org/"
|
|
|
|
license="BSD"
|
2014-10-05 07:22:10 +00:00
|
|
|
# tar.gz is broken, use zip instead
|
|
|
|
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.zip"
|
2014-12-21 10:54:14 +00:00
|
|
|
checksum=e8dfc79b6539b71a6ff335746ce63d2da2239062ad41872fff4354cafed07a3e
|
2012-05-18 08:13:33 +00:00
|
|
|
|
|
|
|
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
|
2015-02-21 12:20:13 +00:00
|
|
|
vlicense COPYING LICENSE
|
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
|
|
|
}
|
|
|
|
}
|