2014-05-03 15:53:48 +00:00
|
|
|
# Contributor: Johannes Dewender arch at JonnyJD dot net
|
2014-12-05 02:34:20 +00:00
|
|
|
pkgname=('python-rtslib-fb' 'python2-rtslib-fb')
|
2014-05-03 15:53:48 +00:00
|
|
|
_pkgname=rtslib-fb
|
2015-06-29 00:01:51 +00:00
|
|
|
pkgver=2.1.fb57
|
2015-01-21 01:12:05 +00:00
|
|
|
pkgrel=1
|
2014-05-03 15:53:48 +00:00
|
|
|
pkgdesc="free branch version of the LIO target API"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/agrover/rtslib-fb"
|
|
|
|
license=('Apache')
|
2014-12-05 02:48:20 +00:00
|
|
|
makedepends=('python-setuptools' 'python2-setuptools')
|
2014-05-03 15:53:48 +00:00
|
|
|
backup=()
|
|
|
|
options=()
|
|
|
|
install=
|
|
|
|
source=(https://fedorahosted.org/releases/t/a/targetcli-fb/$_pkgname-$pkgver.tar.gz target.service)
|
2015-06-29 00:01:51 +00:00
|
|
|
sha256sums=('d5d81a78046b4c228d29ba88d9950e0f63858e5fcf601e3d0f8bf107fbaadc03'
|
2014-07-05 02:03:10 +00:00
|
|
|
'74b9e5c11eab1781aa8b43680b429080ae800fbcdafd29626791b5426a4cdea8')
|
2014-05-03 15:53:48 +00:00
|
|
|
|
2015-06-19 00:35:13 +00:00
|
|
|
prepare() {
|
|
|
|
cd "$srcdir/$_pkgname-$pkgver"
|
|
|
|
#patch -p1 < ../setup-syntax.patch
|
|
|
|
}
|
|
|
|
|
2014-05-03 15:53:48 +00:00
|
|
|
|
2014-12-05 02:34:20 +00:00
|
|
|
package_python-rtslib-fb() {
|
2015-06-19 00:35:13 +00:00
|
|
|
depends=('python' 'python-six')
|
2014-12-05 02:34:20 +00:00
|
|
|
conflicts=('python2-rtslib' 'targetcli-fb<=2.1.fb31')
|
|
|
|
|
2014-05-03 15:53:48 +00:00
|
|
|
cd "$srcdir/$_pkgname-$pkgver"
|
2014-12-05 02:34:20 +00:00
|
|
|
python setup.py install --root="$pkgdir/" --optimize=1
|
2014-05-03 15:53:48 +00:00
|
|
|
|
|
|
|
install -Dm 644 doc/targetctl.8 "$pkgdir/usr/share/man/man8/targetctl.8"
|
|
|
|
install -Dm 644 doc/saveconfig.json.5 "$pkgdir/usr/share/man/man5/saveconfig.json.5"
|
|
|
|
|
|
|
|
# arch specific
|
|
|
|
cd "$srcdir"
|
|
|
|
install -d "$pkgdir/etc/target"
|
|
|
|
install -d "$pkgdir/etc/target/backup"
|
|
|
|
# systemd
|
|
|
|
mkdir -p "$pkgdir/usr/lib/systemd/system"
|
|
|
|
cp target.service "$pkgdir/usr/lib/systemd/system/"
|
|
|
|
}
|
|
|
|
|
2014-12-05 02:34:20 +00:00
|
|
|
package_python2-rtslib-fb() {
|
2015-06-19 00:35:13 +00:00
|
|
|
depends=('python2' 'python2-six')
|
2014-12-05 02:34:20 +00:00
|
|
|
conflicts=('python2-rtslib')
|
|
|
|
|
|
|
|
cd "$srcdir/$_pkgname-$pkgver"
|
|
|
|
python2 setup.py install --root="$pkgdir/" --optimize=1
|
|
|
|
# the service file and targetctl script is in python-rtslib-fb
|
|
|
|
rm -r "$pkgdir/usr/bin"
|
|
|
|
}
|
|
|
|
|
2014-05-03 15:53:48 +00:00
|
|
|
# vim:set ts=2 sw=2 et:
|