pkgname: net-snmp pkgver: '5.10.pre1' pkgrel: 1 pkgdesc: Widely used protocol for monitoring the health and welfare of network equipment. url: 'https://www.net-snmp.org/' arch: x86_64 depends: - python - perl makedepends: - python-setuptools - automake - autoconf - m4 - libtool - libnl - openssl - pciutils - libxcrypt source: - 'https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz' sha256sums: - SKIP build: | unset MAKEFLAGS cd ${pkgname}-${pkgver} autoreconf -i ./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=${PKGDIR}:" Makefile make DESTDIR=${PKGDIR} INSTALL_PREFIX=${PKGDIR} INSTALLDIRS=vendor install # Remove perllocal.pod and .packlist if present in the package for i in perllocal.pod .packlist; do find ${PKGDIR} -name "$i" -exec rm -rf {} \; done # Obsolets libs rm -f ${PKGDIR}/usr/lib/libnetsnmp.la rm -f ${PKGDIR}/usr/lib/libnetsnmpagent.la rm -f ${PKGDIR}/usr/lib/libnetsnmphelpers.la rm -f ${PKGDIR}/usr/lib/libnetsnmpmibs.la rm -f ${PKGDIR}/usr/lib/libnetsnmptrapd.la rm -f ${PKGDIR}/usr/lib/libsnmp.la package: | true