summaryrefslogtreecommitdiff
path: root/sys-kernel/spl-dkms/files/dkms.conf
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/spl-dkms/files/dkms.conf
parent46398022c8c7ee987d95a77347b04735fd0a34c9 (diff)
add zfs && spl dkms packages
Diffstat (limited to 'sys-kernel/spl-dkms/files/dkms.conf')
-rw-r--r--sys-kernel/spl-dkms/files/dkms.conf57
1 files changed, 57 insertions, 0 deletions
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"