blob: f1ef89b378e8bb46f24b4f1b598a5d0423bcabe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=targetcli
pkgver=2.1_p47
_ver=${pkgver/_rc/rc}
_ver=${_ver/_p/.fb}
pkgrel=0
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"
makedepends="$depends_dev py-setuptools"
subpackages="$pkgname-doc"
source="$pkgname-$_ver.tar.gz::https://github.com/open-iscsi/targetcli-fb/archive/v${_ver}.tar.gz
targetcli.initd
targetcli.confd
"
options="!check"
builddir="$srcdir"/${pkgname}-fb-${_ver}
prepare() {
cd "$builddir"
default_prepare
}
build() {
cd "$builddir"
python2 setup.py build || return 1
gzip targetcli.8
}
package() {
cd "$builddir"
python2 setup.py install --root="$pkgdir" || return 1
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
install -D -m755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
install -D -m644 "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname || return 1
}
sha512sums="1b0ed2730cce7d4ec9b0b9d7d4d5cfe6836dae16824859730d8ef5f61ad31ca4a5a25abd2a54af93ae7611715918683538dadfa885a80b4591cc23a60b44d08d targetcli-2.1.fb47.tar.gz
ea886be1cf0b2c4266553f3b3f4072c2632ce28d8dd449f355fb2989fac16937a4d022622dad2d965b0b5e4c25e72e5a62fd52ba37b4fe2c334d2e06b4cd2c1b targetcli.initd
b0cedfb351dabcd6febe660dd95b5f2bab89f38849d346e46f57c32a4057f6bd2347e9a93a9e9010f4c7ff91f16c0fd33f02ad0cacf9fb801de76da4d25ad9e3 targetcli.confd"
|