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.
![]() |
VOOZH | about |
| 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: | eworm |
| Votes: | 24 |
| Popularity: | 0.000042 |
| First Submitted: | 2012-02-27 01:05 (UTC) |
| Last Updated: | 2026-06-08 16:50 (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.
@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.
@sanerb why don't you adopt the package?
!! 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.
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.
@bobpaul 3.0.1 was released and it fixed the module name problem.
@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.
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"
}
Hello, please consider dropping python-ethtool optdepend, it's dead upstream and fails to build with python3.12.
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"
}