Package Details: targetcli-fb 3.0.1-1

Git Clone URL: https://aur.archlinux.org/targetcli-fb.git (read-only, click to copy)
Package Base: targetcli-fb
Description: free branch of the targetcli LIO administration shell (iSCSI + Co)
Upstream URL: https://github.com/open-iscsi/targetcli-fb
Licenses: Apache-2.0
Provides: targetcli
Submitter: JonnyJD
Maintainer: starfry
Last Packager: starfry
Votes: 24
Popularity: 0.079815
First Submitted: 2012-02-27 01:05 (UTC)
Last Updated: 2025-06-12 18:44 (UTC)

Latest Comments

1 2 3 4 5 6 .. 8 Next › Last »

starfry commented on 2025-06-12 19:14 (UTC)

Hello, I've taken this on as nobody else was owning it. I've applied the most recent PKGBUILD from below @sanerb and it works fine for me with python-rtslib-fb 2.2.3.

sanerb commented on 2025-05-30 06:55 (UTC)

@thekoma i don't have time to maintain it. :) the only reason the updated PKGBUILD is below is because i had the need to get it working at the moment.

thekoma commented on 2025-05-26 09:54 (UTC)

@sanerb why don't you adopt the package?

sanerb commented on 2025-05-13 18:03 (UTC)

!! WARNING !! restoreconfig subcommand is broken in 3.0.1 with python-rtslib-fb 2.2.2!

I've provided an updated PKGBUILD over on its AUR for 2.2.3.

sanerb commented on 2025-05-13 13:13 (UTC)

Confirmed v3.0.1 fixes module naming issue.

Also confirming that https://aur.archlinux.org/packages/python-rtslib-fb 2.2.2-1 works without a hitch.

Updated for 3.0.1 including @bobpaul modifications:

