|
|
|
@ -34,7 +34,7 @@ header="\ |
|
|
|
|
#" |
|
|
|
|
|
|
|
|
|
update_linux_lts_pkgbuilds() { |
|
|
|
|
pkg_list=("spl-utils-linux-lts" "spl-linux-lts" "zfs-utils-linux-lts" "zfs-linux-lts") |
|
|
|
|
pkg_list=("spl-linux-lts" "zfs-linux-lts") |
|
|
|
|
kernel_version_full=$(kernel_version_full ${kernel_version}) |
|
|
|
|
kernel_version_full_pkgver=$(kernel_version_full_no_hyphen ${kernel_version}) |
|
|
|
|
kernel_version_major=${kernel_version%-*} |
|
|
|
@ -44,17 +44,16 @@ update_linux_lts_pkgbuilds() { |
|
|
|
|
zfs_pkgver=${zol_version}_${kernel_version_full_pkgver} |
|
|
|
|
spl_pkgrel=${pkgrel} |
|
|
|
|
zfs_pkgrel=${pkgrel} |
|
|
|
|
spl_utils_conflicts="'spl-utils-linux' 'spl-utils-linux-git' 'spl-utils-linux-lts-git'" |
|
|
|
|
spl_conflicts="'spl-utils-linux' 'spl-utils-linux-git' 'spl-linux-lts-git'" |
|
|
|
|
zfs_utils_conflicts="'zfs-utils-linux' 'zfs-utils-linux-git' 'zfs-utils-linux-lts-git'" |
|
|
|
|
zfs_conflicts="'zfs-linux' 'zfs-linux-git' 'zfs-linux-lts-git'" |
|
|
|
|
spl_utils_pkgname="spl-utils-linux-lts" |
|
|
|
|
spl_conflicts="'spl-linux-lts-git'" |
|
|
|
|
spl_headers_conflicts="'spl-linux-lts-git-headers' 'spl-linux-headers' 'spl-linux-git-headers' 'spl-linux-hardened-headers' 'spl-linux-hardened-git-headers'" |
|
|
|
|
zfs_headers_conflicts="'zfs-linux-lts-git-headers' 'zfs-linux-headers' 'zfs-linux-git-headers' 'zfs-linux-hardened-headers' 'zfs-linux-hardened-git-headers'" |
|
|
|
|
zfs_conflicts="'zfs-linux-lts-git'" |
|
|
|
|
spl_pkgname="spl-linux-lts" |
|
|
|
|
zfs_utils_pkgname="zfs-utils-linux-lts" |
|
|
|
|
spl_utils_pkgname="spl-utils-common" |
|
|
|
|
zfs_pkgname="zfs-linux-lts" |
|
|
|
|
spl_utils_pkgbuild_path="packages/${kernel_name}/${spl_utils_pkgname}" |
|
|
|
|
zfs_utils_pkgname="zfs-utils-common" |
|
|
|
|
# Paths are relative to build.sh |
|
|
|
|
spl_pkgbuild_path="packages/${kernel_name}/${spl_pkgname}" |
|
|
|
|
zfs_utils_pkgbuild_path="packages/${kernel_name}/${zfs_utils_pkgname}" |
|
|
|
|
zfs_pkgbuild_path="packages/${kernel_name}/${zfs_pkgname}" |
|
|
|
|
spl_src_target="https://github.com/zfsonlinux/zfs/releases/download/zfs-${zol_version}/spl-${zol_version}.tar.gz" |
|
|
|
|
zfs_src_target="https://github.com/zfsonlinux/zfs/releases/download/zfs-${zol_version}/zfs-${zol_version}.tar.gz" |
|
|
|
@ -62,10 +61,12 @@ update_linux_lts_pkgbuilds() { |
|
|
|
|
zfs_workdir="\${srcdir}/zfs-${zol_version}" |
|
|
|
|
linux_depends="\"linux-lts=${kernel_version_major}\"" |
|
|
|
|
linux_headers_depends="\"linux-lts-headers=${kernel_version_major}\"" |
|
|
|
|
spl_makedepends="\"libelf\"" |
|
|
|
|
zfs_makedepends="\"libelf\" \"${spl_pkgname}-headers\"" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
update_linux_lts_git_pkgbuilds() { |
|
|
|
|
pkg_list=("spl-utils-linux-lts-git" "spl-linux-lts-git" "zfs-utils-linux-lts-git" "zfs-linux-lts-git") |
|
|
|
|
pkg_list=("spl-linux-lts-git" "zfs-linux-lts-git") |
|
|
|
|
kernel_version=${kernel_version_git} |
|
|
|
|
kernel_version_full=$(kernel_version_full ${kernel_version_git}) |
|
|
|
|
kernel_version_full_pkgver=$(kernel_version_full_no_hyphen ${kernel_version_git}) |
|
|
|
@ -76,17 +77,15 @@ update_linux_lts_git_pkgbuilds() { |
|
|
|
|
zfs_pkgver="" # Set later by call to git_calc_pkgver |
|
|
|
|
spl_pkgrel=${pkgrel_git} |
|
|
|
|
zfs_pkgrel=${pkgrel_git} |
|
|
|
|
spl_utils_conflicts="'spl-utils-linux' 'spl-utils-linux-git' 'spl-utils-linux-lts'" |
|
|
|
|
spl_conflicts="'spl-utils-linux' 'spl-utils-linux-git' 'spl-utils-linux-lts'" |
|
|
|
|
zfs_utils_conflicts="'zfs-utils-linux' 'zfs-utils-linux-git' 'zfs-utils-linux-lts'" |
|
|
|
|
zfs_conflicts="'zfs-linux' 'zfs-linux' 'zfs-git' 'zfs-linux-lts'" |
|
|
|
|
spl_utils_pkgname="spl-utils-linux-lts-git" |
|
|
|
|
spl_conflicts="'spl-linux-lts'" |
|
|
|
|
spl_headers_conflicts="'spl-linux-lts-headers' 'spl-linux-headers' 'spl-linux-git-headers' 'spl-linux-hardened-headers' 'spl-linux-hardened-git-headers'" |
|
|
|
|
zfs_headers_conflicts="'zfs-linux-lts-headers' 'zfs-linux-headers' 'zfs-linux-git-headers' 'zfs-linux-hardened-headers' 'zfs-linux-hardened-git-headers'" |
|
|
|
|
zfs_conflicts="'zfs-linux-lts'" |
|
|
|
|
spl_pkgname="spl-linux-lts-git" |
|
|
|
|
zfs_utils_pkgname="zfs-utils-linux-lts-git" |
|
|
|
|
spl_utils_pkgname="spl-utils-common-git" |
|
|
|
|
zfs_pkgname="zfs-linux-lts-git" |
|
|
|
|
spl_utils_pkgbuild_path="packages/${kernel_name}/${spl_utils_pkgname}" |
|
|
|
|
zfs_utils_pkgname="zfs-utils-common-git" |
|
|
|
|
spl_pkgbuild_path="packages/${kernel_name}/${spl_pkgname}" |
|
|
|
|
zfs_utils_pkgbuild_path="packages/${kernel_name}/${zfs_utils_pkgname}" |
|
|
|
|
zfs_pkgbuild_path="packages/${kernel_name}/${zfs_pkgname}" |
|
|
|
|
spl_src_target="git+${spl_git_url}" |
|
|
|
|
if [[ ${spl_git_commit} != "" ]]; then |
|
|
|
@ -95,13 +94,13 @@ update_linux_lts_git_pkgbuilds() { |
|
|
|
|
spl_src_hash="SKIP" |
|
|
|
|
linux_depends="\"linux-lts=${kernel_version_full}\"" |
|
|
|
|
linux_headers_depends="\"linux-lts-headers=${kernel_version_full}\"" |
|
|
|
|
spl_makedepends="\"git\"" |
|
|
|
|
spl_makedepends="\"libelf\" \"git\"" |
|
|
|
|
zfs_src_target="git+${zfs_git_url}" |
|
|
|
|
if [[ ${zfs_git_commit} != "" ]]; then |
|
|
|
|
zfs_src_target="git+${zfs_git_url}#commit=${zfs_git_commit}" |
|
|
|
|
fi |
|
|
|
|
zfs_src_hash="SKIP" |
|
|
|
|
zfs_makedepends="\"git\"" |
|
|
|
|
zfs_makedepends="\"libelf\" \"git\" \"${spl_pkgname}-headers\"" |
|
|
|
|
spl_workdir="\${srcdir}/spl" |
|
|
|
|
zfs_workdir="\${srcdir}/zfs" |
|
|
|
|
if have_command "update"; then |
|
|
|
|