Package Details: python-rtslib-fb 2.1.76-1

Git Clone URL: https://aur.archlinux.org/python-rtslib-fb.git (read-only, click to copy)
Package Base: python-rtslib-fb
Description: free branch version of the LIO target API
Upstream URL: https://github.com/open-iscsi/rtslib-fb
Licenses: Apache
Conflicts: python2-rtslib, targetcli-fb
Submitter: JonnyJD
Maintainer: fuhry
Last Packager: fuhry
Votes: 9
Popularity: 0.000000
First Submitted: 2013-10-08 20:54 (UTC)
Last Updated: 2023-12-08 17:30 (UTC)

Latest Comments

1 2 Next › Last »

zomgugoff commented on 2023-06-17 08:39 (UTC) (edited on 2023-06-17 08:39 (UTC) by zomgugoff)

Updated for 2.1.76. target.service was internalized so there's a minor path change.

# Contributor: Johannes Dewender  arch at JonnyJD dot net
pkgname='python-rtslib-fb'
_pkgname=rtslib-fb
pkgver=2.1.76
pkgrel=1
pkgdesc="free branch version of the LIO target API"
arch=('any')
url="https://github.com/open-iscsi/$_pkgname"
license=('Apache')
depends=('python' 'python-six' 'python-pyudev')
conflicts=('python2-rtslib' 'targetcli-fb<=2.1.fb31')
makedepends=('python-setuptools' 'python-pyudev')
source=(
  "https://github.com/open-iscsi/$_pkgname/archive/v${pkgver}.tar.gz"
)

sha512sums=('50bc9f4ebff71cc87fd62036ff9d929fb1e5989be6251b1111904e76a7c026215692dc8930b90552a4ff850c6252338e420fe710993b8c8a0c737b65590a520d'
)

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  python setup.py install --root="$pkgdir/" --optimize=1
  install -Dm644 doc/targetctl.8 "$pkgdir/usr/share/man/man8/targetctl.8"
  install -Dm644 doc/saveconfig.json.5 "$pkgdir/usr/share/man/man5/saveconfig.json.5"

  install -dm755 "$pkgdir/etc/target/backup"
  install -Dm644 "$srcdir/$_pkgname-$pkgver/systemd/target.service" "$pkgdir/usr/lib/systemd/system/target.service"

Xyne commented on 2021-02-15 13:36 (UTC) (edited on 2021-02-15 13:53 (UTC) by Xyne)

Here's a cleaner version of the PKGBUILD (no empty variables, no split-package syntax for a single package, consistent user of "install" command and use of _pkgname variable where appropriate). You can replace the current PKGBUILD with this without bumping the release because the built package is equivalent.

# Contributor: Johannes Dewender  arch at JonnyJD dot net
pkgname='python-rtslib-fb'
_pkgname=rtslib-fb
pkgver=2.1.74
pkgrel=1
pkgdesc="free branch version of the LIO target API"
arch=('any')
url="https://github.com/open-iscsi/$_pkgname"
license=('Apache')
depends=('python' 'python-six' 'python-pyudev')
conflicts=('python2-rtslib' 'targetcli-fb<=2.1.fb31')
makedepends=('python-setuptools' 'python-pyudev')
source=(
  "https://github.com/open-iscsi/$_pkgname/archive/v${pkgver}.tar.gz"
  target.service
)
sha512sums=(
  '181b57f699dd4e6bc050585e1abffe75a7eaf5ae8325220d61d37f932912f2cec878c4643172c584f0d4c231441d25ff0e09aa1f48c2305061b75acdce051c86'
  '3c634f1c466d0a8c3dd2b57a230438aaeeb0e66324863a2ded57dd69a2ca5946f83c4ab511766f510f3e63b43aedcf7e368bcf5bc325ee69c016bb0bb2612de5'
)

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  python setup.py install --root="$pkgdir/" --optimize=1
  install -Dm644 doc/targetctl.8 "$pkgdir/usr/share/man/man8/targetctl.8"
  install -Dm644 doc/saveconfig.json.5 "$pkgdir/usr/share/man/man5/saveconfig.json.5"

  install -dm755 "$pkgdir/etc/target/backup"
  install -Dm644 "$srcdir/target.service" "$pkgdir/usr/lib/systemd/system/target.service"
}

# vim:set ts=2 sw=2 et:

jamespharvey20 commented on 2019-09-24 02:23 (UTC)

For some reason, upstream URL is from github user "agrover", instead of "open-iscsi". When going to agrover, it makes it look like this package is up to date with fb69, but the real upstream released 2.1.70.

jamespharvey20 commented on 2019-03-25 08:56 (UTC) (edited on 2019-03-25 08:58 (UTC) by jamespharvey20)

Downloaded source filenames must be unique, for those who set SRCDEST in /etc/makepkg.conf. See https://wiki.archlinux.org/index.php/PKGBUILD#source

Please add something like this to the beginning of source:

source=("${_pkgname}-${pkgver}.tar.gz"::https...

AlexanderS commented on 2019-03-17 03:45 (UTC) (edited on 2019-03-17 03:45 (UTC) by AlexanderS)

May have to just drop the Python 2 support.

Yes, it builds fine without the python2 stuff (and targetcli just works).

mikesd commented on 2019-03-13 12:00 (UTC)

I'll have a look at this on the weekend. May have to just drop the Python 2 support.

Asgaroth commented on 2019-03-12 14:54 (UTC)

I got to this package trying to install targetcli-fb, which is unable to install due to the python2-pyudev package being unavailable