diff options
Diffstat (limited to 'sys-kernel/spl-dkms')
-rw-r--r-- | sys-kernel/spl-dkms/Manifest | 1 | ||||
-rw-r--r-- | sys-kernel/spl-dkms/files/dkms.conf | 57 | ||||
-rw-r--r-- | sys-kernel/spl-dkms/spl-dkms-0.6.5.9.ebuild | 50 |
3 files changed, 108 insertions, 0 deletions
diff --git a/sys-kernel/spl-dkms/Manifest b/sys-kernel/spl-dkms/Manifest new file mode 100644 index 00000000..197e6bb5 --- /dev/null +++ b/sys-kernel/spl-dkms/Manifest @@ -0,0 +1 @@ +DIST spl-0.6.5.9.tar.gz 594271 SHA256 d9ccd24786bb5a8616748a93a3c0b1270aa891175e2f5d726195b416f5c03b9c SHA512 356db95fcc93eb4ee298efc1ac25d38743572c539fc10b2d1533af861b4fd60804e61c3fb9f9bbad3d7a51cf123113b5b0bcbd49eba1bad7b1d8823d206022e8 WHIRLPOOL 6565a4939efaeba0cff75496ce9e8ea84b55da97fe47457ca33bcaf07aaa93a27dd410a9264b29539e65475029c0f0c612bc93b9fee4f97c7d6db9c92aab6a34 diff --git a/sys-kernel/spl-dkms/files/dkms.conf b/sys-kernel/spl-dkms/files/dkms.conf new file mode 100644 index 00000000..8ac2b1a7 --- /dev/null +++ b/sys-kernel/spl-dkms/files/dkms.conf @@ -0,0 +1,57 @@ +PACKAGE_NAME="spl-dkms" +PACKAGE_VERSION="0.6.5.9" +PACKAGE_CONFIG="/etc/sysconfig/spl" +PRE_BUILD="configure + --prefix=/usr + --with-config=kernel + --with-linux=${kernel_source_dir} + --with-linux-obj=${kernel_source_dir} + $( + [[ -r ${PACKAGE_CONFIG} ]] \ + && source ${PACKAGE_CONFIG} \ + && shopt -q -s extglob \ + && \ + { + if [[ ${SPL_DKMS_ENABLE_DEBUG,,} == @(y|yes) ]] + then + echo --enable-debug + fi + if [[ ${SPL_DKMS_ENABLE_DEBUG_KMEM,,} == @(y|yes) ]] + then + echo --enable-debug-kmem + fi + if [[ ${SPL_DKMS_ENABLE_DEBUG_KMEM_TRACKING,,} == @(y|yes) ]] + then + echo --enable-debug-kmem-tracking + fi + if [[ ${SPL_DKMS_ENABLE_ATOMIC_SPINLOCKS,,} == @(y|yes) ]] + then + echo --enable-atomic-spinlocks + fi + } + ) +" +POST_BUILD="scripts/dkms.postbuild + -n ${PACKAGE_NAME} + -v ${PACKAGE_VERSION} + -a ${arch} + -k ${kernelver} + -t ${dkms_tree} +" +AUTOINSTALL="yes" +REMAKE_INITRD="no" +MAKE[0]="make" +STRIP[0]="$( + [[ -r ${PACKAGE_CONFIG} ]] \ + && source ${PACKAGE_CONFIG} \ + && shopt -q -s extglob \ + && [[ ${SPL_DKMS_DISABLE_STRIP,,} == @(y|yes) ]] \ + && echo -n no +)" +STRIP[1]="${STRIP[0]}" +BUILT_MODULE_NAME[0]="spl" +BUILT_MODULE_LOCATION[0]="module/spl/" +DEST_MODULE_LOCATION[0]="/extra/spl/spl" +BUILT_MODULE_NAME[1]="splat" +BUILT_MODULE_LOCATION[1]="module/splat/" +DEST_MODULE_LOCATION[1]="/extra/splat/splat" diff --git a/sys-kernel/spl-dkms/spl-dkms-0.6.5.9.ebuild b/sys-kernel/spl-dkms/spl-dkms-0.6.5.9.ebuild new file mode 100644 index 00000000..8c83f24b --- /dev/null +++ b/sys-kernel/spl-dkms/spl-dkms-0.6.5.9.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +MY_PN="spl" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Solaris Porting Layer sources for linux" +HOMEPAGE="http://zfsonlinux.org/" +SRC_URI="https://github.com/zfsonlinux/zfs/releases/download/zfs-${PV}/${MY_P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="amd64" +IUSE="" +DEPEND="sys-kernel/dkms" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + : +} + +src_configure() { + : +} + +src_compile() { + : +} + +src_install() { + cp "${FILESDIR}/dkms.conf" "${S}" || die + dodir /usr/src/${P} + insinto /usr/src/${P} + doins -r ${S}/* +} + +pkg_postinst() { + dkms add ${PN}/${PV} +} + +pkg_prerm() { + dkms remove ${PN}/${PV} --all +} |