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: Sat, 06 Aug 2022 17:32:02
Message-Id: 1659807105.e683425233a821b15585311a53db9d5bffcf01fd.prometheanfire@gentoo
1 commit: e683425233a821b15585311a53db9d5bffcf01fd
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 6 17:31:28 2022 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 6 17:31:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6834252
7
8 sys-block/tgt: add 1.0.84
9
10 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
11
12 sys-block/tgt/Manifest | 1 +
13 sys-block/tgt/tgt-1.0.84.ebuild | 58 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/sys-block/tgt/Manifest b/sys-block/tgt/Manifest
17 index 04e2adcecd7e..241000dfdaff 100644
18 --- a/sys-block/tgt/Manifest
19 +++ b/sys-block/tgt/Manifest
20 @@ -2,3 +2,4 @@ DIST tgt-1.0.79.tar.gz 297825 BLAKE2B 5b48e8390ce092d2b34a7ce4bb5845ba8beb0bd696
21 DIST tgt-1.0.80.tar.gz 298256 BLAKE2B 3a678730b3c492832b96e160e9672354aa32a3cc463e2845b1b475c238172b99c1706d3d387697c199c4f3004d8b2c4230d17bd356ce9103028525f8007c89a9 SHA512 6e48013a7da527799f25dc224bb261f7c5cf0aa3893bc337b9f4878a45d116be701a373c533ab6fa79771ccd633501c83b48084828bf6167af72e35795bb1c4f
22 DIST tgt-1.0.82.tar.gz 304687 BLAKE2B 42b43e7f9c23ddacba1c573b189480fc7e34bd5bcc58a8267e56b79d7e5a54d65c5624ac33ed7334c32085ea2fbd3c0719f82188262934658eda291c059e53c9 SHA512 e81a56fae8010ee2af8643b6accc1e51f6667e27b07c986e6a5412dcb483b46ccc0e4fe1aeb399c352282284fe516f3fc1cab5d8cbb431cc9f97f00d5faa0430
23 DIST tgt-1.0.83.tar.gz 304631 BLAKE2B 64374e3ffa0fd73f25172e24b233d001dc2b70cbc08116f167de9d625d493dca330e84f73683d6cc74ea76f5bd9fa940cec54d43ebc9c41ed1ff54f5dc3a6e39 SHA512 0c97900aada010b84585a7ad2b1c4654db0fdbc4caed1dea05d00518340b23691ba91f4bb3c677b420a3f4e67f4b061055f877c050ea1d758f2ebb75771b1cf5
24 +DIST tgt-1.0.84.tar.gz 304641 BLAKE2B d5a28547ba637d951b4096ae3e2b49794aac0a7e517f185331fdfa7df9a1715ce82d498f88538fe08a71ba3958a6972251dbebafdddfeb649318c2ff13a72f95 SHA512 a194d95fac7c4525b22257af3977b1ca680d81bbf1aa4c75444f30a6d8d8db22eca3b29b2ece314fe3b0c0d18152e048c912347c9db1146c9f38419be5116971
25
26 diff --git a/sys-block/tgt/tgt-1.0.84.ebuild b/sys-block/tgt/tgt-1.0.84.ebuild
27 new file mode 100644
28 index 000000000000..43d1f60ba296
29 --- /dev/null
30 +++ b/sys-block/tgt/tgt-1.0.84.ebuild
31 @@ -0,0 +1,58 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +inherit toolchain-funcs systemd
37 +
38 +DESCRIPTION="Linux SCSI target framework (tgt)"
39 +HOMEPAGE="http://stgt.sourceforge.net"
40 +SRC_URI="https://github.com/fujita/tgt/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
45 +IUSE="fcoe fcp ibmvio infiniband rbd"
46 +
47 +DEPEND="
48 + app-text/docbook-xsl-stylesheets
49 + dev-libs/libxslt
50 + dev-perl/Config-General
51 + rbd? ( sys-cluster/ceph )
52 + infiniband? ( sys-cluster/rdma-core )
53 +"
54 +RDEPEND="${DEPEND}
55 + dev-libs/libaio
56 + sys-apps/sg3_utils"
57 +
58 +pkg_setup() {
59 + tc-export CC
60 +}
61 +
62 +src_prepare() {
63 + default
64 + sed -i -e 's:\($(CC)\) $^:\1 $(LDFLAGS) $^:' usr/Makefile || die
65 + # make sure xml docs are generated before trying to install them
66 + sed -i -e "s@install: @& all @g" doc/Makefile || die
67 + sed -i -e 's|-Werror||g' usr/Makefile || die
68 +}
69 +
70 +src_compile() {
71 + local myconf
72 + use ibmvio && myconf="${myconf} IBMVIO=1"
73 + use infiniband && myconf="${myconf} ISCSI_RDMA=1"
74 + use fcp && myconf="${myconf} FCP=1"
75 + use fcoe && myconf="${myconf} FCOE=1"
76 + use rbd && myconf="${myconf} CEPH_RBD=1"
77 +
78 + emake -C usr/ KERNELSRC="${KERNEL_DIR}" ISCSI=1 ${myconf}
79 + emake -C doc
80 +}
81 +
82 +src_install() {
83 + emake install-programs install-scripts install-doc DESTDIR="${D}" docdir=/usr/share/doc/${PF}
84 + newinitd "${FILESDIR}"/tgtd.initd tgtd
85 + newconfd "${FILESDIR}"/tgtd.confd tgtd
86 + systemd_dounit "${S}"/scripts/tgtd.service
87 + dodir /etc/tgt
88 + keepdir /etc/tgt
89 +}