mirror of
https://github.com/moparisthebest/arch-ppa
synced 2024-11-24 17:42:19 -05:00
Add packages needed for ISCSI target
This commit is contained in:
parent
b96f27869a
commit
c1a9c881e0
26
src/python-configshell-fb/.SRCINFO
Normal file
26
src/python-configshell-fb/.SRCINFO
Normal file
@ -0,0 +1,26 @@
|
||||
# Generated by mksrcinfo v8
|
||||
# Sun May 8 18:52:08 UTC 2016
|
||||
pkgbase = python-configshell-fb
|
||||
pkgdesc = python framework for building simple CLI applications (free branch)
|
||||
pkgver = 1.1.fb20
|
||||
pkgrel = 1
|
||||
url = https://github.com/agrover/configshell-fb
|
||||
arch = any
|
||||
license = Apache
|
||||
makedepends = python-setuptools
|
||||
makedepends = python2-setuptools
|
||||
source = https://fedorahosted.org/releases/t/a/targetcli-fb/configshell-fb-1.1.fb20.tar.gz
|
||||
sha256sums = 4a9f4b59ccd256a1c4d4c270be43798853a91d9fec29bd0ba006b88b7476f383
|
||||
|
||||
pkgname = python-configshell-fb
|
||||
depends = python-pyparsing
|
||||
depends = python-urwid
|
||||
provides = python-configshell
|
||||
conflicts = python-configshell
|
||||
|
||||
pkgname = python2-configshell-fb
|
||||
depends = python2-pyparsing
|
||||
depends = python2-urwid
|
||||
provides = python2-configshell
|
||||
conflicts = python2-configshell
|
||||
|
8
src/python-configshell-fb/.gitignore
vendored
Normal file
8
src/python-configshell-fb/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
*.tar.gz
|
||||
*.tar.xz
|
||||
*.tgz
|
||||
*.rpm
|
||||
*.zip
|
||||
*.bz2
|
||||
src/
|
||||
pkg/
|
31
src/python-configshell-fb/PKGBUILD
Normal file
31
src/python-configshell-fb/PKGBUILD
Normal file
@ -0,0 +1,31 @@
|
||||
# Contributor: Johannes Dewender arch at JonnyJD dot net
|
||||
pkgname=('python-configshell-fb' 'python2-configshell-fb')
|
||||
_pkgname=configshell-fb
|
||||
pkgver=1.1.fb20
|
||||
pkgrel=1
|
||||
pkgdesc="python framework for building simple CLI applications (free branch)"
|
||||
arch=('any')
|
||||
url="https://github.com/agrover/configshell-fb"
|
||||
license=('Apache')
|
||||
options=()
|
||||
makedepends=('python-setuptools' 'python2-setuptools')
|
||||
source=(https://fedorahosted.org/releases/t/a/targetcli-fb/$_pkgname-$pkgver.tar.gz)
|
||||
sha256sums=('4a9f4b59ccd256a1c4d4c270be43798853a91d9fec29bd0ba006b88b7476f383')
|
||||
|
||||
package_python-configshell-fb() {
|
||||
depends=('python-pyparsing' 'python-urwid')
|
||||
provides=('python-configshell')
|
||||
conflicts=('python-configshell')
|
||||
cd "$srcdir/$_pkgname-$pkgver"
|
||||
python setup.py install --root="$pkgdir/" --optimize=1
|
||||
}
|
||||
|
||||
package_python2-configshell-fb() {
|
||||
depends=('python2-pyparsing' 'python2-urwid')
|
||||
provides=('python2-configshell')
|
||||
conflicts=('python2-configshell')
|
||||
cd "$srcdir/$_pkgname-$pkgver"
|
||||
python2 setup.py install --root="$pkgdir/" --optimize=1
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
31
src/python-rtslib-fb/.SRCINFO
Normal file
31
src/python-rtslib-fb/.SRCINFO
Normal file
@ -0,0 +1,31 @@
|
||||
# Generated by mksrcinfo v8
|
||||
# Tue May 17 18:39:25 UTC 2016
|
||||
pkgbase = python-rtslib-fb
|
||||
pkgdesc = free branch version of the LIO target API
|
||||
pkgver = 2.1.fb60
|
||||
pkgrel = 2
|
||||
url = https://github.com/agrover/rtslib-fb
|
||||
arch = any
|
||||
license = Apache
|
||||
makedepends = python-setuptools
|
||||
makedepends = python2-setuptools
|
||||
makedepends = python-pyudev
|
||||
makedepends = python2-pyudev
|
||||
source = https://fedorahosted.org/releases/t/a/targetcli-fb/rtslib-fb-2.1.fb60.tar.gz
|
||||
source = target.service
|
||||
sha256sums = 11b664f02219e5108c4a996f5bc7445500912cff5696b3f51be2f6a1b243e957
|
||||
sha256sums = 74b9e5c11eab1781aa8b43680b429080ae800fbcdafd29626791b5426a4cdea8
|
||||
|
||||
pkgname = python-rtslib-fb
|
||||
depends = python
|
||||
depends = python-six
|
||||
depends = python-pyudev
|
||||
conflicts = python2-rtslib
|
||||
conflicts = targetcli-fb<=2.1.fb31
|
||||
|
||||
pkgname = python2-rtslib-fb
|
||||
depends = python2
|
||||
depends = python2-six
|
||||
depends = python2-pyudev
|
||||
conflicts = python2-rtslib
|
||||
|
8
src/python-rtslib-fb/.gitignore
vendored
Normal file
8
src/python-rtslib-fb/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
*.tar.gz
|
||||
*.tar.xz
|
||||
*.tgz
|
||||
*.rpm
|
||||
*.zip
|
||||
*.bz2
|
||||
src/
|
||||
pkg/
|
53
src/python-rtslib-fb/PKGBUILD
Normal file
53
src/python-rtslib-fb/PKGBUILD
Normal file
@ -0,0 +1,53 @@
|
||||
# Contributor: Johannes Dewender arch at JonnyJD dot net
|
||||
pkgname=('python-rtslib-fb' 'python2-rtslib-fb')
|
||||
_pkgname=rtslib-fb
|
||||
pkgver=2.1.fb60
|
||||
pkgrel=2
|
||||
pkgdesc="free branch version of the LIO target API"
|
||||
arch=('any')
|
||||
url="https://github.com/agrover/rtslib-fb"
|
||||
license=('Apache')
|
||||
makedepends=('python-setuptools' 'python2-setuptools' 'python-pyudev' 'python2-pyudev')
|
||||
backup=()
|
||||
options=()
|
||||
install=
|
||||
source=(https://fedorahosted.org/releases/t/a/targetcli-fb/$_pkgname-$pkgver.tar.gz target.service)
|
||||
sha256sums=('11b664f02219e5108c4a996f5bc7445500912cff5696b3f51be2f6a1b243e957'
|
||||
'74b9e5c11eab1781aa8b43680b429080ae800fbcdafd29626791b5426a4cdea8')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/$_pkgname-$pkgver"
|
||||
#patch -p1 < ../setup-syntax.patch
|
||||
}
|
||||
|
||||
|
||||
package_python-rtslib-fb() {
|
||||
depends=('python' 'python-six' 'python-pyudev')
|
||||
conflicts=('python2-rtslib' 'targetcli-fb<=2.1.fb31')
|
||||
|
||||
cd "$srcdir/$_pkgname-$pkgver"
|
||||
python setup.py install --root="$pkgdir/" --optimize=1
|
||||
|
||||
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/"
|
||||
}
|
||||
|
||||
package_python2-rtslib-fb() {
|
||||
depends=('python2' 'python2-six' 'python2-pyudev')
|
||||
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"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
26
src/python-rtslib-fb/setup-syntax.patch
Normal file
26
src/python-rtslib-fb/setup-syntax.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 53b9e3e7da9da9a797d0b9c0b07bf869dcc7d1bf Mon Sep 17 00:00:00 2001
|
||||
From: Johannes Dewender <github@JonnyJD.net>
|
||||
Date: Tue, 26 May 2015 22:41:54 +0200
|
||||
Subject: [PATCH] fix a syntax error in setup.py
|
||||
|
||||
Signed-off-by: Johannes Dewender <github@JonnyJD.net>
|
||||
---
|
||||
setup.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 442ac06..fcbae40 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -28,7 +28,7 @@ setup (
|
||||
url = 'http://github.com/agrover/rtslib-fb',
|
||||
packages = ['rtslib_fb', 'rtslib'],
|
||||
scripts = ['scripts/targetctl'],
|
||||
- "classifiers": [
|
||||
+ classifiers = [
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: Apache Software License",
|
||||
--
|
||||
2.1.3
|
||||
|
14
src/python-rtslib-fb/target.service
Normal file
14
src/python-rtslib-fb/target.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Restore LIO kernel target configuration
|
||||
Requires=sys-kernel-config.mount
|
||||
After=sys-kernel-config.mount network.target local-fs.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/targetctl restore
|
||||
ExecStop=/usr/bin/targetctl clear
|
||||
SyslogIdentifier=target
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
19
src/targetcli-fb/.SRCINFO
Normal file
19
src/targetcli-fb/.SRCINFO
Normal file
@ -0,0 +1,19 @@
|
||||
# Generated by mksrcinfo v8
|
||||
# Sun May 8 16:53:29 UTC 2016
|
||||
pkgbase = targetcli-fb
|
||||
pkgdesc = free branch of the targetcli LIO administration shell (iSCSI + Co)
|
||||
pkgver = 2.1.fb43
|
||||
pkgrel = 1
|
||||
url = https://github.com/agrover/targetcli-fb
|
||||
arch = any
|
||||
license = Apache
|
||||
makedepends = python-setuptools
|
||||
depends = python-rtslib-fb>=2.1.fb52
|
||||
depends = python-configshell-fb>=1.1.fb17
|
||||
depends = python-dbus
|
||||
provides = targetcli
|
||||
source = https://fedorahosted.org/releases/t/a/targetcli-fb/targetcli-fb-2.1.fb43.tar.gz
|
||||
sha256sums = 63e7c85df26ffd2b1ef34e9113585d7eb8b3fd8d4bf84ebe025a14bf518e7459
|
||||
|
||||
pkgname = targetcli-fb
|
||||
|
8
src/targetcli-fb/.gitignore
vendored
Normal file
8
src/targetcli-fb/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
*.tar.gz
|
||||
*.tar.xz
|
||||
*.tgz
|
||||
*.rpm
|
||||
*.zip
|
||||
*.bz2
|
||||
src/
|
||||
pkg/
|
36
src/targetcli-fb/PKGBUILD
Normal file
36
src/targetcli-fb/PKGBUILD
Normal file
@ -0,0 +1,36 @@
|
||||
# Contributor: Johannes Dewender arch at JonnyJD dot net
|
||||
pkgname=targetcli-fb
|
||||
pkgver=2.1.fb43
|
||||
pkgrel=1
|
||||
pkgdesc="free branch of the targetcli LIO administration shell (iSCSI + Co)"
|
||||
arch=('any')
|
||||
url="https://github.com/agrover/targetcli-fb"
|
||||
license=('Apache')
|
||||
groups=()
|
||||
depends=('python-rtslib-fb>=2.1.fb52' 'python-configshell-fb>=1.1.fb17'
|
||||
'python-dbus')
|
||||
makedepends=('python-setuptools')
|
||||
# TODO: optdepend on python-ethtool when available for python3
|
||||
optdepends=()
|
||||
provides=('targetcli')
|
||||
backup=()
|
||||
options=()
|
||||
install=
|
||||
source=(https://fedorahosted.org/releases/t/a/targetcli-fb/$pkgname-$pkgver.tar.gz)
|
||||
sha256sums=('63e7c85df26ffd2b1ef34e9113585d7eb8b3fd8d4bf84ebe025a14bf518e7459')
|
||||
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
python setup.py build
|
||||
gzip --stdout targetcli.8 > "targetcli.8.gz"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
python setup.py install --skip-build --root="$pkgdir/" --optimize=1
|
||||
|
||||
install -D -m 644 targetcli.8.gz "$pkgdir/usr/share/man/man8/targetcli.8.gz"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
Loading…
Reference in New Issue
Block a user