updated snmpsim pkgbuild to 0.2.3
This commit is contained in:
parent
6864ff4109
commit
d441f649c5
1 changed files with 14 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
||||||
pkgname=snmpsim
|
pkgname=snmpsim
|
||||||
pkgver=0.2.0
|
pkgver=0.2.3
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="a software that would act like a multitude of real physical devices from SNMP Manager's point of view"
|
pkgdesc="a software that would act like a multitude of real physical devices from SNMP Manager's point of view"
|
||||||
arch=(any)
|
arch=(any)
|
||||||
|
@ -10,13 +10,24 @@ depends=('python' 'python-pysnmp' 'python-pyasn1')
|
||||||
optdepends=('pycrypto: SNMPv3 support')
|
optdepends=('pycrypto: SNMPv3 support')
|
||||||
options=(!emptydirs)
|
options=(!emptydirs)
|
||||||
source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
|
source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
|
||||||
md5sums=('f2c06db6c2c75e6fd3cf2c39127ebfa3')
|
md5sums=('95a0a5c43fb282c6e33588acaedc814a')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
sed -i '1i #!/usr/bin/env python' scripts/*.py
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/$pkgname-$pkgver"
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
sed -i '1i #!/usr/bin/env python' scripts/*.py
|
|
||||||
python setup.py install --root="$pkgdir/" --optimize=1
|
python setup.py install --root="$pkgdir/" --optimize=1
|
||||||
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
|
||||||
|
#some files are installed in /usr/snmpsim move them to python package dir
|
||||||
|
mv "${pkgdir}/usr/${pkgname}/data" "${pkgdir}"`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`/${pkgname}/
|
||||||
|
mv "${pkgdir}/usr/${pkgname}/variation" "${pkgdir}"`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`/${pkgname}/
|
||||||
|
rmdir "${pkgdir}/usr/${pkgname}/"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
# vim:set ts=2 sw=2 et:
|
||||||
|
|
Loading…
Reference in a new issue