linamh/net-fs/ncpfs-modules/ncpfs-modules-9999.ebuild

69 lines
1.3 KiB
Bash
Raw Permalink Normal View History

2022-11-19 21:49:12 +01:00
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 linux-info linux-mod
DESCRIPTION="ncpfs kernel module for Linux 4.18+"
HOMEPAGE="https://github.com/EnzephaloN/ncpfs-module"
2024-04-15 12:53:08 +02:00
EGIT_REPO_URI="https://github.com/EnzephaloN/ncpfs-module.git"
#EGIT_REPO_URI="https://github.com/hundertzwei/ncpfs-module.git"
2022-11-19 21:49:12 +01:00
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
BUILD_TARGETS="all"
CONFIG_CHECK="NET"
MODULE_NAMES="ncpfs(ncpfs:${S})"
src_unpack() {
if kernel_is gt 4 18 0; then
EGIT_BRANCH="kernel_4.19"
fi
if kernel_is gt 4 20 0; then
EGIT_BRANCH="kernel_4.20"
fi
if kernel_is gt 5 2 0; then
EGIT_BRANCH="kernel_5.2"
fi
if kernel_is gt 5 6 0; then
EGIT_BRANCH="kernel_5.6"
fi
if kernel_is gt 5 12 0; then
EGIT_BRANCH="kernel_5.12"
fi
if kernel_is gt 5 15 0; then
EGIT_BRANCH="kernel_5.15"
fi
if kernel_is gt 5 19 0; then
2023-05-26 12:27:54 +02:00
EGIT_BRANCH="kernel_5.19"
fi
if kernel_is gt 6 3 0; then
2023-11-28 14:02:18 +01:00
EGIT_BRANCH="kernel_6.3"
fi
if kernel_is gt 6 5 0; then
2024-03-12 20:41:02 +01:00
EGIT_BRANCH="kernel_6.5"
fi
if kernel_is gt 6 6 0; then
2024-04-15 12:53:08 +02:00
EGIT_BRANCH="kernel_6.6"
2022-11-19 21:49:12 +01:00
fi
2024-03-12 20:41:02 +01:00
if kernel_is gt 6 8 0; then
2024-04-15 12:53:08 +02:00
EGIT_BRANCH="master"
2024-03-12 20:41:02 +01:00
fi
2022-11-19 21:49:12 +01:00
git-r3_src_unpack
}
src_compile() {
BUILD_PARAMS="KDIR=${KV_OUT_DIR} M=${S}"
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
}