Date: Saturday, September 29, 2018 @ 18:01:58 Author: farseerfc Revision: 387933
Add stratisd and stratis-cli and their dependencies Added: dbus-client-gen/ dbus-client-gen/repos/ dbus-client-gen/trunk/ dbus-client-gen/trunk/PKGBUILD python-dbus-client-gen/ python-dbus-client-gen/repos/ python-dbus-client-gen/trunk/ python-dbus-client-gen/trunk/PKGBUILD python-dbus-signature-pyparsing/ python-dbus-signature-pyparsing/repos/ python-dbus-signature-pyparsing/trunk/ python-dbus-signature-pyparsing/trunk/PKGBUILD python-hs-dbus-signature/ python-hs-dbus-signature/repos/ python-hs-dbus-signature/trunk/ python-hs-dbus-signature/trunk/PKGBUILD python-into-dbus/ python-into-dbus/repos/ python-into-dbus/trunk/ python-into-dbus/trunk/PKGBUILD python-justbases/ python-justbases/repos/ python-justbases/trunk/ python-justbases/trunk/PKGBUILD python-justbytes/ python-justbytes/repos/ python-justbytes/trunk/ python-justbytes/trunk/PKGBUILD stratis-cli/ stratis-cli/repos/ stratis-cli/trunk/ stratis-cli/trunk/PKGBUILD stratisd/ stratisd/repos/ stratisd/trunk/ stratisd/trunk/PKGBUILD ------------------------------------------------+ dbus-client-gen/trunk/PKGBUILD | 31 ++++++++++++++ python-dbus-client-gen/trunk/PKGBUILD | 38 ++++++++++++++++++ python-dbus-signature-pyparsing/trunk/PKGBUILD | 35 ++++++++++++++++ python-hs-dbus-signature/trunk/PKGBUILD | 30 ++++++++++++++ python-into-dbus/trunk/PKGBUILD | 36 +++++++++++++++++ python-justbases/trunk/PKGBUILD | 28 +++++++++++++ python-justbytes/trunk/PKGBUILD | 28 +++++++++++++ stratis-cli/trunk/PKGBUILD | 44 +++++++++++++++++++++ stratisd/trunk/PKGBUILD | 48 +++++++++++++++++++++++ 9 files changed, 318 insertions(+) Added: dbus-client-gen/trunk/PKGBUILD =================================================================== --- dbus-client-gen/trunk/PKGBUILD (rev 0) +++ dbus-client-gen/trunk/PKGBUILD 2018-09-29 18:01:58 UTC (rev 387933) @@ -0,0 +1,31 @@ +# Maintainer: Jiachen YANG <farsee...@archlinux.org> +# Contributor: Christopher A. Williamson <h...@chrisaw.com> + +pkgname='dbus-client-gen' +pkgver=0.3 +pkgrel=1 +pkgdesc='A library for generating some simple classes and functions useful for a Python D-Bus client' +arch=('any') +license=('MPL2') +url='https://stratis-storage.github.io/' +depends=('python-dbus') +makedepends=('python-pylint') +checkdepends=('python-nose' 'python-hypothesis') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/stratis-storage/${pkgname}/archive/v${pkgver}.tar.gz") +sha256sums=('41fc256db0adedd7489c2744b0dd09fc53c5e4b680d31775fac96a4708d62338') + +check() { + cd "${pkgname}-${pkgver}" + nosetests +} + +package() { + cd "${pkgname}-${pkgver}" + + install -d -m 755 "${pkgdir}/usr/share/licenses/${pkgname}" + install -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}" + + python setup.py install --root="${pkgdir}" --optimize=1 +} + +# vim: ts=2 sw=2 et: Added: python-dbus-client-gen/trunk/PKGBUILD =================================================================== --- python-dbus-client-gen/trunk/PKGBUILD (rev 0) +++ python-dbus-client-gen/trunk/PKGBUILD 2018-09-29 18:01:58 UTC (rev 387933) @@ -0,0 +1,38 @@ +# Maintainer: Jiachen YANG <farsee...@archlinux.org> +# Contributor: Christopher A. Williamson <h...@chrisaw.com> + +pkgname='python-dbus-client-gen' +_srcname='dbus-python-client-gen' +pkgver=0.6 +pkgrel=8 +pkgdesc='A Python Library for Generating dbus-python Client Code' +arch=('any') +license=('MPL2') +url='https://stratis-storage.github.io/' +depends=('python-dbus' 'dbus-client-gen' 'python-into-dbus') +makedepends=('git' 'python-pylint') +checkdepends=('python-nose') +provides=("${pkgname}") +conflicts=("${pkgname}") +source=( + "${_srcname}-${pkgver}.tar.gz::https://github.com/stratis-storage/${_srcname}/archive/v${pkgver}.tar.gz" +) +sha256sums=( + '6fa334ce36c220f018f89cefa560b43ae7ec36a02bba3ab8bec2e4a4103e35e0' +) + +check() { + cd "${_srcname}-${pkgver}" + nosetests +} + +package() { + cd "${_srcname}-${pkgver}" + + install -d -m 755 "${pkgdir}/usr/share/licenses/${pkgname}" + install -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}" + + python setup.py install --root="${pkgdir}" --optimize=1 +} + +# vim: ts=2 sw=2 et: Added: python-dbus-signature-pyparsing/trunk/PKGBUILD =================================================================== --- python-dbus-signature-pyparsing/trunk/PKGBUILD (rev 0) +++ python-dbus-signature-pyparsing/trunk/PKGBUILD 2018-09-29 18:01:58 UTC (rev 387933) @@ -0,0 +1,35 @@ +# Maintainer: Jiachen YANG <farsee...@archlinux.org> +# Contributor: Christopher A. Williamson <h...@chrisaw.com> + +pkgname='python-dbus-signature-pyparsing' +_srcname='dbus-signature-pyparsing' +pkgver=0.03 +pkgrel=2 +pkgdesc='A Parser for a D-Bus Signature' +arch=('any') +license=('apache2') +url='stratis-storage.github.io' +makedepends=('git' 'python-pylint') +checkdepends=('python-nose' 'python-hypothesis' 'python-hs-dbus-signature') +source=( + "${_srcname}-${pkgver}.tar.gz::https://github.com/stratis-storage/${_srcname}/archive/v${pkgver}.tar.gz" +) +sha256sums=( + '263a41161304f239213c0e1234f4afdbe28b7103e60129f0448ae14fb0e9c52b' +) + +check() { + cd "${_srcname}-${pkgver}" + nosetests +} + +package() { + cd "${_srcname}-${pkgver}" + + install -d -m 755 "${pkgdir}/usr/share/licenses/${pkgname}" + install -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}" + + python setup.py install --root="${pkgdir}" --optimize=1 +} + +# vim: ts=2 sw=2 et: Added: python-hs-dbus-signature/trunk/PKGBUILD =================================================================== --- python-hs-dbus-signature/trunk/PKGBUILD (rev 0) +++ python-hs-dbus-signature/trunk/PKGBUILD 2018-09-29 18:01:58 UTC (rev 387933) @@ -0,0 +1,30 @@ +# Maintainer: Jiachen YANG <farsee...@gmail.com> + +pkgname=python-hs-dbus-signature +_pkgname=hs-dbus-signature +pkgver=0.05 +pkgrel=1 +pkgdesc="dbus signature hypothesis strategy generator" +url="https://github.com/stratis-storage/hs-dbus-signature" +depends=('python-hypothesis' ) +makedepends=('python' 'python-setuptools') +checkdepends=('python-nose') +license=('MPL2') +arch=('any') +source=("https://github.com/stratis-storage/${_pkgname}/archive/v${pkgver}.tar.gz") +md5sums=('8f2db597cc61e45562d7146d7de51360') + +check() { + cd $srcdir/${_pkgname}-${pkgver} + nosetests +} + +build() { + cd $srcdir/${_pkgname}-${pkgver} + python setup.py build +} + +package() { + cd $srcdir/${_pkgname}-${pkgver} + python setup.py install --root="$pkgdir" --optimize=1 +} Added: python-into-dbus/trunk/PKGBUILD =================================================================== --- python-into-dbus/trunk/PKGBUILD (rev 0) +++ python-into-dbus/trunk/PKGBUILD 2018-09-29 18:01:58 UTC (rev 387933) @@ -0,0 +1,36 @@ +# Maintainer: Jiachen YANG <farsee...@archlinux.org> +# Contributor: Christopher A. Williamson <h...@chrisaw.com> + +pkgname='python-into-dbus' +_srcname='into-dbus-python' +pkgver=0.06 +pkgrel=3 +pkgdesc='Facilities for converting an object that inhabits core Python types, e.g., lists, ints, dicts, to an object that inhabits dbus-python types, e.g., dbus.Array, dbus.UInt32, dbus.Dictionary based on a specified dbus signature.' +arch=('any') +license=('Apache') +url='stratis-storage.github.io' +depends=('python-dbus' 'python-dbus-signature-pyparsing') +makedepends=('git' 'python-pylint') +checkdepends=('python-nose' 'python-hypothesis') +source=( + "${_srcname}-${pkgver}.tar.gz::https://github.com/stratis-storage/${_srcname}/archive/v${pkgver}.tar.gz" +) +sha256sums=( + 'e2ec6496e55d1bc560db1075ad2038b760e01b9ad425c8d8632e6b0873b588cb' +) + +check() { + cd "${_srcname}-${pkgver}" + nosetests +} + +package() { + cd "${_srcname}-${pkgver}" + + install -d -m 755 "${pkgdir}/usr/share/licenses/${pkgname}" + install -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}" + + python setup.py install --root="${pkgdir}" --optimize=1 +} + +# vim: ts=2 sw=2 et: Added: python-justbases/trunk/PKGBUILD =================================================================== --- python-justbases/trunk/PKGBUILD (rev 0) +++ python-justbases/trunk/PKGBUILD 2018-09-29 18:01:58 UTC (rev 387933) @@ -0,0 +1,28 @@ +# Maintainer: Jianchen YANG <farsee...@gmail.com> + +pkgname=python-justbases +_pkgname=justbases +pkgver=0.09 +pkgrel=1 +pkgdesc="conversion of ints and rationals to any base" +url="https://github.com/mulkieran/justbases" +depends=('python') +checkdepends=('python-nose' 'python-hypothesis') +license=('GPL') +arch=('any') +source=("https://github.com/mulkieran/${_pkgname}/archive/v${pkgver}.tar.gz") +md5sums=('d1843d3c672e199662e63a4dd189c809') + +check() { + cd $srcdir/${_pkgname}-$pkgver + nosetests +} +build() { + cd $srcdir/${_pkgname}-$pkgver + python setup.py build +} + +package() { + cd $srcdir/${_pkgname}-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} Added: python-justbytes/trunk/PKGBUILD =================================================================== --- python-justbytes/trunk/PKGBUILD (rev 0) +++ python-justbytes/trunk/PKGBUILD 2018-09-29 18:01:58 UTC (rev 387933) @@ -0,0 +1,28 @@ +# Maintainer: Jianchen YANG <farsee...@gmail.com> + +pkgname=python-justbytes +_pkgname=justbytes +pkgver=0.11 +pkgrel=1 +pkgdesc="computing with and displaying bytes" +url="http://pythonhosted.org/justbytes/" +depends=('python' 'python-justbases') +checkdepends=('python-nose' 'python-hypothesis' 'python-pylint') +license=('GPL2+') +arch=('any') +source=("https://github.com/mulkieran/${_pkgname}/archive/v${pkgver}.tar.gz") +md5sums=('3ef7b9b6a500ec3f12d2d121765d641f') + +check() { + cd $srcdir/${_pkgname}-$pkgver + nosetests +} +build() { + cd $srcdir/${_pkgname}-$pkgver + python setup.py build +} + +package() { + cd $srcdir/${_pkgname}-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} Added: stratis-cli/trunk/PKGBUILD =================================================================== --- stratis-cli/trunk/PKGBUILD (rev 0) +++ stratis-cli/trunk/PKGBUILD 2018-09-29 18:01:58 UTC (rev 387933) @@ -0,0 +1,44 @@ +# Maintainer: Jiachen YANG <farsee...@archlinux.org> +# Contributor: Dan Beste <dan.ray.be...@gmail.com> + +pkgname='stratis-cli' +pkgver=1.0.0 +_pkgver=1.0.0 +pkgrel=1 +pkgdesc='A CLI for the Stratis Project.' +arch=('any') +license=('Apache') +url='https://stratis-storage.github.io/' +depends=('python' 'dbus-client-gen' 'python-dbus-client-gen' 'python-dbus-signature-pyparsing' 'python-into-dbus' 'python-justbytes' 'python-justbases' 'python-dateutil') +makedepends=('dbus-glib' 'git' 'mpfr' 'python-argparse' 'python-dbus' 'python-pip' 'asciidoc') +# checkdepends=('python-nose' 'python-hypothesis' 'stratisd') +source=( + "${pkgname}-${_pkgver}.tar.gz::https://github.com/stratis-storage/stratis-cli/archive/v${_pkgver}.tar.gz" +) +sha256sums=('8e9b755740b121ed44ca4918c9bdb53ed0929902bbd64417c455ef7623bc9dd6') + +### ignore tests because it requires root permission to access stratisd +# check() { +# cd "${pkgname}-${_pkgver}" +# export STRATISD="/usr/bin/stratisd" +# nosetests +# } + +build () { + cd "${pkgname}-${_pkgver}/docs" + make stratis.8 +} +package() { + cd "${pkgname}-${_pkgver}" + + python setup.py install --root="${pkgdir}" --optimize=1 + + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}" + install -D -m644 "shell-completion/bash/stratis" "$pkgdir/usr/share/bash-completion/completions/stratis" + install -D -m644 "shell-completion/zsh/_stratis" "$pkgdir/usr/share/zsh/site-functions/_stratis" + + cd "docs" + install -D -m644 stratis.8 "${pkgdir}/usr/share/man/man8/stratis.8" +} + +# vim: ts=2 sw=2 et: Added: stratisd/trunk/PKGBUILD =================================================================== --- stratisd/trunk/PKGBUILD (rev 0) +++ stratisd/trunk/PKGBUILD 2018-09-29 18:01:58 UTC (rev 387933) @@ -0,0 +1,48 @@ +# Maintainer: Jiachen YANG <farsee...@archlinux.org> +# Contributor: Dan Beste <dan.ray.be...@gmail.com> + +pkgname='stratisd' +pkgver=1.0.0 +pkgrel=1 +pkgdesc='Easy to use local storage management for Linux.' +arch=('x86_64') +url='https://stratis-storage.github.io/' +license=('MPL2') +makedepends=('asciidoc' 'cargo' 'rust') +depends=('dbus') +optdepends=('stratis-cli: command line interface') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/stratis-storage/stratisd/archive/v${pkgver}.tar.gz") +sha256sums=('3e6582cec963c2b83fa3e22fb4676c2246660cc72e7ea2ff25c3c9a07a3291f0') + +build() { + cd "${pkgname}-${pkgver}" + + # Append '--release' to `cargo build` (line 24): + sed -i 's/cargo build --target/cargo build --release --target/' Makefile + + # Release + make build + make stratisd.8 + + # patch systemd config + sed -i 's,/usr/libexec,/usr/bin,g' stratisd.service +} + +check() { + cd "${pkgname}-${pkgver}" + + make test +} + +package() { + cd "${pkgname}-${pkgver}" + + install -D -m755 "target/${CARCH}-unknown-linux-gnu/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + install -D -m644 stratisd.service "${pkgdir}/usr/lib/systemd/system/stratisd.service" + install -D -m644 org.storage.stratis1.service "${pkgdir}/usr/share/dbus-1/system-services/org.storage.stratis1.service" + install -D -m644 stratisd.conf "${pkgdir}/etc/dbus-1/system.d/stratisd.conf" + install -D -m644 docs/stratisd.8 "${pkgdir}/usr/share/man/man8/stratisd.8" + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim: ts=2 sw=2 et: