diff options
Diffstat (limited to 'sys-fs/linux-apfs-rw/linux-apfs-rw-0.3.10.ebuild')
-rw-r--r-- | sys-fs/linux-apfs-rw/linux-apfs-rw-0.3.10.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sys-fs/linux-apfs-rw/linux-apfs-rw-0.3.10.ebuild b/sys-fs/linux-apfs-rw/linux-apfs-rw-0.3.10.ebuild new file mode 100644 index 000000000000..5d6a55ecd6d9 --- /dev/null +++ b/sys-fs/linux-apfs-rw/linux-apfs-rw-0.3.10.ebuild @@ -0,0 +1,40 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod-r1 + +DESCRIPTION="APFS module for linux, with experimental write support" +HOMEPAGE="https://github.com/linux-apfs/linux-apfs-rw" +SRC_URI="https://github.com/linux-apfs/linux-apfs-rw/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +CONFIG_CHECK="LIBCRC32C" + +pkg_setup() { + linux-mod-r1_pkg_setup +} + +src_prepare() { + default + sed -e "s/GIT_COMMIT=.*/GIT_COMMIT=${PV}/" -i genver.sh || die +} + +src_compile() { + local modlist=( apfs=extra ) + local modargs=( KERNEL_DIR=${KV_OUT_DIR} KERNELRELEASE=${KV_FULL} ) + + linux-mod-r1_src_compile +} + +src_install() { + linux-mod-r1_src_install +} + +pkg_postinst() { + linux-mod-r1_pkg_postinst +} |