From a91e252e905cf67daa178b9b30874ed354864395 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Wed, 2 May 2012 13:59:57 +0200 Subject: [PATCH] new pkgbuild: snmp simulator --- pkgbuild/snmpsim/PKGBUILD | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pkgbuild/snmpsim/PKGBUILD diff --git a/pkgbuild/snmpsim/PKGBUILD b/pkgbuild/snmpsim/PKGBUILD new file mode 100644 index 0000000..e293b51 --- /dev/null +++ b/pkgbuild/snmpsim/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Cedric Girard +pkgname=snmpsim +pkgver=0.1.3 +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) +md5sums=('93719ca49ed013c3819a1f057a412347') + +package() { + cd "$srcdir/$pkgname-$pkgver" + sed -i '1i #!/usr/bin/env python' build/scripts-3.2/*.py + 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: