From 1d7c85e619f112ad2eddbef4bd033c15073fc47a Mon Sep 17 00:00:00 2001 From: kernaltrap Date: Fri, 27 Dec 2024 21:03:06 -0600 Subject: [PATCH] sys-kernel/zenpower3-0.2.0: Swap to working upstream So, probably wasn't the best idea to just drop 0.2.0 and add a 9999 ebuild. Im a little rusty. Anyway, I found a working upstream that can be used. Signed-off-by: kernaltrap --- ...use-symlink-to-detect-kernel-version.patch | 9 ----- sys-kernel/zenpower3/zenpower3-0.2.0.ebuild | 4 +- sys-kernel/zenpower3/zenpower3-9999.ebuild | 38 ------------------- 3 files changed, 2 insertions(+), 49 deletions(-) delete mode 100644 sys-kernel/zenpower3/files/zenpower3-9999-use-symlink-to-detect-kernel-version.patch delete mode 100644 sys-kernel/zenpower3/zenpower3-9999.ebuild diff --git a/sys-kernel/zenpower3/files/zenpower3-9999-use-symlink-to-detect-kernel-version.patch b/sys-kernel/zenpower3/files/zenpower3-9999-use-symlink-to-detect-kernel-version.patch deleted file mode 100644 index e92abc95500..00000000000 --- a/sys-kernel/zenpower3/files/zenpower3-9999-use-symlink-to-detect-kernel-version.patch +++ /dev/null @@ -1,9 +0,0 @@ ---- a/Makefile 2024-12-27 20:38:15.878880229 -0600 -+++ b/Makefile 2024-12-27 20:38:36.776225483 -0600 -@@ -1,5 +1,5 @@ - VERSION := 0.1.12 --TARGET := $(shell uname -r) -+TARGET ?= $(shell uname -r) - DKMS_ROOT_PATH := /usr/src/zenpower-$(VERSION) - - KERNEL_MODULES := /lib/modules/$(TARGET) diff --git a/sys-kernel/zenpower3/zenpower3-0.2.0.ebuild b/sys-kernel/zenpower3/zenpower3-0.2.0.ebuild index d9b81129f8f..877ff626a2f 100644 --- a/sys-kernel/zenpower3/zenpower3-0.2.0.ebuild +++ b/sys-kernel/zenpower3/zenpower3-0.2.0.ebuild @@ -7,8 +7,8 @@ inherit linux-mod-r1 DESCRIPTION="Linux kernel driver for reading sensors of AMD Zen family CPUs" HOMEPAGE="https://git.exozy.me/a/zenpower3" -SRC_URI="https://git.exozy.me/a/zenpower3/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${PN}" +SRC_URI="https://github.com/koweda/zenpower3/archive/refs/tags/v0.2.0.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" diff --git a/sys-kernel/zenpower3/zenpower3-9999.ebuild b/sys-kernel/zenpower3/zenpower3-9999.ebuild deleted file mode 100644 index 787bed043d6..00000000000 --- a/sys-kernel/zenpower3/zenpower3-9999.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 2020-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit linux-mod-r1 - -DESCRIPTION="Linux kernel driver for reading sensors of AMD Zen family CPUs" -HOMEPAGE="https://git.exozy.me/a/zenpower3" -if [[ ${PV} -eq 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/ocerman/zenpower" - S="${WORKDIR}/${PN}-9999" -else - SRC_URI="https://git.exozy.me/a/zenpower3/archive/v${PV}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/${PN}" -fi - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64" - -CONFIG_CHECK="HWMON PCI AMD_NB" - -PATCHES="${FILESDIR}/${P}-use-symlink-to-detect-kernel-version.patch" - -src_compile() { - export TARGET=${KV_FULL} - local modlist=( - zenpower=misc:::all - ) - linux-mod-r1_src_compile -} - -src_install() { - linux-mod-r1_src_install - dodoc README.md -}