🔒 Repository is read-only – file editing is disabled.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
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