diff options
Diffstat (limited to 'sys-block')
-rw-r--r-- | sys-block/tgt/ChangeLog | 7 | ||||
-rw-r--r-- | sys-block/tgt/tgt-1.0.22.ebuild | 60 |
2 files changed, 66 insertions, 1 deletions
diff --git a/sys-block/tgt/ChangeLog b/sys-block/tgt/ChangeLog index 8267ffffb25a..8d632f355057 100644 --- a/sys-block/tgt/ChangeLog +++ b/sys-block/tgt/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-block/tgt # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-block/tgt/ChangeLog,v 1.16 2011/09/01 12:12:42 alexxy Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-block/tgt/ChangeLog,v 1.17 2011/12/28 11:50:24 ultrabug Exp $ + +*tgt-1.0.22 (28 Dec 2011) + + 28 Dec 2011; Ultrabug <ultrabug@gentoo.org> +tgt-1.0.22.ebuild: + Version bump, thanks to Sonni, fix #395149. *tgt-1.0.19 (01 Sep 2011) diff --git a/sys-block/tgt/tgt-1.0.22.ebuild b/sys-block/tgt/tgt-1.0.22.ebuild new file mode 100644 index 000000000000..04bf903fd30e --- /dev/null +++ b/sys-block/tgt/tgt-1.0.22.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/tgt/tgt-1.0.22.ebuild,v 1.1 2011/12/28 11:50:24 ultrabug Exp $ + +EAPI=4 + +inherit flag-o-matic linux-info + +MY_TREE="3e216c9" + +DESCRIPTION="Linux SCSI target framework (tgt)" +HOMEPAGE="http://stgt.sourceforge.net" +SRC_URI="https://github.com/fujita/tgt/zipball/v${PV} -> ${P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ibmvio infiniband fcp fcoe" + +DEPEND="dev-perl/config-general + dev-libs/libxslt + infiniband? ( + sys-infiniband/libibverbs + sys-infiniband/librdmacm + )" +RDEPEND="${DEPEND} + sys-apps/sg3_utils" + +S="${WORKDIR}"/fujita-tgt-"${MY_TREE}" + +pkg_setup() { + CONFIG_CHECK="~SCSI_TGT" + WARNING_SCSI_TGT="Your kernel needs CONFIG_SCSI_TGT" + linux-info_pkg_setup +} + +src_prepare() { + sed -i -e 's:\($(CC)\):\1 $(LDFLAGS):' usr/Makefile || die "sed failed" + + # make sure xml docs are generated before trying to install them + sed -i -e "s@install: @install: all @g" doc/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" + + emake -C usr/ KERNELSRC="${KERNEL_DIR}" ISCSI=1 ${myconf} +} + +src_install() { + emake install-programs install-scripts install-doc DESTDIR="${D}" \ + docdir=/usr/share/doc/${PF} + doinitd "${FILESDIR}/tgtd" + dodir /etc/tgt + keepdir /etc/tgt +}
\ No newline at end of file |