diff options
-rw-r--r-- | sys-block/open-iscsi/ChangeLog | 8 | ||||
-rw-r--r-- | sys-block/open-iscsi/files/digest-open-iscsi-2.0.865.12 | 3 | ||||
-rw-r--r-- | sys-block/open-iscsi/metadata.xml | 3 | ||||
-rw-r--r-- | sys-block/open-iscsi/open-iscsi-2.0.865.12.ebuild | 95 |
4 files changed, 108 insertions, 1 deletions
diff --git a/sys-block/open-iscsi/ChangeLog b/sys-block/open-iscsi/ChangeLog index f857e7dd175e..39c8bdfb91cb 100644 --- a/sys-block/open-iscsi/ChangeLog +++ b/sys-block/open-iscsi/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-block/open-iscsi # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-block/open-iscsi/ChangeLog,v 1.12 2007/02/22 00:59:56 jokey Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-block/open-iscsi/ChangeLog,v 1.13 2007/08/28 05:08:05 kingtaco Exp $ + +*open-iscsi-2.0.865.12 (28 Aug 2007) + + 28 Aug 2007; Mike Doty <kingtaco@gentoo.org> metadata.xml, + +open-iscsi-2.0.865.12.ebuild: + version bump 22 Feb 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog: Redigest for Manifest2 diff --git a/sys-block/open-iscsi/files/digest-open-iscsi-2.0.865.12 b/sys-block/open-iscsi/files/digest-open-iscsi-2.0.865.12 new file mode 100644 index 000000000000..d10c0c447562 --- /dev/null +++ b/sys-block/open-iscsi/files/digest-open-iscsi-2.0.865.12 @@ -0,0 +1,3 @@ +MD5 c376bef83ddd71d8e1f5f1d1a171f620 open-iscsi-2.0-865.12.tar.gz 230395 +RMD160 b663cc4773a9ec55ce0e27de63e53d334a1e7111 open-iscsi-2.0-865.12.tar.gz 230395 +SHA256 f6413d9d7f03bdcac76a3dfa3931a163553694937ae9170aa79ef3d91eae13e5 open-iscsi-2.0-865.12.tar.gz 230395 diff --git a/sys-block/open-iscsi/metadata.xml b/sys-block/open-iscsi/metadata.xml index 5d9f5be9d49d..8094bc03845f 100644 --- a/sys-block/open-iscsi/metadata.xml +++ b/sys-block/open-iscsi/metadata.xml @@ -5,4 +5,7 @@ <maintainer> <email>robbat2@gentoo.org</email> </maintainer> +<maintainer> + <email>kingtaco@gentoo.org</email> +</maintainer> </pkgmetadata> diff --git a/sys-block/open-iscsi/open-iscsi-2.0.865.12.ebuild b/sys-block/open-iscsi/open-iscsi-2.0.865.12.ebuild new file mode 100644 index 000000000000..55d0682f82ac --- /dev/null +++ b/sys-block/open-iscsi/open-iscsi-2.0.865.12.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/open-iscsi/open-iscsi-2.0.865.12.ebuild,v 1.1 2007/08/28 05:08:05 kingtaco Exp $ + +inherit versionator linux-mod eutils flag-o-matic + +DESCRIPTION="Open-iSCSI project is a high performance, transport independent, multi-platform implementation of RFC3720." +HOMEPAGE="http://www.open-iscsi.org/" +MY_PV="$(replace_version_separator 2 '-')" +MY_SVN_R=865 +MY_P="${PN}-${MY_PV}" +SRC_URI="http://www.open-iscsi.org/bits/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc" +IUSE="debug" +DEPEND="virtual/libc + virtual/linux-sources" +RDEPEND="${DEPEND} + virtual/modutils + sys-apps/util-linux" + +S="${WORKDIR}/${MY_P}" + +MODULE_NAMES_ARG="kernel/drivers/scsi:${S}/kernel" +MODULE_NAMES="iscsi_tcp(${MODULE_NAMES_ARG}) scsi_transport_iscsi(${MODULE_NAMES_ARG}) libiscsi(${MODULE_NAMES_ARG})" +BUILD_TARGETS="all" +CONFIG_CHECK="CRYPTO_CRC32C" +ERROR_CFG="open-iscsi needs CRC32C support in your kernel." + +src_unpack() { + unpack ${A} + #export EPATCH_OPTS="-d${S}/kernel -p0" + export EPATCH_OPTS="-d${S}" + if [ $KV_PATCH -lt 15 ]; then + die "Sorry, your kernel must be 2.6.16-rc5 or newer!" + elif [ $KV_PATCH -eq 16 ]; then + einfo "2.6.16 or newer found." + einfo "Please file a bug if this does not compile." + fi + + # clean up some junk + find ${S} -name '*~' -exec rm \{} \; >/dev/null 2>/dev/null +} + + +src_compile() { + use debug && append-flags -DDEBUG_TCP -DDEBUG_SCSI + + einfo "Building kernel modules" + export KSRC="${KERNEL_DIR}" + linux-mod_src_compile || die "failed to build modules" + einfo "Building userspace" + cd ${S}/usr && \ + CFLAGS="" emake OPTFLAGS="${CFLAGS}" \ + || die "emake failed" +} + +src_install() { + einfo "Installing kernel modules" + export KSRC="${KERNEL_DIR}" + #S=${S}/kernel + linux-mod_src_install + + einfo "Installing userspace" + dosbin usr/iscsid usr/iscsiadm usr/iscsistart + + einfo "Installing docs" + doman doc/*[1-8] + dodoc README THANKS + docinto test + dodoc test/* + + einfo "Installing configuration" + insinto /etc + doins etc/iscsid.conf + doins ${FILESDIR}/initiatorname.iscsi + newinitd ${FILESDIR}/iscsid-init.d iscsid + + # This is for later + # dosbin usr/iscsi_id + #insinto /etc/udev/rules.d/ + #doins doc/iscsi-55.rules + + # security + keepdir /var/db/iscsi + fperms 700 /var/db/iscsi + fperms 600 /etc/iscsid.conf +} + +pkg_postinst() { + linux-mod_pkg_postinst + [ -d ${ROOT}/var/db/iscsi ] && chmod 700 ${ROOT}/var/db/iscsi + [ -f ${ROOT}/etc/iscsid.conf ] && chmod 600 ${ROOT}/etc/iscsid.conf +} |