sys-apps/corefreq: new package, add 1.96.1

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
Vitaly Zdanevich
2023-05-30 16:53:33 +04:00
parent 25b77aa597
commit 11a9dd7c24
3 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST corefreq-1.96.1.tar.gz 461602 BLAKE2B 14a2734f1d77fecda0c817e6477049b36a78ddff976e7984028f6563a179b59d5e41b4215a75199e309081456939902934e6a38d2a14b701f411d4da809e9421 SHA512 4b273a132f85472fb992dd688762758c4726222af8a1f8728f60c0b40cb2dfeb142d1af39efbf903a4087818038b8ac9eb4a5b8967fc06fa3a695f6824a6861e

View File

@@ -0,0 +1,49 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-mod
DESCRIPTION="CPU monitoring software designed for the 64-bits Processors"
HOMEPAGE="https://github.com/cyring/CoreFreq"
SRC_URI="https://github.com/cyring/CoreFreq/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64"
BDEPEND="sys-devel/gcc
sys-devel/make
dev-vcs/git"
RDEPEND="sys-libs/glibc"
CONFIG_CHECK="SMP X86_MSR ~HOTPLUG_CPU ~CPU_IDLE ~CPU_FREQ ~PM_SLEEP ~DMI ~XEN ~AMD_NB ~HAVE_PERF_EVENTS ~SCHED_MUQSS ~SCHED_BMQ ~SCHED_PDS"
MODULE_NAMES="corefreqk()"
BUILD_TARGETS="clean all"
pkg_setup() {
if kernel_is -lt 3 3 ; then
die "kernels < 3.3 are not supported"
fi
elog "Checking for kernel configurations..."
elog "Enable optional configurations only as you see fit."
elog "Not all optional configurations will be suitable for your system."
elog "Build will fail for required configs."
elog "The other configs are all optional configs."
linux-mod_pkg_setup
}
src_unpack() {
default
mv CoreFreq-${PV} ${P}
}
src_install() {
linux-mod_src_install
emake -j1 PREFIX="${D}/usr" install
newinitd "${FILESDIR}/corefreqd corefreqd"
}

View File

@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream><remote-id type="github">cyring/CoreFreq</remote-id></upstream>
<maintainer type="person">
<email>zdanevich.vitaly@ya.ru</email>
<name>Vitaly Zdanevich</name>
</maintainer>
</pkgmetadata>