# Contributor: Leonardo Arena # Maintainer: Natanael Copa pkgname=targetcli pkgver=2.1.56 pkgrel=0 pkgdesc="Administration shell for storage targets" url="https://github.com/open-iscsi/targetcli-fb" arch="noarch" license="AGPL-3.0-or-later" depends="python3 py3-configobj py3-configshell py3-ethtool py3-ipaddr py3-parsing py3-rtslib py3-simpleparse py3-six py3-udev py3-dbus dbus py3-urwid py3-gobject3" makedepends="$depends_dev py3-setuptools" subpackages="$pkgname-doc $pkgname-openrc $pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/open-iscsi/targetcli-fb/archive/v$pkgver.tar.gz targetcli.initd targetcli.confd " options="!check" # no test suite builddir="$srcdir"/$pkgname-fb-$pkgver # secfixes: # 2.1.53-r0: # - CVE-2020-13867 # - CVE-2020-10699 build() { python3 setup.py build } package() { python3 setup.py install --root="$pkgdir" mkdir -p "$pkgdir"/var/lib/target/fabric mkdir -p "$pkgdir"/etc/target install -D -m644 $pkgname.8 -t \ "$pkgdir"/usr/share/man/man8 install -D -m755 "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname install -D -m644 "$srcdir"/$pkgname.confd \ "$pkgdir"/etc/conf.d/$pkgname } sha512sums=" ad115fc996a33d4b1800edec702cfcae2c4e86cceeb539163a6686cbdbdf285169aae94dd30d0bc7c5ac9c96e47d30bdb85006826c2345e67f0096a5b86143bd targetcli-2.1.56.tar.gz e58d00944e9a985ab1ce2ca870920775a1efcfb3324300ff6e5ce8860fd4efc19f91ddbd9155bce070b2be82e914b87105a8848dffa9007dfc7d54b272feb0ab targetcli.initd b0cedfb351dabcd6febe660dd95b5f2bab89f38849d346e46f57c32a4057f6bd2347e9a93a9e9010f4c7ff91f16c0fd33f02ad0cacf9fb801de76da4d25ad9e3 targetcli.confd "