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