From 1bb184def392ced13e278e43e8d06e92e5eb58a9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 11 Sep 2024 19:31:19 +0100 Subject: sys-kernel/tp_smapi-dkms : enable build for kernel v6.10.x --- sys-kernel/tp_smapi-dkms/files/dkms-hdaps.conf | 2 +- sys-kernel/tp_smapi-dkms/files/dkms.conf | 2 +- .../tp_smapi-dkms/tp_smapi-dkms-0.44-r1.ebuild | 53 ---------------------- .../tp_smapi-dkms/tp_smapi-dkms-0.44-r2.ebuild | 53 ++++++++++++++++++++++ 4 files changed, 55 insertions(+), 55 deletions(-) delete mode 100644 sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.44-r1.ebuild create mode 100644 sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.44-r2.ebuild (limited to 'sys-kernel/tp_smapi-dkms') diff --git a/sys-kernel/tp_smapi-dkms/files/dkms-hdaps.conf b/sys-kernel/tp_smapi-dkms/files/dkms-hdaps.conf index 9a74ec7a..47ff3d01 100644 --- a/sys-kernel/tp_smapi-dkms/files/dkms-hdaps.conf +++ b/sys-kernel/tp_smapi-dkms/files/dkms-hdaps.conf @@ -1,6 +1,6 @@ PACKAGE_NAME="tp_smapi-dkms" PACKAGE_VERSION="0.44" -BUILD_EXCLUSIVE_KERNEL="^(5\.[0-9]+\.|6\.[0-8]\.)" # only build for kernels v5.x.x up to and including v6.8.x +BUILD_EXCLUSIVE_KERNEL="^(5\.[0-9]+\.|6\.[0-9]\.|\.|6\.1[0-0]\.)" # only build for kernels v5.x.x up to and including v6.10.x MAKE[0]="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build HDAPS=1" CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean" BUILT_MODULE_NAME[0]="thinkpad_ec" diff --git a/sys-kernel/tp_smapi-dkms/files/dkms.conf b/sys-kernel/tp_smapi-dkms/files/dkms.conf index 9dbb68d1..1ec6cf56 100644 --- a/sys-kernel/tp_smapi-dkms/files/dkms.conf +++ b/sys-kernel/tp_smapi-dkms/files/dkms.conf @@ -1,6 +1,6 @@ PACKAGE_NAME="tp_smapi-dkms" PACKAGE_VERSION="0.44" -BUILD_EXCLUSIVE_KERNEL="^(5\.[0-9]+\.|6\.[0-8]\.)" # only build for kernels v5.x.x up to and including v6.8.x +BUILD_EXCLUSIVE_KERNEL="^(5\.[0-9]+\.|6\.[0-9]\.|\.|6\.1[0-0]\.)" # only build for kernels v5.x.x up to and including v6.10.x MAKE[0]="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build" CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean" BUILT_MODULE_NAME[0]="thinkpad_ec" diff --git a/sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.44-r1.ebuild b/sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.44-r1.ebuild deleted file mode 100644 index e50f0538..00000000 --- a/sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.44-r1.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -MY_PN=tp_smapi -MY_P=${MY_PN}-${PV} -DESCRIPTION="IBM ThinkPad SMAPI BIOS driver sources" -HOMEPAGE="https://github.com/linux-thinkpad/tp_smapi" -SRC_URI="https://github.com/linux-thinkpad/tp_smapi/releases/download/tp-smapi/${PV}/${MY_P}.tgz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" - -IUSE="hdaps" - -DEPEND="sys-kernel/dkms" -RDEPEND="${DEPEND}" - -S=${WORKDIR}/${MY_P} - -pkg_setup() { - if use hdaps; then - local CONFIG_CHECK="~INPUT_UINPUT" - local WARNING_INPUT_UINPUT="Your kernel needs uinput for the hdaps module to perform better" - local CONFIG_CHECK="~!SENSORS_HDAPS" - local ERROR_SENSORS_HDAPS="${P} with USE=hdaps conflicts with in-kernel HDAPS (CONFIG_SENSORS_HDAPS)" - fi -} - -src_compile() { - : -} - -src_install() { - if use hdaps; then - cp "${FILESDIR}"/dkms-hdaps.conf "${S}"/dkms.conf || die - else - cp "${FILESDIR}"/dkms.conf "${S}" || die - fi - dodir /usr/src/${P} - insinto /usr/src/${P} - doins -r "${S}"/* -} - -pkg_postinst() { - dkms add ${PN}/${PV} -} - -pkg_prerm() { - dkms remove ${PN}/${PV} --all -} diff --git a/sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.44-r2.ebuild b/sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.44-r2.ebuild new file mode 100644 index 00000000..e50f0538 --- /dev/null +++ b/sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.44-r2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN=tp_smapi +MY_P=${MY_PN}-${PV} +DESCRIPTION="IBM ThinkPad SMAPI BIOS driver sources" +HOMEPAGE="https://github.com/linux-thinkpad/tp_smapi" +SRC_URI="https://github.com/linux-thinkpad/tp_smapi/releases/download/tp-smapi/${PV}/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +IUSE="hdaps" + +DEPEND="sys-kernel/dkms" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + if use hdaps; then + local CONFIG_CHECK="~INPUT_UINPUT" + local WARNING_INPUT_UINPUT="Your kernel needs uinput for the hdaps module to perform better" + local CONFIG_CHECK="~!SENSORS_HDAPS" + local ERROR_SENSORS_HDAPS="${P} with USE=hdaps conflicts with in-kernel HDAPS (CONFIG_SENSORS_HDAPS)" + fi +} + +src_compile() { + : +} + +src_install() { + if use hdaps; then + cp "${FILESDIR}"/dkms-hdaps.conf "${S}"/dkms.conf || die + else + cp "${FILESDIR}"/dkms.conf "${S}" || die + fi + dodir /usr/src/${P} + insinto /usr/src/${P} + doins -r "${S}"/* +} + +pkg_postinst() { + dkms add ${PN}/${PV} +} + +pkg_prerm() { + dkms remove ${PN}/${PV} --all +} -- cgit v1.2.3