commit:     8b174e68afaeabadd837cb4d19d98e1cecbdf68c
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 14 22:57:27 2021 +0000
Commit:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Sun Feb 14 22:57:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b174e68

sys-block/tgt: 1.0.80 bump

added systemd unit install as well

Closes: https://bugs.gentoo.org/768741
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>

 sys-block/tgt/Manifest          |  1 +
 sys-block/tgt/tgt-1.0.80.ebuild | 64 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/sys-block/tgt/Manifest b/sys-block/tgt/Manifest
index 6fce5095468..d0c3b0bc637 100644
--- a/sys-block/tgt/Manifest
+++ b/sys-block/tgt/Manifest
@@ -1 +1,2 @@
 DIST tgt-1.0.79.tar.gz 297898 BLAKE2B 
d0f18dac863d6983a00eb9513bcbe17b5cbed76fad998af74b65311c1ace6f281bfb1bf639713e10124a520ad3916ef79ca0a81cef97b5ef678c25cfa9a71eaa
 SHA512 
d71b0a08bd1cdc717e22c4dd0a229e84bd19e02e01037231ee80d9ab24848bc7274050e1ffe7d9a3d50149c892ed1e6ea382e54dacc341650f4534629116be07
+DIST tgt-1.0.80.tar.gz 298354 BLAKE2B 
5a70cf4901967fe66a351b7f5fd209b11508581ad770dab13965055f3d592c9ae1d7813597f306883bc3f1346a8b8b43916dcddae9e4c38012946d08c252c9ac
 SHA512 
eb32542f652b22cdb28083cc92015ca218c4af0730765ee2a00f6b14dd7da0546fc4017d103f212a684d8e08100e6e565ef52fe403ea407f764aaea3019602b8

diff --git a/sys-block/tgt/tgt-1.0.80.ebuild b/sys-block/tgt/tgt-1.0.80.ebuild
new file mode 100644
index 00000000000..180742932ac
--- /dev/null
+++ b/sys-block/tgt/tgt-1.0.80.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit toolchain-funcs systemd
+
+MY_TREE="6bd8382"
+
+DESCRIPTION="Linux SCSI target framework (tgt)"
+HOMEPAGE="http://stgt.sourceforge.net";
+SRC_URI="https://github.com/fujita/tgt/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
+IUSE="fcoe fcp ibmvio infiniband rbd"
+
+DEPEND="
+       app-text/docbook-xsl-stylesheets
+       dev-libs/libxslt
+       dev-perl/Config-General
+       rbd? ( sys-cluster/ceph )
+       infiniband? (
+               sys-fabric/libibverbs:=
+               sys-fabric/librdmacm:=
+       )"
+RDEPEND="${DEPEND}
+       dev-libs/libaio
+       sys-apps/sg3_utils"
+
+S=${WORKDIR}/fujita-tgt-${MY_TREE}
+
+pkg_setup() {
+       tc-export CC
+}
+
+src_prepare() {
+       default
+       sed -i -e 's:\($(CC)\) $^:\1 $(LDFLAGS) $^:' usr/Makefile || die
+       # make sure xml docs are generated before trying to install them
+       sed -i -e "s@install: @& all @g" doc/Makefile || die
+       sed -i -e 's|-Werror||g' usr/Makefile || die
+}
+
+src_compile() {
+       local myconf
+       use ibmvio && myconf="${myconf} IBMVIO=1"
+       use infiniband && myconf="${myconf} ISCSI_RDMA=1"
+       use fcp && myconf="${myconf} FCP=1"
+       use fcoe && myconf="${myconf} FCOE=1"
+       use rbd && myconf="${myconf} CEPH_RBD=1"
+
+       emake -C usr/ KERNELSRC="${KERNEL_DIR}" ISCSI=1 ${myconf}
+       emake -C doc
+}
+
+src_install() {
+       emake  install-programs install-scripts install-doc DESTDIR="${D}" 
docdir=/usr/share/doc/${PF}
+       newinitd "${FILESDIR}"/tgtd.initd tgtd
+       newconfd "${FILESDIR}"/tgtd.confd tgtd
+       systemd_dounit "${S}"/scripts/tgtd.service
+       dodir /etc/tgt
+       keepdir /etc/tgt
+}

Reply via email to