talimat 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Description: SNMP v1, SNMP v2c ve SNMP v3'ü hem IPv4 hem de IPv6 kullanarak uygulamak için kullanılan bir uygulama paketi.
  2. # URL: http://www.net-snmp.org/
  3. # Packager: alihan-ozturk28@hotmail.com
  4. # Depends on: python python-setuptools libnl openssl pciutils perl-term-readkey perl-tk perl
  5. name=net-snmp
  6. version=5.7.3
  7. release=1
  8. source=(http://downloads.sourceforge.net/$name/$name-$version.tar.gz{,.asc})
  9. build() {
  10. cd $name-$version
  11. PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \
  12. --sysconfdir=/etc --sbindir=/usr/bin \
  13. --mandir=/usr/share/man \
  14. --enable-ucd-snmp-compatibility \
  15. --enable-ipv6 \
  16. --with-python-modules \
  17. --with-default-snmp-version="3" \
  18. --with-sys-contact="root@localhost" \
  19. --with-sys-location="Unknown" \
  20. --with-logfile="/var/log/snmpd.log" \
  21. --with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod" \
  22. --with-persistent-directory="/var/net-snmp"
  23. make NETSNMP_DONT_CHECK_VERSION=1
  24. sed -i -e "s:install --basedir=\$\$dir:install --basedir=\$\$dir --root=$PKG:" Makefile
  25. make DESTDIR=$PKG INSTALL_PREFIX=$PKG INSTALLDIRS=vendor install
  26. # Remove perllocal.pod and .packlist if present in the package
  27. for i in perllocal.pod .packlist; do
  28. find $PKG -name "$i" -exec rm -rf {} \;
  29. done
  30. }