| # Copyright 1999-2007 Gentoo Foundation |
# Copyright 1999-2008 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 |
# Distributed under the terms of the GNU General Public License v2 |
| # $Header$ |
# $Header$ |
| |
|
| RDEPEND="dev-libs/openssl" |
RDEPEND="dev-libs/openssl" |
| DEPEND="${RDEPEND} |
DEPEND="${RDEPEND} |
| virtual/linux-sources" |
virtual/linux-sources" |
| |
|
| MODULE_NAMES="iscsi_trgt(kernel/iscsi:${S}/kernel)" |
MODULE_NAMES="iscsi_trgt(kernel/iscsi:${S}/kernel)" |
| CONFIG_CHECK="CRYPTO_CRC32C" |
CONFIG_CHECK="CRYPTO_CRC32C" |
| ERROR_CFG="iscsitarget needs support for CRC32C in your kernel." |
ERROR_CFG="iscsitarget needs support for CRC32C in your kernel." |
| |
|
| src_unpack() { |
src_unpack() { |
| unpack ${A} |
unpack ${A} |
| EPATCH_OPTS="-d ${S} -p0" \ |
cd "${S}" |
| epatch ${FILESDIR}/${PN}-0.4.13-usrbuildfix.patch |
epatch "${FILESDIR}"/${PN}-0.4.15-isns-set-scn-flag.patch #180619 |
| convert_to_m ${S}/Makefile |
epatch "${FILESDIR}"/${PN}-0.4.15-build.patch |
| |
epatch "${FILESDIR}"/${PN}-0.4.15-kmem.patch |
| |
epatch "${FILESDIR}"/${PN}-0.4.15-scatter.patch |
| |
convert_to_m "${S}"/Makefile |
| } |
} |
| |
|
| src_compile() { |
src_compile() { |
| einfo "Building userspace" |
emake usr || die "failed to build userspace" |
| CFLAGS="" emake usr OPTFLAGS="${CFLAGS}" || die "failed to build userspace" |
|
| |
|
| einfo "Building kernel modules" |
|
| unset ARCH |
unset ARCH |
| emake KSRC="${KERNEL_DIR}" kernel || die "failed to build module" |
emake KSRC="${KERNEL_DIR}" kernel || die "failed to build module" |
| } |
} |