void-packages/srcpkgs/net-snmp/template

47 lines
1.4 KiB
Text
Raw Normal View History

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
2014-10-05 07:22:10 +00:00
revision=1
hostmakedepends="pkg-config unzip"
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"
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() {
./configure ${configure_args} --enable-ucd-snmp-compatibility \
--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" \
--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() {
make DESTDIR=${DESTDIR} INSTALL_PREFIX=${DESTDIR} INSTALLDIRS=vendor install
2012-05-18 08:13:33 +00:00
}
libnet-snmp_package() {
short_desc+=" - shared libraries"
pkg_install() {
2014-02-21 14:56:52 +00:00
vmove "usr/lib/*.so.*"
}
}
net-snmp-devel_package() {
depends="libnet-snmp>=${version}_${revision}"
short_desc+=" - development files"
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"
}
}