# Contributor: Johannes Dewender  arch at JonnyJD dot net
pkgname=targetcli-fb
pkgver=3.0.1
pkgrel=1
pkgdesc="free branch of the targetcli LIO administration shell (iSCSI + Co)"
arch=('any')
url="https://github.com/open-iscsi/targetcli-fb"
license=('Apache')
groups=()
depends=(
  'python-rtslib-fb'
  'python-configshell-fb'
  'python-dbus'
  'python-gobject'
)
makedepends=(
  'python-build'
  'python-hatch-vcs'
  'python-hatchling'
  'python-installer'
  'python-wheel'
)
optdepends=()
provides=('targetcli')
backup=()
options=()
install=
source=(https://github.com/open-iscsi/targetcli-fb/archive/v${pkgver}.tar.gz)
sha512sums=('e4ed5b1911ba8858fcf8fe39580462b7b645672f836b195fba0549fb5f9532bf5223a7034bf92c14e5d01c106e388d8ec942cacac421dfd1271f9916ac47f4c0')


build() {
  cd "$srcdir/$pkgname-$pkgver"
  SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python -m build --wheel --no-isolation
  gzip --stdout targetcli.8 > "targetcli.8.gz"
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl

  install -d -m 750 "${pkgdir}/etc/target"
  install -D -m 644 targetcli.8.gz "$pkgdir/usr/share/man/man8/targetcli.8.gz"
  install -D -m 644 systemd/targetclid.service "$pkgdir/usr/lib/systemd/system/targetclid.service"
  install -D -m 644 systemd/targetclid.socket "$pkgdir/usr/lib/systemd/system/targetclid.socket"
  install -D -m 644 README.md "$pkgdir/usr/share/doc/targetcli/README.md"
  install -D -m 644 THANKS "$pkgdir/usr/share/doc/targetcli/THANKS"
}

Confirmed it works and starts up, shell able to connect. Haven't tried setting up any targets yet.

zomgugoff commented on 2025-04-22 17:19 (UTC)

@bobpaul 3.0.1 was released and it fixed the module name problem.

bobpaul commented on 2025-02-09 18:45 (UTC) (edited on 2025-02-09 22:53 (UTC) by bobpaul)

@sanerb's PKGBUILD builds for me, but I needed to add python-hatchling and python-hatch-vcs to the makedepends. I also had to add mkdir -p "$pkgdir"/etc/target to the package() function

And I when I try to run targetcli I get ModuleNotFoundError: No module named 'rtslib_fb.utils'; 'rtslib_fb' is not a package. I had to downgrade python-rtslib-fb to v2.1.76 and that fixed it.

sanerb commented on 2025-01-10 05:40 (UTC) (edited on 2025-01-10 06:21 (UTC) by sanerb)

PKGBUILD for v3.0.0 (probably needs further work):

# Contributor: Johannes Dewender  arch at JonnyJD dot net
pkgname=targetcli-fb
pkgver=3.0.0
pkgrel=1
pkgdesc="free branch of the targetcli LIO administration shell (iSCSI + Co)"
arch=('any')
url="https://github.com/open-iscsi/targetcli-fb"
license=('Apache')
groups=()
depends=('python-rtslib-fb' 'python-configshell-fb'
         'python-dbus' 'python-gobject')
makedepends=(python-build python-installer python-wheel)
optdepends=()
provides=('targetcli')
backup=()
options=()
install=
source=(https://github.com/open-iscsi/targetcli-fb/archive/v${pkgver}.tar.gz)
sha512sums=('b9a0dac75d979df7639b88f755194c41ea2156af7ebfa43aae27186ebe5e46ca7d9e24782c53da9d8915ca0772a7ba089dd725ce8c7cf05b1c0a85b7cd1fc929')


build() {
  cd "$srcdir/$pkgname-$pkgver"
  SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python -m build --wheel --no-isolation
  gzip --stdout targetcli.8 > "targetcli.8.gz"
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl

  install -D -m 644 targetcli.8.gz "$pkgdir/usr/share/man/man8/targetcli.8.gz"
  install -D -m 644 systemd/targetclid.service "$pkgdir/usr/lib/systemd/system/targetclid.service"
  install -D -m 644 systemd/targetclid.socket "$pkgdir/usr/lib/systemd/system/targetclid.socket"
  install -D -m 644 README.md "$pkgdir/usr/share/doc/targetcli/README.md"
  install -D -m 644 THANKS "$pkgdir/usr/share/doc/targetcli/THANKS"
}

micwoj92 commented on 2024-06-12 21:42 (UTC)

Hello, please consider dropping python-ethtool optdepend, it's dead upstream and fails to build with python3.12.

zomgugoff commented on 2023-06-17 08:41 (UTC)

Updated for 2.1.56

# Contributor: Johannes Dewender  arch at JonnyJD dot net
pkgname=targetcli-fb
pkgver=2.1.56
pkgrel=1
pkgdesc="free branch of the targetcli LIO administration shell (iSCSI + Co)"
arch=('any')
url="https://github.com/open-iscsi/targetcli-fb"
license=('Apache')
groups=()
depends=('python-rtslib-fb>=2.1.fb52' 'python-configshell-fb>=1.1.fb17'
         'python-dbus' 'python-gobject')
makedepends=('python-setuptools')
optdepends=('python-ethtool')
provides=('targetcli')
backup=()
options=()
install=
source=(https://github.com/open-iscsi/targetcli-fb/archive/v${pkgver}.tar.gz)
sha512sums=('ad115fc996a33d4b1800edec702cfcae2c4e86cceeb539163a6686cbdbdf285169aae94dd30d0bc7c5ac9c96e47d30bdb85006826c2345e67f0096a5b86143bd')


build() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -i "s|/lib/systemd/system|lib/systemd/system|" setup.py
  python setup.py build
  gzip --stdout targetcli.8 > "targetcli.8.gz"
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  python setup.py install --skip-build --root="$pkgdir/" --optimize=1

  install -D -m 644 targetcli.8.gz "$pkgdir/usr/share/man/man8/targetcli.8.gz"
}