[gentoo-commits] repo/proj/guru:dev commit in: sys-apps/CommsPowerManagement/

2022-05-25 Thread Alessandro Barbieri
commit: bd2531c5007f4b707117a57b41e5165ec2a71297
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Wed May 25 19:46:27 2022 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Wed May 25 19:46:27 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bd2531c5

sys-apps/CommsPowerManagement: update HOMEPAGE

Signed-off-by: Alessandro Barbieri  gmail.com>

 sys-apps/CommsPowerManagement/CommsPowerManagement-0.2.1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-apps/CommsPowerManagement/CommsPowerManagement-0.2.1.ebuild 
b/sys-apps/CommsPowerManagement/CommsPowerManagement-0.2.1.ebuild
index b4cc94c89..7c5f89cd2 100644
--- a/sys-apps/CommsPowerManagement/CommsPowerManagement-0.2.1.ebuild
+++ b/sys-apps/CommsPowerManagement/CommsPowerManagement-0.2.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020-2021 Gentoo Authors
+# Copyright 2020-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -9,7 +9,7 @@ PYTHON_COMPAT=( python3_{8..10} pypy3 )
 inherit distutils-r1
 
 DESCRIPTION="Python library providing various tools to work with Intel 
processors"
-HOMEPAGE="https://github.com/intel/iCommsPowerManagement";
+HOMEPAGE="https://github.com/intel/CommsPowerManagement";
 
SRC_URI="https://github.com/intel/CommsPowerManagement/archive/refs/tags/${MYPV}.tar.gz
 -> ${P}.tar.gz"
 S="${WORKDIR}/${PN}-${MYPV}"
 



[gentoo-commits] repo/proj/guru:dev commit in: sys-apps/CommsPowerManagement/

2021-08-25 Thread Alessandro Barbieri
commit: 115605d77886e305cd2d6e48362bc3c136f6e904
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Thu Aug 26 02:10:15 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Thu Aug 26 02:36:45 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=115605d7

sys-apps/CommsPowerManagement: initial import

Signed-off-by: Alessandro Barbieri  gmail.com>

 .../CommsPowerManagement-0.2.1.ebuild  | 55 ++
 sys-apps/CommsPowerManagement/Manifest |  1 +
 sys-apps/CommsPowerManagement/metadata.xml | 34 +
 3 files changed, 90 insertions(+)

diff --git a/sys-apps/CommsPowerManagement/CommsPowerManagement-0.2.1.ebuild 
b/sys-apps/CommsPowerManagement/CommsPowerManagement-0.2.1.ebuild
new file mode 100644
index 0..b4cc94c89
--- /dev/null
+++ b/sys-apps/CommsPowerManagement/CommsPowerManagement-0.2.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MYPV="pwr-v${PV}"
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Python library providing various tools to work with Intel 
processors"
+HOMEPAGE="https://github.com/intel/iCommsPowerManagement";
+SRC_URI="https://github.com/intel/CommsPowerManagement/archive/refs/tags/${MYPV}.tar.gz
 -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MYPV}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+IUSE="ansible"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_prepare() {
+   distutils-r1_python_prepare_all
+}
+
+src_compile() {
+   pushd "pwr" || die
+   python_foreach_impl distutils-r1_python_compile
+   popd || die
+}
+
+src_install() {
+   python_foreach_impl python_install
+   dodoc *.md
+   #docinto telemetry
+   #dodoc telemetry/*.md
+   dodoc -r intel_sst_os_interface
+   #where to put those?
+   use ansible && dodoc -r ansible
+
+}
+
+python_install() {
+   pushd "pwr" || die
+   distutils-r1_python_install
+   popd || die
+
+   python_doscript power.py
+   python_doscript sst_bf.py
+   #python_doscript telemetry/pkgpower.py
+}

diff --git a/sys-apps/CommsPowerManagement/Manifest 
b/sys-apps/CommsPowerManagement/Manifest
new file mode 100644
index 0..4a141e061
--- /dev/null
+++ b/sys-apps/CommsPowerManagement/Manifest
@@ -0,0 +1 @@
+DIST CommsPowerManagement-0.2.1.tar.gz 32669 BLAKE2B 
381aa8906377f0facdd909b53c4d8ba7d961a54691a4a3520f8c492aa6d97b55842536dcebd8f578373e2399a82af2c8098b2ac45332cfd1959e22e2e7de505d
 SHA512 
6e449b7c2e199b67496b87725aa4595bd8107adfa1fb050b3cdd1c2db5620a3be4f784dd78f1e57bdea809a29cca7b27f55c08cfbc2b070f789100183508205a

diff --git a/sys-apps/CommsPowerManagement/metadata.xml 
b/sys-apps/CommsPowerManagement/metadata.xml
new file mode 100644
index 0..7d9b6759d
--- /dev/null
+++ b/sys-apps/CommsPowerManagement/metadata.xml
@@ -0,0 +1,34 @@
+
+http://www.gentoo.org/dtd/metadata.dtd";>
+
+   
+   
https://github.com/intel/CommsPowerManagement/issues
+   intel/CommsPowerManagement
+   
+   
+   lssndrbarbi...@gmail.com
+   Alessandro Barbieri
+   
+   
+Introduction
+Recent generations of the Intel® Xeon® family processors allow configurations 
where:
+
+Turbo Boost can be enabled on a per-core basis.
+Some cores can be given a higher base frequency than others
+Overview
+The scripts provided are as follows:
+
+power.py allows the user to adjust the frequencies and Turbo-Boost 
availability on a core-by-core basis. This script allows the adjustment of 
P-states, C-states and Turbo-Boost.
+sst_bf.py allows the user to confure the system for Intel® Speed Select 
Technology - Base Frequency (Intel® SST-BF). This allows some cores to run at a 
higher base frequency than others.
+pwr.py a python library which can be imported into an application, to 
measure/modify core frequencies of a CPU to utilize Intel® Speed Select 
Technology.
+
+The 'pwr' library is built to help take advantage of various Intel processor 
features such as:
+- Core and uncore frequency scaling
+- SST-BF technology
+- SST-CP technology
+It is intended to be used to build various orchestration and platform power 
management tools.
+   
+   
+   Install ansible playbook
+   
+