aboutsummaryrefslogtreecommitdiffstats
path: root/community/targetcli/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-03-27 11:56:20 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-03-27 11:56:20 +0000
commitad3923a9bfdd586c9f2697e5ad255a92529bbb56 (patch)
treeb6431886809b7f756f34e927d3e79dbb98a7829d /community/targetcli/APKBUILD
parent8930f08b148025c2b8b528784fe32f9ad7d18132 (diff)
downloadaports-ad3923a9bfdd586c9f2697e5ad255a92529bbb56.tar.gz
aports-ad3923a9bfdd586c9f2697e5ad255a92529bbb56.tar.bz2
aports-ad3923a9bfdd586c9f2697e5ad255a92529bbb56.tar.xz
community/targetcli: modernize APKBUILD
Diffstat (limited to 'community/targetcli/APKBUILD')
-rw-r--r--community/targetcli/APKBUILD43
1 files changed, 9 insertions, 34 deletions
diff --git a/community/targetcli/APKBUILD b/community/targetcli/APKBUILD
index 53224d4081..6692500ac9 100644
--- a/community/targetcli/APKBUILD
+++ b/community/targetcli/APKBUILD
@@ -4,60 +4,35 @@ pkgname=targetcli
pkgver=2.1_p46
_ver=${pkgver/_rc/rc}
_ver=${_ver/_p/.fb}
-pkgrel=0
+pkgrel=1
pkgdesc="An administration shell for storage targets"
-url="https://github.com/agrover/targetcli-fb"
+url="https://github.com/open-iscsi/targetcli-fb"
arch="noarch"
license="AGPLv3"
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_dev=
makedepends="$depends_dev py-setuptools"
-install=""
subpackages="$pkgname-doc"
-source="$pkgname-$_ver.tar.gz::https://github.com/agrover/targetcli-fb/archive/v${_ver}.tar.gz
+source="$pkgname-$_ver.tar.gz::https://github.com/open-iscsi/targetcli-fb/archive/v${_ver}.tar.gz
targetcli.initd
targetcli.confd
"
-
-_giturl="git://github.com/agrover/targetcli-fb.git"
-_gittag=v$_ver
-
-_builddir="$srcdir"/${pkgname}-fb-${_ver}
-
-snapshot() {
- mkdir -p "$srcdir"
- cd "${SRCDEST:-$srcdir}"
- if ! [ -d targetcli-fb.git ]; then
- git clone --bare $_giturl || return 1
- cd targetcli-fb.git
- else
- cd targetcli-fb.git
- git fetch || return 1
- fi
- git archive --prefix=$pkgname/ -o "$SRCDEST"/$pkgname-$_ver.tar.gz $_gittag
- scp "$SRCDEST"/$pkgname-$_ver.tar.gz dev.alpinelinux.org:/archive/$pkgname/
-}
-
+options="!check"
+builddir="$srcdir"/${pkgname}-fb-${_ver}
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
+ cd "$builddir"
+ default_prepare
}
build() {
- cd "$_builddir"
+ cd "$builddir"
python2 setup.py build || return 1
gzip targetcli.8
}
package() {
- cd "$_builddir"
+ cd "$builddir"
python2 setup.py install --root="$pkgdir" || return 1
mkdir -p "$pkgdir"/var/lib/target/fabric
mkdir -p "$pkgdir"/etc/target