aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-rtslib/APKBUILD
blob: 512d63ab3777be3a534613d7a1d676d6d5f4bc0c (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-rtslib
_realname=rtslib-fb
pkgver=2.1_p63
_ver=${pkgver/_rc/rc}
_ver=${_ver/_p/.fb}
pkgrel=1
pkgdesc="Python library that provides an object API to RisingTide Systems generic SCSI Target"
url="https://github.com/open-iscsi/rtslib-fb"
arch="noarch"
license="AGPLv3"
depends="python2"
makedepends="$depends_dev py-setuptools py-configobj py-ethtool py-ipaddr"
source="https://github.com/open-iscsi/rtslib-fb/archive/v${_ver}.tar.gz"
options="!check"
builddir="$srcdir"/${_realname}-${_ver}

prepare() {
	cd "$builddir"
	default_prepare
}

build() {
	cd "$builddir"
	return 0
}

package() {
	cd "$builddir"
	python2 setup.py install --root="$pkgdir"
#	install -D -m644 specs/ib_srpt.spec $pkgdir/var/lib/target/fabric/ib_srpt.spec
#	install -D -m644 specs/iscsi.spec $pkgdir/var/lib/target/fabric/iscsi.spec
#	install -D -m644 specs/loopback.spec $pkgdir/var/lib/target/fabric/loopback.spec
#	install -D -m644 specs/qla2xxx.spec $pkgdir/var/lib/target/fabric/qla2xxx.spec
#	install -D -m644 specs/tcm_fc.spec $pkgdir/var/lib/target/fabric/tcm_fc.spec
}

sha512sums="faf5732299def9f5eb9147f930e8b48c9e9a26a918b41aa60f06a1f079e6e0453eb3c2d19136b244ef2349c23d31b7fa15cb4a0b6302ffbcd878033a45a11d1a  v2.1.fb63.tar.gz"