2016-11-13 01:08:33 +01:00
|
|
|
# Description: A suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6.
|
|
|
|
# URL: http://www.net-snmp.org/
|
|
|
|
# Packager: alihan-ozturk28@hotmail.com
|
|
|
|
# Depends on: python python-setuptools libnl openssl pciutils perl-term-readkey perl-tk perl
|
|
|
|
|
2016-02-24 01:27:23 +01:00
|
|
|
name=net-snmp
|
2016-11-13 01:08:33 +01:00
|
|
|
version=5.7.3
|
|
|
|
release=1
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
source=(http://downloads.sourceforge.net/$name/$name-$version.tar.gz{,.asc})
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc --sbindir=/usr/bin \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--enable-ucd-snmp-compatibility \
|
|
|
|
--enable-ipv6 \
|
|
|
|
--with-python-modules \
|
|
|
|
--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"
|
|
|
|
|
|
|
|
make NETSNMP_DONT_CHECK_VERSION=1
|
|
|
|
|
|
|
|
sed -i -e "s:install --basedir=\$\$dir:install --basedir=\$\$dir --root=$PKG:" Makefile
|
|
|
|
|
|
|
|
make DESTDIR=$PKG INSTALL_PREFIX=$PKG INSTALLDIRS=vendor install
|
|
|
|
# Remove perllocal.pod and .packlist if present in the package
|
|
|
|
for i in perllocal.pod .packlist; do
|
|
|
|
find $PKG -name "$i" -exec rm -rf {} \;
|
|
|
|
done
|
|
|
|
}
|