move spl to sys-kernel/ category that upstream wants
This commit is contained in:
51
sys-kernel/spl/spl-0.6.0_rc6-r2.ebuild
Normal file
51
sys-kernel/spl/spl-0.6.0_rc6-r2.ebuild
Normal file
@@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
WANT_AUTOMAKE="1.11"
|
||||
AT_M4DIR=./config # for aclocal called by eautoreconf
|
||||
inherit linux-info eutils autotools
|
||||
|
||||
DESCRIPTION="Solaris Porting Layer - a Linux kernel module providing some Solaris kernel APIs"
|
||||
HOMEPAGE="http://zfsonlinux.org"
|
||||
SRC_URI="http://github.com/downloads/zfsonlinux/${PN}/${P/_/-}.tar.gz"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 -x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
virtual/linux-sources
|
||||
"
|
||||
RDEPEND=""
|
||||
|
||||
S="${WORKDIR}/${P/_/-}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.6.0-includedir.patch
|
||||
# Pinkbyte: fix build issue with 3.1 kernel
|
||||
epatch "${FILESDIR}"/${PN}-0.6.0-kernel-3.1-compat.patch
|
||||
# Pinkbyte: add compatibility with 3.2 kernel
|
||||
epatch "${FILESDIR}"/${PN}-0.6.0-kernel-3.2-compat.patch
|
||||
#
|
||||
eautoreconf
|
||||
# cd "${WORKDIR}"
|
||||
# ./autogen.sh
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
set_arch_to_kernel
|
||||
econf \
|
||||
--with-config=all \
|
||||
--with-linux="${KV_OUT_DIR}" \
|
||||
--with-linux-obj="${KV_OUT_DIR}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die 'emake install failed'
|
||||
dosym /usr/include/spl/spl_config.h /usr/include/spl/module/spl_config.h \
|
||||
|| die
|
||||
}
|
Reference in New Issue
Block a user