diff --git a/sys-power/nct6687d/Manifest b/sys-power/nct6687d/Manifest new file mode 100644 index 0000000000000..7752d5fa69a99 --- /dev/null +++ b/sys-power/nct6687d/Manifest @@ -0,0 +1 @@ +DIST nct6687d-0_pre20260313.tar.gz 278911 BLAKE2B c14889cb43f1c71488c570ef4587da8d984fa0030735b5d45d105d1fc5534faf95b14cb9b8a09d23e4eb0a9941e8bfd0bbe12974fec549935253b040a880ad29 SHA512 a70c814cda5a1065b6fa75e8f84d0d0c8cfa2186d6873c4e486552bbeb05245c80a39200c0de8a4f60e78bbdff9d7e0d00ae95a9be99a7b6bae529691744fd21 diff --git a/sys-power/nct6687d/metadata.xml b/sys-power/nct6687d/metadata.xml new file mode 100644 index 0000000000000..cac30ffc4214c --- /dev/null +++ b/sys-power/nct6687d/metadata.xml @@ -0,0 +1,16 @@ + + + + + nowa@gentoo.org + Nowa Ammerlaan + + + This kernel module enables recognition of the Nuvoton NCT6687-R chipset in sys-apps/lm-sensors. + This sensor is present on some motherboards from, for example, MSI or ASUS. + + + Fred78290/nct6687d + https://github.com/Fred78290/nct6687d/issues + + diff --git a/sys-power/nct6687d/nct6687d-0_pre20260313.ebuild b/sys-power/nct6687d/nct6687d-0_pre20260313.ebuild new file mode 100644 index 0000000000000..c525320fc1718 --- /dev/null +++ b/sys-power/nct6687d/nct6687d-0_pre20260313.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod-r1 + +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Fred78290/nct6687d" +else + COMMIT="cedda8bff09a4083e07414fb80fdc3901e7ab544" + SRC_URI="https://github.com/Fred78290/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Kernel module for the Nuvoton NCT6687-R" +HOMEPAGE="https://github.com/Fred78290/nct6687d" + +LICENSE="GPL-2" +SLOT="0" + +src_compile() { + local modlist=( nct6687=drivers/hwmon::${KV_FULL}:build ) + local modargs=( kver="${KV_FULL}" ) + linux-mod-r1_src_compile +} diff --git a/sys-power/nct6687d/nct6687d-9999.ebuild b/sys-power/nct6687d/nct6687d-9999.ebuild new file mode 100644 index 0000000000000..c525320fc1718 --- /dev/null +++ b/sys-power/nct6687d/nct6687d-9999.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod-r1 + +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Fred78290/nct6687d" +else + COMMIT="cedda8bff09a4083e07414fb80fdc3901e7ab544" + SRC_URI="https://github.com/Fred78290/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Kernel module for the Nuvoton NCT6687-R" +HOMEPAGE="https://github.com/Fred78290/nct6687d" + +LICENSE="GPL-2" +SLOT="0" + +src_compile() { + local modlist=( nct6687=drivers/hwmon::${KV_FULL}:build ) + local modargs=( kver="${KV_FULL}" ) + linux-mod-r1_src_compile +}