summaryrefslogtreecommitdiff
path: root/sys-kernel/zfs-dkms
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-06-05 13:26:58 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-06-05 13:26:58 +0100
commit56445d1242dd1124657ec42b3d453fca8e3643ba (patch)
treee5f655955b4bccc65b286d5cc219b4c012ea73c9 /sys-kernel/zfs-dkms
parent46398022c8c7ee987d95a77347b04735fd0a34c9 (diff)
add zfs && spl dkms packages
Diffstat (limited to 'sys-kernel/zfs-dkms')
-rw-r--r--sys-kernel/zfs-dkms/Manifest1
-rw-r--r--sys-kernel/zfs-dkms/files/dkms.conf69
-rw-r--r--sys-kernel/zfs-dkms/zfs-dkms-0.6.5.9.ebuild50
3 files changed, 120 insertions, 0 deletions
diff --git a/sys-kernel/zfs-dkms/Manifest b/sys-kernel/zfs-dkms/Manifest
new file mode 100644
index 00000000..01dbebe5
--- /dev/null
+++ b/sys-kernel/zfs-dkms/Manifest
@@ -0,0 +1 @@
+DIST zfs-0.6.5.9.tar.gz 2610650 SHA256 b724b57dbddae59246fdc15f88f1224061c712945bb36412a2087e0c7760d77f SHA512 6e175f32421cf0f9e13429f12f0fac0564dc7059ab076831d0ebc4f6a17412160ca3526ebdf894bc7666e82580355b08701dd01c411d3177f82e7330b4529a37 WHIRLPOOL 149d730a26363b50691363b314669756d218c4a16e6d06e319c2b0866c5f8ed6e2da2396a516297c127d3343d51d78072d8b7371e3f4d327d30fa43c90be5cd3
diff --git a/sys-kernel/zfs-dkms/files/dkms.conf b/sys-kernel/zfs-dkms/files/dkms.conf
new file mode 100644
index 00000000..a5b3e9f9
--- /dev/null
+++ b/sys-kernel/zfs-dkms/files/dkms.conf
@@ -0,0 +1,69 @@
+PACKAGE_NAME="zfs-dkms"
+PACKAGE_VERSION="0.6.5.9"
+PACKAGE_CONFIG="/etc/sysconfig/zfs"
+PRE_BUILD="configure
+ --prefix=/usr
+ --with-config=kernel
+ --with-linux=${kernel_source_dir}
+ --with-linux-obj=${kernel_source_dir}
+ --with-spl=${source_tree}/spl-dkms-${PACKAGE_VERSION}
+ --with-spl-obj=${dkms_tree}/spl-dkms/${PACKAGE_VERSION}/${kernelver}/${arch}
+ --with-spl-timeout=300
+ $(
+ [[ -r ${PACKAGE_CONFIG} ]] \
+ && source ${PACKAGE_CONFIG} \
+ && shopt -q -s extglob \
+ && \
+ {
+ if [[ ${ZFS_DKMS_ENABLE_DEBUG,,} == @(y|yes) ]]
+ then
+ echo --enable-debug
+ fi
+ if [[ ${ZFS_DKMS_ENABLE_DMU_TX,,} == @(y|yes) ]]
+ then
+ echo --enable-debug-dmu-tx
+ fi
+ }
+ )
+"
+POST_BUILD="scripts/dkms.postbuild
+ -n ${PACKAGE_NAME}
+ -v ${PACKAGE_VERSION}
+ -a ${arch}
+ -k ${kernelver}
+ -t ${dkms_tree}
+"
+BUILD_DEPENDS[0]="spl"
+AUTOINSTALL="yes"
+REMAKE_INITRD="no"
+MAKE[0]="make"
+STRIP[0]="$(
+ [[ -r ${PACKAGE_CONFIG} ]] \
+ && source ${PACKAGE_CONFIG} \
+ && shopt -q -s extglob \
+ && [[ ${ZFS_DKMS_DISABLE_STRIP,,} == @(y|yes) ]] \
+ && echo -n no
+)"
+STRIP[1]="${STRIP[0]}"
+STRIP[2]="${STRIP[0]}"
+STRIP[3]="${STRIP[0]}"
+STRIP[4]="${STRIP[0]}"
+STRIP[5]="${STRIP[0]}"
+BUILT_MODULE_NAME[0]="zavl"
+BUILT_MODULE_LOCATION[0]="module/avl/"
+DEST_MODULE_LOCATION[0]="/extra/avl/avl"
+BUILT_MODULE_NAME[1]="znvpair"
+BUILT_MODULE_LOCATION[1]="module/nvpair/"
+DEST_MODULE_LOCATION[1]="/extra/nvpair/znvpair"
+BUILT_MODULE_NAME[2]="zunicode"
+BUILT_MODULE_LOCATION[2]="module/unicode/"
+DEST_MODULE_LOCATION[2]="/extra/unicode/zunicode"
+BUILT_MODULE_NAME[3]="zcommon"
+BUILT_MODULE_LOCATION[3]="module/zcommon/"
+DEST_MODULE_LOCATION[3]="/extra/zcommon/zcommon"
+BUILT_MODULE_NAME[4]="zfs"
+BUILT_MODULE_LOCATION[4]="module/zfs/"
+DEST_MODULE_LOCATION[4]="/extra/zfs/zfs"
+BUILT_MODULE_NAME[5]="zpios"
+BUILT_MODULE_LOCATION[5]="module/zpios/"
+DEST_MODULE_LOCATION[5]="/extra/zpios/zpios"
diff --git a/sys-kernel/zfs-dkms/zfs-dkms-0.6.5.9.ebuild b/sys-kernel/zfs-dkms/zfs-dkms-0.6.5.9.ebuild
new file mode 100644
index 00000000..7bc7ea25
--- /dev/null
+++ b/sys-kernel/zfs-dkms/zfs-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="zfs"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="ZFS 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
+}