You are not logged in.

#1 2004-03-09 19:53:07

drz
Member
From: Netherlands
Registered: 2003-08-24
Posts: 13
Website

net-snmp

Hi,

I've packaged net-snmp-5.1
(this includes snmpd, snmptrapd, and snmp utilities)

download: ftp://ftp.archlinux.org/incoming/net-snmp.src.tar.gz

PKGBUILD

# Contributor: Pascal de Bruijn <keizerflipje@home.nl>

pkgname=net-snmp
pkgver=5.1
pkgrel=2
pkgdesc="Various tools relating to the Simple Network Management Protocol"
url="http://www.net-snmp.org"
depends=('glibc' 'openssl')
source=(http://dl.sourceforge.net/sourceforge/net-snmp/$pkgname-$pkgver.tar.gz         snmpd snmpd.conf snmptrapd snmptrapd.conf)
md5sums=('14217471edb2b805b0e28c4c3cfd8c75' '0aff80d90eba7a023451bee7e6c1ba39'
         '2921a87126160a3886a8342218b29da8' '5412707222224bf9318080d2b4db5dfe'
         'cdf3b8f2245533e45efb2ee391077427')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --with-defaults --prefix=/usr
  make || return 1
  umask 022
  make prefix=$startdir/pkg/usr exec_prefix=$startdir/pkg/usr install
  install -D -m755 $startdir/snmpd $startdir/pkg/etc/rc.d/snmpd
  install -D -m644 $startdir/snmpd.conf $startdir/pkg/etc/snmp/snmpd.conf
  install -D -m755 $startdir/snmptrapd $startdir/pkg/etc/rc.d/snmptrapd
  install -D -m644 $startdir/snmptrapd.conf $startdir/pkg/etc/snmp/snmptrapd.conf
}

WARNING: My default supplied config allows readonly anonymous access for SNMPv1 SNMPv2(c) and SNMPv3! You can use 'snmpconf' to modificy the configuration.

Please test this yourself before using the package... Though sofar everything seems fine.

Regards,
Pascal de Bruijn


Look I'm Doctor Zoidberg, home owner!

Offline

Board footer

Powered by FluxBB