parent
5c8f4530f3
commit
1d1cecf102
1 changed files with 12 additions and 10 deletions
|
@ -1,14 +1,15 @@
|
||||||
# Template build file for 'net-snmp'.
|
# Template file for 'net-snmp'
|
||||||
pkgname=net-snmp
|
pkgname=net-snmp
|
||||||
version=5.8
|
version=5.8
|
||||||
revision=2
|
revision=3
|
||||||
hostmakedepends="pkg-config unzip"
|
hostmakedepends="pkg-config unzip"
|
||||||
makedepends="bzip2-devel libressl-devel libnl-devel pciutils-devel"
|
makedepends="bzip2-devel libressl-devel libnl-devel pciutils-devel
|
||||||
|
libsensors-devel pcre-devel"
|
||||||
short_desc="Simple Network Management Protocol (SNMP) suite"
|
short_desc="Simple Network Management Protocol (SNMP) suite"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
|
license="Net-SNMP"
|
||||||
homepage="http://www.net-snmp.org/"
|
homepage="http://www.net-snmp.org/"
|
||||||
license="BSD"
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||||
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz"
|
|
||||||
checksum=b2fc3500840ebe532734c4786b0da4ef0a5f67e51ef4c86b3345d697e4976adf
|
checksum=b2fc3500840ebe532734c4786b0da4ef0a5f67e51ef4c86b3345d697e4976adf
|
||||||
|
|
||||||
LDFLAGS="-lpthread"
|
LDFLAGS="-lpthread"
|
||||||
|
@ -22,17 +23,17 @@ do_configure() {
|
||||||
./configure ${configure_args} --enable-ucd-snmp-compatibility \
|
./configure ${configure_args} --enable-ucd-snmp-compatibility \
|
||||||
--enable-ipv6 --with-default-snmp-version="3" \
|
--enable-ipv6 --with-default-snmp-version="3" \
|
||||||
--with-sys-contact="root@localhost" --with-sys-location="Unknown" \
|
--with-sys-contact="root@localhost" --with-sys-location="Unknown" \
|
||||||
--with-logfile=/var/log/snmpd.log \
|
--with-logfile=/var/log/snmpd.log --sbindir=/usr/bin \
|
||||||
--with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod" \
|
--with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod ucd-snmp/lmsensorsMib" \
|
||||||
--with-persistent-directory=/var/net-snmp --disable-static \
|
--with-persistent-directory=/var/net-snmp --disable-static
|
||||||
--without-python --without-perl --sbindir=/usr/bin
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
make ${makejobs} NETSNMP_DONT_CHECK_VERSION=1
|
make ${makejobs} NETSNMP_DONT_CHECK_VERSION=1
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
make DESTDIR=${DESTDIR} INSTALL_PREFIX=${DESTDIR} INSTALLDIRS=vendor install
|
make DESTDIR=${DESTDIR} INSTALL_PREFIX=${DESTDIR} INSTALLDIRS=vendor install
|
||||||
vlicense COPYING LICENSE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
libnet-snmp_package() {
|
libnet-snmp_package() {
|
||||||
|
@ -41,6 +42,7 @@ libnet-snmp_package() {
|
||||||
vmove "usr/lib/*.so.*"
|
vmove "usr/lib/*.so.*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
net-snmp-devel_package() {
|
net-snmp-devel_package() {
|
||||||
depends="libnet-snmp>=${version}_${revision} libressl-devel"
|
depends="libnet-snmp>=${version}_${revision} libressl-devel"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue