void-packages/srcpkgs/net-snmp/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

47 lines
1.4 KiB
Bash

# Template build file for 'net-snmp'.
pkgname=net-snmp
version=5.7.3
revision=3
hostmakedepends="pkg-config unzip"
makedepends="bzip2-devel libressl-devel libnl-devel pciutils-devel"
short_desc="Simple Network Management Protocol (SNMP) suite"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.net-snmp.org/"
license="BSD"
# tar.gz is broken, use zip instead
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.zip"
checksum=e8dfc79b6539b71a6ff335746ce63d2da2239062ad41872fff4354cafed07a3e
do_configure() {
./configure ${configure_args} --enable-ucd-snmp-compatibility \
--enable-ipv6 --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 \
--without-python --without-perl
}
do_build() {
make ${makejobs} NETSNMP_DONT_CHECK_VERSION=1
}
do_install() {
make DESTDIR=${DESTDIR} INSTALL_PREFIX=${DESTDIR} INSTALLDIRS=vendor install
vlicense COPYING LICENSE
}
libnet-snmp_package() {
short_desc+=" - shared libraries"
pkg_install() {
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
vmove "usr/lib/*.so"
}
}