talimat 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Tanım: 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. # Paketçi: alihan-ozturk28@hotmail.com
  4. # Gerekler: python python-setuptools libnl openssl pciutils perl-term-readkey perl-tk perl
  5. # Grup: ağ
  6. isim=net-snmp
  7. surum=5.7.3
  8. devir=1
  9. kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz{,.asc})
  10. derle() {
  11. cd $isim-$surum
  12. PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \
  13. --sysconfdir=/etc --sbindir=/usr/bin \
  14. --mandir=/usr/share/man \
  15. --enable-ucd-snmp-compatibility \
  16. --enable-ipv6 \
  17. --with-python-modules \
  18. --with-default-snmp-surum="3" \
  19. --with-sys-contact="root@localhost" \
  20. --with-sys-location="Unknown" \
  21. --with-logfile="/var/log/snmpd.log" \
  22. --with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod" \
  23. --with-persistent-directory="/var/net-snmp"
  24. make NETSNMP_DONT_CHECK_VERSION=1
  25. sed -i -e "s:install --basedir=\$\$dir:install --basedir=\$\$dir --root=$PKG:" Makefile
  26. make DESTDIR=$PKG INSTALL_PREFIX=$PKG INSTALLDIRS=vendor install
  27. # Remove perllocal.pod and .packlist if present in the package
  28. for i in perllocal.pod .packlist; do
  29. find $PKG -name "$i" -exec rm -rf {} \;
  30. done
  31. }