summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2021-02-14 16:57:27 -0600
committerMatthew Thode <prometheanfire@gentoo.org>2021-02-14 16:57:41 -0600
commit8b174e68afaeabadd837cb4d19d98e1cecbdf68c (patch)
tree9d4911f528138940da162d5d5ce221fc420e4de4 /sys-block/tgt
parentgnome-extra/evolution-ews: bump to 3.38.4 (diff)
downloadgentoo-8b174e68afaeabadd837cb4d19d98e1cecbdf68c.tar.gz
gentoo-8b174e68afaeabadd837cb4d19d98e1cecbdf68c.tar.bz2
gentoo-8b174e68afaeabadd837cb4d19d98e1cecbdf68c.zip
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@gentoo.org>
Diffstat (limited to 'sys-block/tgt')
-rw-r--r--sys-block/tgt/Manifest1
-rw-r--r--sys-block/tgt/tgt-1.0.80.ebuild64
2 files changed, 65 insertions, 0 deletions
diff --git a/sys-block/tgt/Manifest b/sys-block/tgt/Manifest
index 6fce50954683..d0c3b0bc6378 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 000000000000..180742932ac7
--- /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
+}