aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-rtslib
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-06-08 06:58:54 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-06-08 07:00:50 +0000
commit1537c57b016a729389583d1574a477921beffcab (patch)
tree6c33b65fadabd7d6bdb567cc504f6e54cfc7d368 /main/py-rtslib
parent105fbcec3aee71a565841af3e40a8b48d96e2fbb (diff)
downloadaports-1537c57b016a729389583d1574a477921beffcab.tar.bz2
aports-1537c57b016a729389583d1574a477921beffcab.tar.xz
testing/py-rtslib: move to main
Diffstat (limited to 'main/py-rtslib')
-rw-r--r--main/py-rtslib/APKBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/main/py-rtslib/APKBUILD b/main/py-rtslib/APKBUILD
new file mode 100644
index 0000000000..98ffa9058a
--- /dev/null
+++ b/main/py-rtslib/APKBUILD
@@ -0,0 +1,66 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=py-rtslib
+_realname=rtslib
+pkgver=2.1_p14
+_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/agrover/rtslib-fb"
+arch="noarch"
+license="AGPLv3"
+depends="python"
+depends_dev="py-configobj py-ethtool py-ipaddr"
+makedepends="$depends_dev"
+install=""
+subpackages=
+source="http://dev.alpinelinux.org/archive/rtslib/$_realname-$_ver.tar.gz"
+
+_giturl="https://github.com/agrover/rtslib-fb.git"
+_gittag=v$_ver
+
+_builddir="$srcdir"/$_realname
+
+snapshot() {
+ mkdir -p "$srcdir"
+ cd "${SRCDEST:-$srcdir}"
+ if ! [ -d $_realname-fb.git ]; then
+ git clone --bare $_giturl || return 1
+ cd $_realname-fb.git
+ else
+ cd $_realname-fb.git
+ git fetch || return 1
+ fi
+
+ git archive --prefix=$_realname/ -o "$SRCDEST"/$_realname-$_ver.tar.gz $_gittag
+ scp "$SRCDEST"/$_realname-$_ver.tar.gz dev.alpinelinux.org:/archive/$_realname
+}
+
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ return 0
+}
+
+package() {
+ cd "$_builddir"
+ python 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
+}
+
+md5sums="95881fd736567ccd911fbee7cc94a5ea rtslib-2.1.fb14.tar.gz"