Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/tgt/
Date: Sun, 04 Nov 2018 16:59:09
Message-Id: 1541350732.772c6166b0ce9541f53aeed8e54b15f6e216cc96.prometheanfire@gentoo
1 commit: 772c6166b0ce9541f53aeed8e54b15f6e216cc96
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 4 16:54:03 2018 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 4 16:58:52 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=772c6166
7
8 sys-block/tgt: 1.0.74 bump
9
10 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
11 Package-Manager: Portage-2.3.49, Repoman-2.3.11
12
13 sys-block/tgt/Manifest | 1 +
14 sys-block/tgt/tgt-1.0.74.ebuild | 62 +++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 63 insertions(+)
16
17 diff --git a/sys-block/tgt/Manifest b/sys-block/tgt/Manifest
18 index 93665bc1367..4ddfcdc8bcf 100644
19 --- a/sys-block/tgt/Manifest
20 +++ b/sys-block/tgt/Manifest
21 @@ -1,2 +1,3 @@
22 DIST tgt-1.0.72.tar.gz 296698 BLAKE2B 6625bf87b37f4683aaf0c29264e69e400c6d238c9eaa7d9bb6fd46a76b542a8477ad8c7e9913d3dde70caaf02c323a2c01a3bd78b2d092829f4530015225012f SHA512 4fdb1b8f3c2487f66629024132f7fa53ab69b9eba67d380fb18aa2d9c143e77bdf808b3ff8d1e2bf1d4420cf1792944d6f79731ddbb095d52b53d573d9f1281c
23 DIST tgt-1.0.73.tar.gz 296814 BLAKE2B a3c81c00f716678aa9388f6a4562bd0b6fe0e2c705aee9655f942ffafae4bab3bbbaff521a8b7aefab208a354e0c1c617b85cdd08247a77d1026d0482d2b6528 SHA512 e6410f16c54f71d9a33d511438169a0ca305a7b9a9dd6abbaae9f0b31c18223fa1f3a11b575322d3bb94df129b4f9b186079a7d7cbd27e31734151154edab1da
24 +DIST tgt-1.0.74.tar.gz 297109 BLAKE2B 8ad439a1df437b87a6bf94a8c0403c4ae26a6b77ddc3b44758134199efa5b55dafd09cd2ac3f1b12abc3a77077dffdcab1e9b2aa0a97fcd2e2c19ba24a5cd9cf SHA512 aa905b44a3495275549d4abe8542e2b6b086bbab79b83d2902cba1e6124889a8873d479d1111128416b23c7681433fbe37c1772e8578bb12bf80b96267f65c0a
25
26 diff --git a/sys-block/tgt/tgt-1.0.74.ebuild b/sys-block/tgt/tgt-1.0.74.ebuild
27 new file mode 100644
28 index 00000000000..694e0af3cf3
29 --- /dev/null
30 +++ b/sys-block/tgt/tgt-1.0.74.ebuild
31 @@ -0,0 +1,62 @@
32 +# Copyright 1999-2018 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +inherit flag-o-matic toolchain-funcs
37 +
38 +MY_TREE="f33f6b7"
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 + sed -i -e 's:\($(CC)\) $^:\1 $(LDFLAGS) $^:' usr/Makefile || die
70 + # make sure xml docs are generated before trying to install them
71 + sed -i -e "s@install: @& all @g" doc/Makefile || die
72 + eapply_user
73 +}
74 +
75 +src_compile() {
76 + local myconf
77 + use ibmvio && myconf="${myconf} IBMVIO=1"
78 + use infiniband && myconf="${myconf} ISCSI_RDMA=1"
79 + use fcp && myconf="${myconf} FCP=1"
80 + use fcoe && myconf="${myconf} FCOE=1"
81 + use rbd && myconf="${myconf} CEPH_RBD=1"
82 +
83 + emake -C usr/ KERNELSRC="${KERNEL_DIR}" ISCSI=1 ${myconf}
84 + emake -C doc
85 +}
86 +
87 +src_install() {
88 + emake install-programs install-scripts install-doc DESTDIR="${D}" docdir=/usr/share/doc/${PF}
89 + newinitd "${FILESDIR}"/tgtd.initd tgtd
90 + newconfd "${FILESDIR}"/tgtd.confd tgtd
91 + dodir /etc/tgt
92 + keepdir /etc/tgt
93 +}