PACKAGE_NAME="zfs-dkms" PACKAGE_VERSION="2.2.7" PACKAGE_CONFIG="/etc/sysconfig/zfs" NO_WEAK_MODULES="yes" BUILD_EXCLUSIVE_KERNEL="^(5\.[0-9]+\.|6\.[0-9]\.|\.|6\.1[0-2]\.)" # only build for kernels v5.x.x up to and including v6.12.x PRE_BUILD="configure --prefix=/usr --with-config=kernel --with-linux=$( if [ -e "${kernel_source_dir/%build/source}" ] then echo "${kernel_source_dir/%build/source}" else echo "${kernel_source_dir}" fi ) --with-linux-obj="${kernel_source_dir}" $( [[ -n \"${ICP_ROOT}\" ]] && \ { echo --with-qat=\"${ICP_ROOT}\" } ) $( [[ -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_DEBUGINFO,,} == @(y|yes) ]] then echo --enable-debuginfo fi } ) " POST_BUILD="scripts/dkms.postbuild -n ${PACKAGE_NAME} -v ${PACKAGE_VERSION} -a ${arch} -k ${kernelver} -t ${dkms_tree} " AUTOINSTALL="yes" 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]}" BUILT_MODULE_NAME[0]="zfs" BUILT_MODULE_LOCATION[0]="module/" DEST_MODULE_LOCATION[0]="/extra/dkms" BUILT_MODULE_NAME[1]="spl" BUILT_MODULE_LOCATION[1]="module/" DEST_MODULE_LOCATION[1]="/extra/dkms"