summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-01-14 01:29:01 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-01-14 01:29:01 +0000
commite1cbf2e459309b2bde2093bf097c806b184b2ab5 (patch)
tree02f854074278526181043fbcc5f4a8ed482ed979 /sys-block/open-iscsi/open-iscsi-1.0.490.ebuild
parentEbuild cleanup, and leave the package to the herd per my -dev mail. (diff)
downloadgentoo-2-e1cbf2e459309b2bde2093bf097c806b184b2ab5.tar.gz
gentoo-2-e1cbf2e459309b2bde2093bf097c806b184b2ab5.tar.bz2
gentoo-2-e1cbf2e459309b2bde2093bf097c806b184b2ab5.zip
Remove old ebuilds (they were for really old kernels), clean up remaining ebuild, then remove myself from the metadata.
(Portage version: 2.1.4)
Diffstat (limited to 'sys-block/open-iscsi/open-iscsi-1.0.490.ebuild')
-rw-r--r--sys-block/open-iscsi/open-iscsi-1.0.490.ebuild122
1 files changed, 0 insertions, 122 deletions
diff --git a/sys-block/open-iscsi/open-iscsi-1.0.490.ebuild b/sys-block/open-iscsi/open-iscsi-1.0.490.ebuild
deleted file mode 100644
index 709d7384d5a7..000000000000
--- a/sys-block/open-iscsi/open-iscsi-1.0.490.ebuild
+++ /dev/null
@@ -1,122 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-block/open-iscsi/open-iscsi-1.0.490.ebuild,v 1.3 2007/07/14 23:16:46 mr_bones_ 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_P="${PN}-${MY_PV}"
-#SRC_URI="http://www.open-iscsi.org/bits/${MY_P}.tar.gz"
-SRC_URI="mirror://gentoo/${MY_P}.tar.gz
- mirror://gentoo/${PN}-490-add-targetname.patch.gz
- mirror://gentoo/${PN}-490-boot13.patch.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-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})"
-BUILD_TARGETS="all"
-CONFIG_CHECK="CRYPTO_MD5 CRYPTO_CRC32C"
-ERROR_CFG="open-iscsi needs both MD5 and 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 11 ]; then
- die "Sorry, your kernel must be 2.6.11 or newer!"
- elif [ $KV_PATCH -eq 11 ]; then
- einfo "2.6.11 found"
- epatch ${S}/kernel/2.6.11-compat.patch
- elif [ $KV_PATCH -eq 12 ]; then
- einfo "2.6.12 found"
- epatch ${S}/kernel/2.6.12-compat.patch
- elif [ $KV_PATCH -eq 13 ]; then
- einfo "2.6.13 found"
- epatch ${S}/kernel/2.6.13-compat.patch
- elif [ $KV_PATCH -eq 14 ]; then
- einfo "2.6.14 found"
- epatch ${S}/kernel/2.6.14-and-2.6.15-compat.patch
- elif [ $KV_PATCH -eq 15 ]; then
- einfo "2.6.15 found"
- epatch ${S}/kernel/2.6.14-and-2.6.15-compat.patch
- else
- einfo "2.6.16 or newer found."
- einfo "Please file a bug if this does not compile."
- fi
- # O_EXCL locking on idbm files
- epatch ${FILESDIR}/r438-idbm-file-locking.diff
-
- #EPATCH_OPTS="-p0 -d${S}" \
- #epatch ${FILESDIR}/open-iscsi-488-udev.patch
-
- # Converts the close on error to a log message
- epatch ${FILESDIR}/${PN}-485-out.state.patch
- # iscsistart root/boot stuff
- EPATCH_OPTS="-p0 -d${S}" \
- epatch ${FILESDIR}/${PN}-490-boot13.patch
- # new sysfs params
- EPATCH_OPTS="-p1 -d${S}" \
- epatch ${FILESDIR}/${PN}-490-add-targetname.patch
-}
-
-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
-}