mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
OpenZFS release 2.2.5 Notable upstream pull request merges: #15609566841171Only provide execvpe(3) when needed #159409edf6af4aReplace P2ALIGN with P2ALIGN_TYPED and delete P2ALIGN #160380f1e8ba2fL2ARC: Cleanup buffer re-compression #16104b474dfad0Refactor dbuf_read() for safer decryption #16118938d1588eMake more taskq parameters writable #16131672474659Slightly improve dnode hash #161384c0fbd8d6FreeBSD: Add zfs_link_create() error handling #16159fa4b1a404ZAP: Fix leaf references on zap_expand_leaf() errors #1616241f2a9c81Fix scn_queue races on very old pools #161654c484d66bFix ZIL clone records for legacy holes #1620627cc6df76Use memset to zero stack allocations containing unions #162072eab4f7b3Fix assertion in Persistent L2ARC #1621413ccbbb47Some improvements to metaslabs eviction #16216ba3c7692cDestroy ARC buffer in case of fill error #162584d2f7f983vdev_open: clear async fault flag after reopen #16264ef08cb26dFix long_free_dirty accounting for small files #1627354ef0fdf6head_errlog: fix use-after-free #1628414cce09a6FreeBSD: Use a statement expression to implement SET_ERROR() #164066f27c4cadMake 'rmmod zfs' work after zfs-2.2.4 Obtained from: OpenZFS OpenZFS commit:33174af151OpenZFS tag: zfs-2.2.5
87 lines
1.8 KiB
Bash
Executable file
87 lines
1.8 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
PROG=$0
|
|
|
|
pkgcfg=/etc/sysconfig/zfs
|
|
|
|
while getopts "n:v:c:f:" opt; do
|
|
case $opt in
|
|
n) pkgname=$OPTARG ;;
|
|
v) pkgver=$OPTARG ;;
|
|
c) pkgcfg=$OPTARG ;;
|
|
f) filename=$OPTARG ;;
|
|
*) err=1 ;;
|
|
esac
|
|
done
|
|
|
|
if [ -z "${pkgname}" ] || [ -z "${pkgver}" ] || [ -z "${filename}" ] ||
|
|
[ -n "${err}" ]; then
|
|
echo "Usage: $PROG -n <pkgname> -v <pkgver> -c <pkgcfg> -f <filename>"
|
|
exit 1
|
|
fi
|
|
|
|
exec cat >"${filename}" <<EOF
|
|
PACKAGE_NAME="${pkgname}"
|
|
PACKAGE_VERSION="${pkgver}"
|
|
PACKAGE_CONFIG="${pkgcfg}"
|
|
NO_WEAK_MODULES="yes"
|
|
PRE_BUILD="configure
|
|
--disable-dependency-tracking
|
|
--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"
|
|
BUILT_MODULE_NAME[1]="spl"
|
|
BUILT_MODULE_LOCATION[1]="module/"
|
|
DEST_MODULE_LOCATION[1]="/extra"
|
|
EOF
|