mirror of https://github.com/archzfs/archzfs
parent
86e0905c31
commit
d2f98d1ede
@ -0,0 +1,115 @@ |
||||
# For build.sh |
||||
mode_name="zen" |
||||
mode_desc="Select and use the packages for the linux-zen kernel" |
||||
|
||||
# Kernel versions for default ZFS packages |
||||
pkgrel="1" |
||||
kernel_version="4.12.4-1" |
||||
|
||||
# Kernel version for GIT packages |
||||
pkgrel_git="${pkgrel}" |
||||
kernel_version_git="${kernel_version}" |
||||
zfs_git_commit="" |
||||
spl_git_commit="" |
||||
zfs_git_url="https://github.com/zfsonlinux/zfs.git" |
||||
spl_git_url="https://github.com/zfsonlinux/spl.git" |
||||
|
||||
header="\ |
||||
# Maintainer: Jesus Alvarez <jeezusjr at gmail dot com> |
||||
# |
||||
# This PKGBUILD was generated by the archzfs build scripts located at |
||||
# |
||||
# http://github.com/archzfs/archzfs |
||||
# |
||||
# ! WARNING ! |
||||
# |
||||
# The archzfs packages are kernel modules, so these PKGBUILDS will only work with the kernel package they target. In this |
||||
# case, the archzfs-linux packages will only work with the default linux package! To have a single PKGBUILD target many |
||||
# kernels would make for a cluttered PKGBUILD! |
||||
# |
||||
# If you have a custom kernel, you will need to change things in the PKGBUILDS. If you would like to have AUR or archzfs repo |
||||
# packages for your favorite kernel package built using the archzfs build tools, submit a request in the Issue tracker on the |
||||
# archzfs github page. |
||||
#" |
||||
|
||||
# update_linux_pkgbuilds() { |
||||
# pkg_list=("spl-utils-linux" "spl-linux" "zfs-utils-linux" "zfs-linux") |
||||
# kernel_version_full=$(kernel_version_full ${kernel_version}) |
||||
# kernel_version_full_pkgver=$(kernel_version_full_no_hyphen ${kernel_version}) |
||||
# kernel_version_major=${kernel_version%-*} |
||||
# kernel_mod_path="${kernel_version_full}-ARCH" |
||||
# archzfs_package_group="archzfs-linux" |
||||
# spl_pkgver=${zol_version}_${kernel_version_full_pkgver} |
||||
# zfs_pkgver=${zol_version}_${kernel_version_full_pkgver} |
||||
# spl_pkgrel=${pkgrel} |
||||
# zfs_pkgrel=${pkgrel} |
||||
# spl_utils_conflicts="'spl-utils-linux-git' 'spl-utils-linux-lts'" |
||||
# spl_conflicts="'spl-utils-linux-git' 'spl-utils-linux-lts'" |
||||
# zfs_utils_conflicts="'zfs-utils-linux-git' 'zfs-utils-linux-lts'" |
||||
# zfs_conflicts="'zfs-linux-git' 'zfs-linux-lts'" |
||||
# spl_utils_pkgname="spl-utils-linux" |
||||
# spl_pkgname="spl-linux" |
||||
# zfs_utils_pkgname="zfs-utils-linux" |
||||
# zfs_pkgname="zfs-linux" |
||||
# # Paths are relative to build.sh |
||||
# spl_utils_pkgbuild_path="packages/${kernel_name}/${spl_utils_pkgname}" |
||||
# 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" |
||||
# spl_workdir="\${srcdir}/spl-${zol_version}" |
||||
# zfs_workdir="\${srcdir}/zfs-${zol_version}" |
||||
# linux_depends="\"linux=${kernel_version_full}\"" |
||||
# linux_headers_depends="\"linux-headers=${kernel_version_full}\"" |
||||
# spl_replaces='replaces=("spl-git")' |
||||
# spl_utils_replaces='replaces=("spl-utils-git")' |
||||
# zfs_replaces='replaces=("zfs-git")' |
||||
# zfs_utils_replaces='replaces=("zfs-utils-git")' |
||||
# } |
||||
|
||||
update_linux_git_pkgbuilds() { |
||||
pkg_list=("spl-utils-linux-zen-git" "spl-linux-zen-git" "zfs-utils-linux-zen-git" "zfs-linux-zen-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}) |
||||
kernel_version_major=${kernel_version_git%-*} |
||||
kernel_mod_path="${kernel_version_full}-zen" |
||||
archzfs_package_group="archzfs-linux-zen-git" |
||||
spl_pkgver="" # Set later by call to git_calc_pkgver |
||||
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-zen'" |
||||
zfs_utils_conflicts="'zfs-utils-linux-zen' 'zfs-utils-linux-git' 'zfs-utils-linux-lts'" |
||||
zfs_conflicts="'zfs-linux-zen'" |
||||
spl_utils_pkgname="spl-utils-linux-zen-git" |
||||
spl_pkgname="spl-linux-zen-git" |
||||
zfs_utils_pkgname="zfs-utils-linux-zen-git" |
||||
zfs_pkgname="zfs-linux-zen-git" |
||||
spl_utils_pkgbuild_path="packages/${kernel_name}/${spl_utils_pkgname}" |
||||
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 |
||||
spl_src_target="git+${spl_git_url}#commit=${spl_git_commit}" |
||||
fi |
||||
spl_src_hash="SKIP" |
||||
linux_depends="\"linux-zen=${kernel_version_full}\"" |
||||
linux_headers_depends="\"linux-zen-headers=${kernel_version_full}\"" |
||||
spl_makedepends="\"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\"" |
||||
spl_workdir="\${srcdir}/spl" |
||||
zfs_workdir="\${srcdir}/zfs" |
||||
if have_command "update"; then |
||||
git_check_repo |
||||
git_calc_pkgver |
||||
fi |
||||
} |
Loading…
Reference in new issue