2012-05-02 13:59:57 +02:00
|
|
|
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
|
|
|
pkgname=snmpsim
|
2013-03-25 14:11:17 +01:00
|
|
|
pkgver=0.2.0
|
2012-05-02 13:59:57 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="a software that would act like a multitude of real physical devices from SNMP Manager's point of view"
|
|
|
|
arch=(any)
|
|
|
|
url="http://snmpsim.sourceforge.net/"
|
|
|
|
license=('BSD')
|
|
|
|
depends=('python' 'python-pysnmp' 'python-pyasn1')
|
|
|
|
optdepends=('pycrypto: SNMPv3 support')
|
|
|
|
options=(!emptydirs)
|
|
|
|
source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
|
2013-03-25 14:11:17 +01:00
|
|
|
md5sums=('f2c06db6c2c75e6fd3cf2c39127ebfa3')
|
2012-05-02 13:59:57 +02:00
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
2013-03-25 14:11:17 +01:00
|
|
|
sed -i '1i #!/usr/bin/env python' scripts/*.py
|
2012-05-02 13:59:57 +02:00
|
|
|
python setup.py install --root="$pkgdir/" --optimize=1
|
|
|
|
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|