Add win4lin

This commit is contained in:
Mario Fetka
2022-11-19 21:49:12 +01:00
parent 1bf994041f
commit dcd0ea6843
77 changed files with 3687 additions and 50 deletions

View File

@@ -0,0 +1 @@
EBUILD ncpfs-modules-9999.ebuild 1046 BLAKE2B 06878aea0d7014477f3602cbc7165a212bbfebe880d51d09cc53f2da62e143867ff8205329d10be6ea5faedfc3f367f31834573dc619de58de579dec54df39f1 SHA512 ff60d02df4343034dc52c6042fabeefd348af1e3d741954c771a2daec4b5ab42345a69bc39d84e499f47f5dc8385cc072fa1d95cb4589e15e6e810b30b5c6daa

View File

@@ -0,0 +1,55 @@
# 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"
EGIT_REPO_URI="https://github.com/EnzephaloN/ncpfs-module.git"
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
EGIT_BRANCH="master"
fi
git-r3_src_unpack
}
src_compile() {
BUILD_PARAMS="KDIR=${KV_OUT_DIR} M=${S}"
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
}