1 |
commit: d0fdb683b7762a259a629d5bf0385285eb51874e |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 2 18:52:05 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 2 18:52:45 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0fdb683 |
7 |
|
8 |
sys-block/tgt: 1.0.72 bup |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
sys-block/tgt/Manifest | 1 + |
13 |
sys-block/tgt/tgt-1.0.72.ebuild | 65 +++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 66 insertions(+) |
15 |
|
16 |
diff --git a/sys-block/tgt/Manifest b/sys-block/tgt/Manifest |
17 |
index 971f074d678..7e63b84df0e 100644 |
18 |
--- a/sys-block/tgt/Manifest |
19 |
+++ b/sys-block/tgt/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST tgt-1.0.70.tar.gz 296474 SHA256 632ed2f064652be7533e928834b55b403927ad381456b8089d903fd92a1f8e3d SHA512 fac7acde7cbd12156ea472d1bed20646dfdd5cfe607503bd1437eaeef816ba8114fe2ebd79e33cb083f8e64fee07bfbf66bcfc6b427c21de814e293e9edaeaad WHIRLPOOL b8b60f2c69e6f9199ba93eae98ca96ea2407ef1d3c26567925a9996d6430cd3f8c204630b046b74487b872ccf02729f89d046b263385e32d14b78fcd336d5e4c |
22 |
DIST tgt-1.0.71.tar.gz 296540 SHA256 3f0b898ae341f5d8c84c83f9951dd7ef182eaf449dd7008e55747f144303e10b SHA512 db74deb199ef341577ab505b7202651e6c28aa9d62d37d3492b1775a2944284e1d3bb7c99b6d8bedd3456807641952876719ecd66553bd8c8dabbee5669f9428 WHIRLPOOL d19c2c5614d7b406d785cbe5b954a0aa2494b8a5b43a33e05b3f6876750039590524607b28c491cd00a60dd7a1bc57e327099fe36711a8c53798a4ec1300e295 |
23 |
+DIST tgt-1.0.72.tar.gz 296698 SHA256 2c7f4b8f831c5124192c40b0503fd6e659154393576c37f1f80dfdc5d9b8a772 SHA512 4fdb1b8f3c2487f66629024132f7fa53ab69b9eba67d380fb18aa2d9c143e77bdf808b3ff8d1e2bf1d4420cf1792944d6f79731ddbb095d52b53d573d9f1281c WHIRLPOOL 763d5d68320f9629531f6406caab9f77c1a7f3574a6ef1a7ee7192e14f41a95169b858211eedbe84d7071e1b3801744933b09a7b81d84a6772c7d0ef5801415b |
24 |
|
25 |
diff --git a/sys-block/tgt/tgt-1.0.72.ebuild b/sys-block/tgt/tgt-1.0.72.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..1c780b14282 |
28 |
--- /dev/null |
29 |
+++ b/sys-block/tgt/tgt-1.0.72.ebuild |
30 |
@@ -0,0 +1,65 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=5 |
35 |
+ |
36 |
+inherit flag-o-matic toolchain-funcs |
37 |
+ |
38 |
+MY_TREE="8f94634" |
39 |
+ |
40 |
+DESCRIPTION="Linux SCSI target framework (tgt)" |
41 |
+HOMEPAGE="http://stgt.sourceforge.net" |
42 |
+SRC_URI="https://github.com/fujita/tgt/tarball/v${PV} -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
47 |
+IUSE="fcoe fcp ibmvio infiniband rbd" |
48 |
+ |
49 |
+CDEPEND="dev-perl/Config-General |
50 |
+ dev-libs/libxslt |
51 |
+ rbd? ( sys-cluster/ceph ) |
52 |
+ infiniband? ( |
53 |
+ sys-fabric/libibverbs:= |
54 |
+ sys-fabric/librdmacm:= |
55 |
+ )" |
56 |
+DEPEND="${CDEPEND} |
57 |
+ app-text/docbook-xsl-stylesheets" |
58 |
+RDEPEND="${DEPEND} |
59 |
+ dev-libs/libaio |
60 |
+ sys-apps/sg3_utils" |
61 |
+ |
62 |
+S=${WORKDIR}/fujita-tgt-${MY_TREE} |
63 |
+ |
64 |
+pkg_setup() { |
65 |
+ tc-export CC |
66 |
+} |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ epatch "${FILESDIR}"/${PN}-1.0.69-sysmacros.patch #580594 |
70 |
+ |
71 |
+ sed -i -e 's:\($(CC)\) $^:\1 $(LDFLAGS) $^:' usr/Makefile || die |
72 |
+ |
73 |
+ # make sure xml docs are generated before trying to install them |
74 |
+ sed -i -e "s@install: @& all @g" doc/Makefile || die |
75 |
+} |
76 |
+ |
77 |
+src_compile() { |
78 |
+ local myconf |
79 |
+ use ibmvio && myconf="${myconf} IBMVIO=1" |
80 |
+ use infiniband && myconf="${myconf} ISCSI_RDMA=1" |
81 |
+ use fcp && myconf="${myconf} FCP=1" |
82 |
+ use fcoe && myconf="${myconf} FCOE=1" |
83 |
+ use rbd && myconf="${myconf} CEPH_RBD=1" |
84 |
+ |
85 |
+ emake -C usr/ KERNELSRC="${KERNEL_DIR}" ISCSI=1 ${myconf} |
86 |
+ emake -C doc |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ emake install-programs install-scripts install-doc DESTDIR="${D}" docdir=/usr/share/doc/${PF} |
91 |
+ newinitd "${FILESDIR}"/tgtd.initd tgtd |
92 |
+ newconfd "${FILESDIR}"/tgtd.confd tgtd |
93 |
+ dodir /etc/tgt |
94 |
+ keepdir /etc/tgt |
95 |
+} |