1 |
commit: f9bfa20b5ca4393f975ebd6f70090d236a2da778 |
2 |
Author: Diogo Pereira <sir.suriv <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Aug 7 00:36:29 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 17:18:14 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9bfa20b |
7 |
|
8 |
sys-block/targetcli: add version 3.0_pre4 |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/453276 |
11 |
Reported-by: Andrew Hamilton <andrew <AT> ahamilto.net> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/2034 |
13 |
|
14 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
15 |
|
16 |
sys-block/targetcli/Manifest | 1 + |
17 |
sys-block/targetcli/targetcli-3.0_pre4.ebuild | 46 +++++++++++++++++++++++++++ |
18 |
2 files changed, 47 insertions(+) |
19 |
|
20 |
diff --git a/sys-block/targetcli/Manifest b/sys-block/targetcli/Manifest |
21 |
new file mode 100644 |
22 |
index 00000000..665728c |
23 |
--- /dev/null |
24 |
+++ b/sys-block/targetcli/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST targetcli-3.0_pre4.tar.gz 37299 SHA256 4f389c7de68f25034867770ecae45810340b33512dfae9827e5174db3408df88 SHA512 42e74fe8f7d26ad5693d6cd527d44d77b23f793b33071466819bf29032b71a6ad22924350fc53c78ed93c15ef30abb46b42209c5f16fbf8ade0819d6e26b70f7 WHIRLPOOL 5bb7f03a6fc0d56ab6a4197638dd7376eee1141e6e1f3f6c9e86ab307ff42ac5036a99de5fbdd42ba5708106c2098800d0d2b9af312fe08c72135e4f2a695b17 |
27 |
|
28 |
diff --git a/sys-block/targetcli/targetcli-3.0_pre4.ebuild b/sys-block/targetcli/targetcli-3.0_pre4.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000..5701d51 |
31 |
--- /dev/null |
32 |
+++ b/sys-block/targetcli/targetcli-3.0_pre4.ebuild |
33 |
@@ -0,0 +1,46 @@ |
34 |
+# Copyright 1999-2016 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Id$ |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python2_7 ) |
41 |
+ |
42 |
+inherit distutils-r1 linux-info |
43 |
+ |
44 |
+if [[ ${PV} == 9999 ]]; then |
45 |
+ inherit git-r3 |
46 |
+ EGIT_REPO_URI="git://github.com/Datera/${PN}.git |
47 |
+ https://github.com/Datera/${PN}.git" |
48 |
+ KEYWORDS="" |
49 |
+else |
50 |
+ MY_PV=${PV/_/-} |
51 |
+ SRC_URI="https://github.com/Datera/${PN}/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz" |
52 |
+ S="${WORKDIR}/${PN}-${MY_PV}" |
53 |
+ KEYWORDS="~amd64" |
54 |
+fi |
55 |
+ |
56 |
+DESCRIPTION="CLI and shell for the Linux SCSI target" |
57 |
+HOMEPAGE="http://linux-iscsi.org/wiki/targetcli" |
58 |
+ |
59 |
+LICENSE="Apache-2.0" |
60 |
+SLOT="0" |
61 |
+IUSE="" |
62 |
+ |
63 |
+DEPEND="dev-python/configshell[${PYTHON_USEDEP}] |
64 |
+ dev-python/prettytable[${PYTHON_USEDEP}] |
65 |
+ dev-python/rtslib[${PYTHON_USEDEP}]" |
66 |
+RDEPEND="${DEPEND} |
67 |
+ dev-python/urwid[${PYTHON_USEDEP}]" |
68 |
+ |
69 |
+pkg_pretend() { |
70 |
+ if use kernel_linux; then |
71 |
+ linux-info_get_any_version |
72 |
+ if ! linux_config_exists; then |
73 |
+ eerror "Unable to check your kernel for SCSI target support" |
74 |
+ else |
75 |
+ CONFIG_CHECK="~TARGET_CORE" |
76 |
+ check_extra_config |
77 |
+ fi |
78 |
+ fi |
79 |
+} |