# Compiling Time: 1.11 SBU
# Maintainer: DeX77 <dex77@frugalware.org>
# Contributor: voroskoi <voroskoi@frugalware.org>

pkgname=net-snmp
pkgver=5.7.3
pkgrel=1
pkgdesc="A suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6"
depends=('pciutils>=3.4.1' 'openssl>=1.0.2-4' 'perl>=5.22.1')
groups=('network-extra')
archs=('i686' 'x86_64' 'arm')
_F_archive_grepv="pre"
_F_sourceforge_ext=".zip"
Finclude sourceforge
url="http://www.net-snmp.org/"
#up2date="lynx -dump http://www.net-snmp.org/download.html |grep Supported -A 2 |sed -ne 's/.* \([0-9.]\+\) .*/\1/;$ p'"
source=(${source[@]} snmpd.service)
sha1sums=('bf476f2f6a49e88642b6773a8431256d09d59582' \
          'b1af1c2ff4aef058bb1391b78ef40be6c9dedb16')
_F_systemd_units=(snmpd=)
Finclude systemd

Fconfopts+="	--with-default-snmp-version=3 \
                --with-sys-contact=root_at_localhost \
		--with-sys-location=Unknown \
                --with-logfile=/var/log/snmpd.log \
		--with-persistent-directory=/var/net-snmp"
build() {
	unset MAKEFLAGS
	export NETSNMP_DONT_CHECK_VERSION=1
	Fsed "tail -1" "tail -n 1" configure
	Fbuild

	Ffile /lib/systemd/system/snmpd.service
	Fgenscriptlet
}

# optimization OK
