From 9a6154f3496904cd3d2d7b36ce6a458f56606a6f Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Wed, 26 Jan 2022 13:10:20 +0200 Subject: [PATCH] Add missing Python packages for CloudStack Marvin --- python-ipmisim/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ python-pycrypt/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ python-pyghmi/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 105 insertions(+) create mode 100644 python-ipmisim/PKGBUILD create mode 100644 python-pycrypt/PKGBUILD create mode 100644 python-pyghmi/PKGBUILD diff --git a/python-ipmisim/PKGBUILD b/python-ipmisim/PKGBUILD new file mode 100644 index 0000000..1956589 --- /dev/null +++ b/python-ipmisim/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Pekka Helenius + +pkgname=python-ipmisim-git +_pkgname=ipmisim +pkgver=0.10.r0.g62dd7c0 +pkgrel=1 +pkgdesc='Fake IPMI server based on conpot and pyghmi' +arch=('any') +url='https://pypi.org/project/ipmisim/' +license=('Apache2') +depends=( + 'python' + 'python-pycrypto' #AUR package + 'python-future' + + 'python-pyghmi' +) +makedepends=('python-setuptools') +provides=(python-ipmisim) +conflicts=(python-ipmisim) +source=( + ${pkgname}::git+https://github.com/shapeblue/${_pkgname} +) +sha256sums=('SKIP') + +pkgver() { + cd $pkgname + git describe --long --tags | sed 's/^[a-z]//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd $pkgname + python setup.py build +} + +package() { + cd $pkgname + python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build +} diff --git a/python-pycrypt/PKGBUILD b/python-pycrypt/PKGBUILD new file mode 100644 index 0000000..b12289d --- /dev/null +++ b/python-pycrypt/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Pekka Helenius + +pkgname=python-pycrypt-git +_pkgname=pycrypt +pkgver=0.7.2.r0.gb665333 +pkgrel=1 +pkgdesc='A fast C extension for TwoFish encryption in Python' +arch=('any') +url='https://pypi.org/project/pycrypt/' +license=('Apache2') +depends=('python') +makedepends=('python-setuptools' 'gcc') +provides=(python-pycrypt) +conflicts=(python-pycrypt) +source=( + ${pkgname}::git+https://github.com/Noctem/${_pkgname} +) +sha256sums=('SKIP') + +pkgver() { + cd $pkgname + git describe --long --tags | sed 's/^[a-z]//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd $pkgname + python setup.py build +} + +package() { + cd $pkgname + python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build +} diff --git a/python-pyghmi/PKGBUILD b/python-pyghmi/PKGBUILD new file mode 100644 index 0000000..a05f05b --- /dev/null +++ b/python-pyghmi/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Pekka Helenius + +pkgname=python-pyghmi-git +_pkgname=pyghmi +pkgver=1.5.33.r5.ge1e5fa98 +pkgrel=1 +pkgdesc='A Pure python IPMI library' +arch=('any') +url='https://pypi.org/project/pyghmi/' +license=('Apache2') +depends=('python') +makedepends=('python-setuptools' 'python-pbr') +provides=(python-pyghmi) +conflicts=(python-pyghmi) +source=( + ${pkgname}::git+https://opendev.org/x/${_pkgname} +) +sha256sums=('SKIP') + +pkgver() { + cd $pkgname + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd $pkgname + python setup.py build +} + +package() { + cd $pkgname + python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build +}