# $Id: PKGBUILD 17754 2008-11-01 07:09:10Z eric $ # Maintainer: Eric Belanger # Contributor: Dale Blount pkgname=net-snmp pkgver=5.4.2.1 pkgrel=1 pkgdesc="A suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6" arch=('i686' 'x86_64') url="http://www.net-snmp.org/" license=('custom') depends=('openssl' 'tcp_wrappers') optdepends=('perl-term-readkey: for snmpcheck application' 'perl-tk: for snmpcheck application') provides=('ucd-snmp') options=('!libtool' '!makeflags' '!emptydirs') source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz \ snmpd.rc) md5sums=('984932520143f0c8bf7b7ce1fc9e1da1' '9f0d13676ba1fae1eb7eb178edd85b43') sha1sums=('4f2df9ea62344fe840f493d0e08abe5de3697862' '2c679b564a2c319d9ce2714a9776aa0e6d89c60a') build() { cd ${srcdir}/${pkgname}-${pkgver} ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \ --enable-ucd-snmp-compatibility --with-libwrap \ --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" || return 1 make NETSNMP_DONT_CHECK_VERSION=1 || return 1 make DESTDIR=${pkgdir} INSTALL_PREFIX=${pkgdir} INSTALLDIRS=vendor install || return 1 install -D -m755 ${srcdir}/snmpd.rc ${pkgdir}/etc/rc.d/snmpd || return 1 install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING || return 1 # remove perllocal.pod and .packlist find ${pkgdir} -name perllocal.pod -delete find ${pkgdir} -name .packlist -delete }