57 lines
1.6 KiB
Bash
57 lines
1.6 KiB
Bash
# Template file for 'net-snmp'
|
|
pkgname=net-snmp
|
|
version=5.9.1
|
|
revision=3
|
|
hostmakedepends="pkg-config unzip"
|
|
makedepends="bzip2-devel openssl-devel libnl-devel pciutils-devel
|
|
libsensors-devel pcre-devel"
|
|
short_desc="Simple Network Management Protocol (SNMP) suite"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="Net-SNMP"
|
|
homepage="http://www.net-snmp.org/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=eb7fd4a44de6cddbffd9a92a85ad1309e5c1054fb9d5a7dd93079c8953f48c3f
|
|
|
|
LDFLAGS="-lpthread"
|
|
|
|
do_configure() {
|
|
# Stop GNU grep from being stupid, and recognizing source code
|
|
# as binaries, resulting in further greps on that output to
|
|
# lack magic words.
|
|
export GREP='grep -a'
|
|
|
|
./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 --sbindir=/usr/bin \
|
|
--with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod ucd-snmp/lmsensorsMib" \
|
|
--with-persistent-directory=/var/net-snmp --disable-static
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs} NETSNMP_DONT_CHECK_VERSION=1
|
|
}
|
|
|
|
do_install() {
|
|
make DESTDIR=${DESTDIR} INSTALL_PREFIX=${DESTDIR} INSTALLDIRS=vendor install
|
|
}
|
|
|
|
libnet-snmp_package() {
|
|
short_desc+=" - shared libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
net-snmp-devel_package() {
|
|
depends="libnet-snmp>=${version}_${revision} openssl-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin/net-snmp-config
|
|
vmove usr/include
|
|
vmove usr/share/man/man3
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|