mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 22:52:59 -04:00
sys-apps/corefreq: add 2.0.8
Closes: https://bugs.gentoo.org/908946 Closes: https://bugs.gentoo.org/941193 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST corefreq-1.96.3.tar.gz 462294 BLAKE2B 0abf0f4228ec15344af41763e43cb315305e8ab26b87950a11275be7a0841de798052f743af3c0dd9c972fb0355a027f4df57a84b13d3ee956c5d72e529a8604 SHA512 d232a32e6bcf9b951b499defcc294eb714efcaf820ebf25c9f4404947ef1544777829c332e6b9419796d4e053645bc683e7afc1b1d2cf8f204048ff09816ab21
|
||||
DIST corefreq-2.0.8.tar.gz 1236511 BLAKE2B bb125d356e9b140bf9e93b3e5d96a27f2bdc56f6588fcf24bfd423fa7a11a04a1e2f777aab0141cbffeb0757133a22c01599d791df38f3230e6a413e1e1f78d3 SHA512 efbebb70d80425db2f448814e2c219013f795150a1cf13246565e3863fd0c66780e38f7a673479fe99cc3d5605d260e6caa77671cdfa74edf75d28db26817109
|
||||
|
||||
45
sys-apps/corefreq/corefreq-2.0.8.ebuild
Normal file
45
sys-apps/corefreq/corefreq-2.0.8.ebuild
Normal file
@@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit linux-mod-r1 systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="CPU monitoring and tuning software designed for 64-bit processors"
|
||||
HOMEPAGE="https://www.cyring.fr/"
|
||||
SRC_URI="https://github.com/cyring/CoreFreq/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/CoreFreq-${PV}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
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"
|
||||
DOCS=( README.md )
|
||||
|
||||
src_compile() {
|
||||
local modlist=( corefreqk=misc::build )
|
||||
local modargs=( KERNELDIR="${KV_OUT_DIR}" )
|
||||
linux-mod-r1_src_compile
|
||||
|
||||
emake V=1 CC="$(tc-getCC)" OPTIM_FLG="${CFLAGS} ${LDFLAGS}" corefreqd corefreq-cli
|
||||
}
|
||||
|
||||
src_install() {
|
||||
linux-mod-r1_src_install
|
||||
|
||||
dobin build/{corefreqd,corefreq-cli}
|
||||
newconfd "${FILESDIR}/${PN}.conf" "${PN}"
|
||||
doinitd "${FILESDIR}/${PN}"
|
||||
systemd_dounit "${PN}d.service"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
linux-mod-r1_pkg_postinst
|
||||
|
||||
einfo "To be able to use corefreq, you need to load kernel module:"
|
||||
einfo "modprobe corefreqk"
|
||||
einfo "After that - start daemon with corefreqd"
|
||||
einfo "or by 'rc-service corefreq start'"
|
||||
einfo "And only after that you can start corefreq-cli"
|
||||
}
|
||||
Reference in New Issue
Block a user