diff --git a/sys-apps/corefreq/Manifest b/sys-apps/corefreq/Manifest new file mode 100644 index 0000000000..65782ec390 --- /dev/null +++ b/sys-apps/corefreq/Manifest @@ -0,0 +1 @@ +DIST corefreq-1.96.1.tar.gz 461602 BLAKE2B 14a2734f1d77fecda0c817e6477049b36a78ddff976e7984028f6563a179b59d5e41b4215a75199e309081456939902934e6a38d2a14b701f411d4da809e9421 SHA512 4b273a132f85472fb992dd688762758c4726222af8a1f8728f60c0b40cb2dfeb142d1af39efbf903a4087818038b8ac9eb4a5b8967fc06fa3a695f6824a6861e diff --git a/sys-apps/corefreq/corefreq-1.96.1.ebuild b/sys-apps/corefreq/corefreq-1.96.1.ebuild new file mode 100644 index 0000000000..e3cc328ce3 --- /dev/null +++ b/sys-apps/corefreq/corefreq-1.96.1.ebuild @@ -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" +} diff --git a/sys-apps/corefreq/metadata.xml b/sys-apps/corefreq/metadata.xml new file mode 100644 index 0000000000..1184002b6a --- /dev/null +++ b/sys-apps/corefreq/metadata.xml @@ -0,0 +1,9 @@ + + + + cyring/CoreFreq + + zdanevich.vitaly@ya.ru + Vitaly Zdanevich + +