milis/talimatname/genel/n/net-snmp/talimat

37 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: SNMP v1, SNMP v2c ve SNMP v3'ü hem IPv4 hem de IPv6 kullanarak uygulamak için kullanılan bir uygulama paketi.
2016-11-13 01:08:33 +01:00
# URL: http://www.net-snmp.org/
2017-10-27 20:46:27 +02:00
# Paketçi: alihan-ozturk28@hotmail.com
# Gerekler: python python-setuptools libnl openssl pciutils perl-term-readkey perl-tk perl
2016-11-13 01:08:33 +01:00
2017-10-28 14:10:23 +02:00
isim=net-snmp
surum=5.7.3
devir=1
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz{,.asc})
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd $isim-$surum
2016-02-24 01:27:23 +01:00
PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \
--sysconfdir=/etc --sbindir=/usr/bin \
--mandir=/usr/share/man \
--enable-ucd-snmp-compatibility \
--enable-ipv6 \
--with-python-modules \
2017-10-28 14:10:23 +02:00
--with-default-snmp-surum="3" \
2016-02-24 01:27:23 +01:00
--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=$PKG:" Makefile
make DESTDIR=$PKG INSTALL_PREFIX=$PKG INSTALLDIRS=vendor install
# Remove perllocal.pod and .packlist if present in the package
for i in perllocal.pod .packlist; do
find $PKG -name "$i" -exec rm -rf {} \;
done
}