Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zenpower3 #3844

Merged
merged 5 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/overlay.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
oldver = "old_ver.json"
newver = "new_ver.json"

["app-admin/zenmonitor"]
source = "github"
github = "ocerman/zenmonitor"
use_latest_tag = true
["app-admin/zenmonitor3"]
source = "git"
git = "https://git.exozy.me/a/zenmonitor3"
prefix = "v"
github_account = "CHN-beta"
github_account = "liuyujielol"

["app-arch/zchunk"]
source = "github"
Expand Down Expand Up @@ -1116,11 +1115,11 @@ to_pattern = "\\1"
# TODO
#["sys-kernel/xanmod-rt"]

["sys-kernel/zenpower"]
source = "github"
github = "ocerman/zenpower"
use_latest_tag = true
["sys-kernel/zenpower3"]
source = "git"
git = "https://git.exozy.me/a/zenpower3"
prefix = "v"
github_account = "liuyujielol"

#["sys-libs/cutefish-core"]

Expand Down
1 change: 0 additions & 1 deletion app-admin/zenmonitor/Manifest

This file was deleted.

52 changes: 0 additions & 52 deletions app-admin/zenmonitor/files/zenmonitor.patch

This file was deleted.

48 changes: 0 additions & 48 deletions app-admin/zenmonitor/zenmonitor-1.4.2.ebuild

This file was deleted.

1 change: 1 addition & 0 deletions app-admin/zenmonitor3/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST zenmonitor3-2.0.0.tar.gz 83643 BLAKE2B e5560f944c9901651bcc61810d2badec32ebf9ca9b4c8a958d37f5d433a36280b433d7226560341f5861b74ad97bc3b263368db6fe1dabac6d7ea5f698ea4ffe SHA512 bbdb484ff4823a43812e37a4a087455c285631f179e36260b2052481ec0c697995f907d46865d40f1ab66a3ce9c051a97b984107818957b1ebb0407a008a5925
11 changes: 11 additions & 0 deletions app-admin/zenmonitor3/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>liuyujielol</name>
</maintainer>
<use>
<flag name="polkit">Install polkit policy for app-admin/zenmonitor3</flag>
</use>
</pkgmetadata>
44 changes: 44 additions & 0 deletions app-admin/zenmonitor3/zenmonitor3-2.0.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit xdg

DESCRIPTION="Zen monitor is monitoring software for AMD Zen-based CPUs"
HOMEPAGE="https://git.exozy.me/a/zenmonitor3"

if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://git.exozy.me/a/zenpower3.git"
inherit git-r3
else
SRC_URI="https://git.exozy.me/a/zenmonitor3/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}"
KEYWORDS="~amd64"
fi

LICENSE="MIT"
SLOT="0"
IUSE="+polkit"

DEPEND="
x11-libs/gtk+:3
sys-kernel/zenpower3
polkit? ( sys-auth/polkit )
"
RDEPEND="${DEPEND}"

src_install() {
emake DESTDIR="${ED}" PREFIX=/usr install
sed -i "s#${ED}##" "${ED}/usr/share/applications/zenmonitor.desktop" || die

if use polkit; then
mkdir -p "${ED}/usr/share/polkit-1/actions" || die
emake DESTDIR="${ED}" PREFIX=/usr install-polkit
sed -i "s#${ED}##" "${ED}/usr/share/applications/zenmonitor-root.desktop" || die
sed -i "s#${ED}##" "${ED}/usr/share/polkit-1/actions/org.pkexec.zenmonitor.policy" || die
fi

local DOCS=( README.md )
einstalldocs
}
1 change: 0 additions & 1 deletion sys-kernel/zenpower/Manifest

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions sys-kernel/zenpower/metadata.xml

This file was deleted.

32 changes: 0 additions & 32 deletions sys-kernel/zenpower/zenpower-0.1.12-r1.ebuild

This file was deleted.

1 change: 1 addition & 0 deletions sys-kernel/zenpower3/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST zenpower3-0.2.0.tar.gz 14030 BLAKE2B fc50a114b200b000e4bfeba4222595d9b1e07cf3bcd929612723f8c5a8cab5fb9fe7bf3aa7c4bb17a03a0dc2b0cbf5b8ee92e3d84752b0f30900dbee198985d3 SHA512 25c9b43af091f79720b4cb64f315c2e035b1b26a8a91ff99f8bbd06cc630c588f400bcee12708a51646d349e5b6c62b5560b45d2380aff7dfbadbc08e1352c92
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">ocerman/zenmonitor</remote-id>
</upstream>
<maintainer type="person">
<email>[email protected]</email>
<name>liuyujielol</name>
</maintainer>
</pkgmetadata>
41 changes: 41 additions & 0 deletions sys-kernel/zenpower3/zenpower3-0.2.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2023 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} == 9999 ]] ; then
EGIT_REPO_URI="https://git.exozy.me/a/zenpower3.git"
inherit git-r3
unset MODULES_KERNEL_MAX
else
SRC_URI="https://git.exozy.me/a/zenpower3/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}"
KEYWORDS="~amd64"
fi

LICENSE="GPL-2"
SLOT="0"

CONFIG_CHECK="HWMON PCI AMD_NB"
MODULES_KERNEL_MIN=5.3.4

src_compile() {
local modlist=(
zenpower
)
local modargs=( TARGET="${KV_FULL}" KERNEL_BUILD="${KV_OUT_DIR}" )
linux-mod-r1_src_compile
}

pkg_postinst() {
linux-mod-r1_pkg_postinst

elog ""
elog "To use zenpower, please disable k10temp first"
elog "see https://git.exozy.me/a/zenpower3#module-activation"
}
Loading