summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2006-12-27 02:28:40 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2006-12-27 02:28:40 +0000
commit6829d69bfa178d45711bed51fd4dee42c47577d6 (patch)
treedf4e40bd86a6e46fecafc85199f6e9b60a96a235 /sys-block/iscsitarget
parentVersion bump (bug #159141). Dropped old versions. (diff)
downloadgentoo-2-6829d69bfa178d45711bed51fd4dee42c47577d6.tar.gz
gentoo-2-6829d69bfa178d45711bed51fd4dee42c47577d6.tar.bz2
gentoo-2-6829d69bfa178d45711bed51fd4dee42c47577d6.zip
Version bump, bug #155845
(Portage version: 2.1.2_rc4-r1)
Diffstat (limited to 'sys-block/iscsitarget')
-rw-r--r--sys-block/iscsitarget/ChangeLog9
-rw-r--r--sys-block/iscsitarget/files/digest-iscsitarget-0.4.143
-rw-r--r--sys-block/iscsitarget/files/iscsitarget-0.4.14-isns-compilefix.patch12
-rw-r--r--sys-block/iscsitarget/iscsitarget-0.4.14.ebuild57
4 files changed, 80 insertions, 1 deletions
diff --git a/sys-block/iscsitarget/ChangeLog b/sys-block/iscsitarget/ChangeLog
index 1a2ccf63bd8e..aac066e0561f 100644
--- a/sys-block/iscsitarget/ChangeLog
+++ b/sys-block/iscsitarget/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-block/iscsitarget
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-block/iscsitarget/ChangeLog,v 1.3 2006/05/23 01:55:11 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-block/iscsitarget/ChangeLog,v 1.4 2006/12/27 02:28:40 robbat2 Exp $
+
+*iscsitarget-0.4.14 (27 Dec 2006)
+
+ 27 Dec 2006; Robin H. Johnson <robbat2@gentoo.org>
+ +files/iscsitarget-0.4.14-isns-compilefix.patch,
+ +iscsitarget-0.4.14.ebuild:
+ Version bump, bug #155845
23 May 2006; Robin H. Johnson <robbat2@gentoo.org>
iscsitarget-0.4.13.ebuild:
diff --git a/sys-block/iscsitarget/files/digest-iscsitarget-0.4.14 b/sys-block/iscsitarget/files/digest-iscsitarget-0.4.14
new file mode 100644
index 000000000000..b29195fb37a2
--- /dev/null
+++ b/sys-block/iscsitarget/files/digest-iscsitarget-0.4.14
@@ -0,0 +1,3 @@
+MD5 2dbc5d9e0b8e1953324226b9fab24b8e iscsitarget-0.4.14.tar.gz 92608
+RMD160 71cef6dedc54a35b848a5b9152441b043bee11aa iscsitarget-0.4.14.tar.gz 92608
+SHA256 afb1d0e6c8c81688ca6f821bf4b4a35993a77e51ce0508b1b97302d8ba6275f7 iscsitarget-0.4.14.tar.gz 92608
diff --git a/sys-block/iscsitarget/files/iscsitarget-0.4.14-isns-compilefix.patch b/sys-block/iscsitarget/files/iscsitarget-0.4.14-isns-compilefix.patch
new file mode 100644
index 000000000000..51a0e37f8348
--- /dev/null
+++ b/sys-block/iscsitarget/files/iscsitarget-0.4.14-isns-compilefix.patch
@@ -0,0 +1,12 @@
+diff -Nuar --exclude '*~' /dev/shm/portage/sys-block/iscsitarget-0.4.14/work/iscsitarget-0.4.14.orig/usr/isns.c /dev/shm/portage/sys-block/iscsitarget-0.4.14/work/iscsitarget-0.4.14/usr/isns.c
+--- /dev/shm/portage/sys-block/iscsitarget-0.4.14/work/iscsitarget-0.4.14.orig/usr/isns.c 2006-09-25 02:08:51.000000000 -0700
++++ /dev/shm/portage/sys-block/iscsitarget-0.4.14/work/iscsitarget-0.4.14/usr/isns.c 2006-12-26 18:26:00.260045115 -0800
+@@ -223,7 +223,7 @@
+ x = (x & 0x0000ffff) << 16 | (x & 0xffff0000) >> 16; \
+ }
+ #else
+-#define set_scn_flag(x)
++#define set_scn_flag(x) x
+ #endif
+
+ static int isns_scn_register(void)
diff --git a/sys-block/iscsitarget/iscsitarget-0.4.14.ebuild b/sys-block/iscsitarget/iscsitarget-0.4.14.ebuild
new file mode 100644
index 000000000000..3323b30a85ef
--- /dev/null
+++ b/sys-block/iscsitarget/iscsitarget-0.4.14.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/iscsitarget/iscsitarget-0.4.14.ebuild,v 1.1 2006/12/27 02:28:40 robbat2 Exp $
+
+inherit linux-mod eutils
+
+DESCRIPTION="Open Source iSCSI target with professional features"
+HOMEPAGE="http://iscsitarget.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc"
+IUSE=""
+
+RDEPEND="dev-libs/openssl"
+DEPEND="${RDEPEND}
+ virtual/linux-sources"
+MODULE_NAMES="iscsi_trgt(kernel/iscsi:${S}/kernel)"
+CONFIG_CHECK="CRYPTO_CRC32C"
+ERROR_CFG="iscsitarget needs support for CRC32C in your kernel."
+
+src_unpack() {
+ unpack ${A}
+ EPATCH_OPTS="-d ${S} -p0" \
+ epatch ${FILESDIR}/${PN}-0.4.13-usrbuildfix.patch
+ epatch ${FILESDIR}/${PN}-0.4.14-isns-compilefix.patch
+ convert_to_m ${S}/Makefile
+}
+
+src_compile() {
+ einfo "Building userspace"
+ CFLAGS="" emake progs OPTFLAGS="${CFLAGS}" || die "failed to build userspace"
+
+ einfo "Building kernel modules"
+ unset ARCH
+ emake KSRC="${KERNEL_DIR}" mods || die "failed to build module"
+}
+
+src_install() {
+ einfo "Installing userspace"
+ dosbin usr/ietd usr/ietadm || die "dosbin failed"
+ insinto /etc
+ doins etc/ietd.conf etc/initiators.{allow,deny} || die "doins failed"
+ # Upstream's provided Gentoo init script is out of date compared to
+ # their Debian init script. And isn't that nice.
+ #newinitd etc/initd/initd.gentoo ietd || die
+ newinitd ${FILESDIR}/ietd-init.d ietd || die "newinitd failed"
+ newconfd ${FILESDIR}/ietd-conf.d ietd || die "newconfd failed"
+
+ doman doc/manpages/*.[1-9] || die "manpages failed"
+ dodoc ChangeLog README || die "docs failed"
+
+ einfo "Installing kernel module"
+ unset ARCH
+ linux-mod_src_install || die "modules failed"
+}