aboutsummaryrefslogtreecommitdiffstats
path: root/community/targetcli/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/targetcli/APKBUILD')
-rw-r--r--community/targetcli/APKBUILD21
1 files changed, 8 insertions, 13 deletions
diff --git a/community/targetcli/APKBUILD b/community/targetcli/APKBUILD
index 1b7f275482..6d1995190e 100644
--- a/community/targetcli/APKBUILD
+++ b/community/targetcli/APKBUILD
@@ -9,39 +9,34 @@ pkgdesc="An administration shell for storage targets"
url="https://github.com/open-iscsi/targetcli-fb"
arch="noarch"
license="AGPL-3.0"
-depends="python2 py-configobj py-configshell py-ethtool py-ipaddr py-parsing
- py-rtslib py-simpleparse py-six py-udev py-dbus dbus py-urwid"
+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"
makedepends="$depends_dev py-setuptools"
subpackages="$pkgname-doc $pkgname-openrc"
source="$pkgname-$_ver.tar.gz::https://github.com/open-iscsi/targetcli-fb/archive/v${_ver}.tar.gz
targetcli.initd
targetcli.confd
"
-options="!check"
+options="!check" # no test suite
builddir="$srcdir"/${pkgname}-fb-${_ver}
-prepare() {
- cd "$builddir"
- default_prepare
-}
-
build() {
cd "$builddir"
- python2 setup.py build || return 1
+ python3 setup.py build
gzip targetcli.8
}
package() {
cd "$builddir"
- python2 setup.py install --root="$pkgdir" || return 1
+ python3 setup.py install --root="$pkgdir"
mkdir -p "$pkgdir"/var/lib/target/fabric
mkdir -p "$pkgdir"/etc/target
install -D -m644 $pkgname.8.gz \
- "$pkgdir"/usr/share/man/man8/$pkgname.8.gz || return 1
+ "$pkgdir"/usr/share/man/man8/$pkgname.8.gz
install -D -m755 "$srcdir"/$pkgname.initd \
- "$pkgdir"/etc/init.d/$pkgname || return 1
+ "$pkgdir"/etc/init.d/$pkgname
install -D -m644 "$srcdir"/$pkgname.confd \
- "$pkgdir"/etc/conf.d/$pkgname || return 1
+ "$pkgdir"/etc/conf.d/$pkgname
}
sha512sums="05fb6f638f808bf09089bdd110592b3ed3be49fc70cc1a71680de7bff40dc88425e69e9a99fdfcab712646cf131f78071edae46f214fdfee4b7090f47933c93a targetcli-2.1.fb49.tar.gz