* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/auto-cpufreq/
@ 2022-10-12 8:01 Pascal Jäger
0 siblings, 0 replies; 13+ messages in thread
From: Pascal Jäger @ 2022-10-12 8:01 UTC (permalink / raw
To: gentoo-commits
commit: 26dc7a5f20bc7fc853bde67f326b7e3e2bc04d90
Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
AuthorDate: Wed Oct 12 07:42:05 2022 +0000
Commit: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
CommitDate: Wed Oct 12 07:42:05 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=26dc7a5f
sys-power/auto-cpufreq: changed pkg_postrm
Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de>
sys-power/auto-cpufreq/auto-cpufreq-1.9.6.ebuild | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-1.9.6.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-1.9.6.ebuild
index a8086ac3b..8eeb4764a 100644
--- a/sys-power/auto-cpufreq/auto-cpufreq-1.9.6.ebuild
+++ b/sys-power/auto-cpufreq/auto-cpufreq-1.9.6.ebuild
@@ -18,9 +18,11 @@ KEYWORDS="~amd64"
SLOT="0"
IUSE="systemd"
-RDEPEND="dev-python/psutil
+RDEPEND="
+ dev-python/psutil
dev-python/click
- dev-python/distro"
+ dev-python/distro
+"
DEPEND="${RDEPEND}"
@@ -49,6 +51,7 @@ python_install() {
pkg_postinst() {
touch /var/log/auto-cpufreq.log
+ elog ""
elog "Enable auto-cpufreq daemon service at boot:"
if use systemd; then
elog "systemctl enable --now auto-cpufreq"
@@ -57,19 +60,23 @@ pkg_postinst() {
fi
elog ""
elog "To view live log, run:"
- elog "auto-cpufreq --log"
+ elog "auto-cpufreq --stats"
}
pkg_postrm() {
# Remove auto-cpufreq log file
- rm /var/log/auto-cpufreq.log
+ if [ -f "/var/log/auto-cpufreq.log" ]; then
+ rm /var/log/auto-cpufreq.log || die
+ fi
# Remove auto-cpufreq's cpufreqctl binary
- # it copies cpufreqctl.sh over (I do NOT like this behavior)
- rm /usr/bin/cpufreqctl
+ # it overwrites cpufreqctl.sh
+ if [ -f "/usr/bin/cpufreqctl" ]; then
+ rm /usr/bin/cpufreqctl || die
+ fi
# Restore original cpufreqctl binary if backup was made
if [ -f "/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
- mv /usr/bin/cpufreqctl.auto-cpufreq.bak /usr/bin/cpufreqctl
+ mv /usr/bin/cpufreqctl.auto-cpufreq.bak /usr/bin/cpufreqctl || die
fi
}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/auto-cpufreq/
@ 2024-05-15 16:55 Julien Roy
0 siblings, 0 replies; 13+ messages in thread
From: Julien Roy @ 2024-05-15 16:55 UTC (permalink / raw
To: gentoo-commits
commit: c46fc4bcb8daa5c94b335c0ede472a9967660750
Author: Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Wed May 15 16:37:12 2024 +0000
Commit: Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Wed May 15 16:55:16 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c46fc4bc
sys-power/auto-cpufreq: drop 1.9.6
Closes: https://bugs.gentoo.org/931484
Signed-off-by: Julien Roy <julien <AT> jroy.ca>
sys-power/auto-cpufreq/Manifest | 1 -
sys-power/auto-cpufreq/auto-cpufreq-1.9.6.ebuild | 82 ------------------------
2 files changed, 83 deletions(-)
diff --git a/sys-power/auto-cpufreq/Manifest b/sys-power/auto-cpufreq/Manifest
index d01430a9cd..93513f7c46 100644
--- a/sys-power/auto-cpufreq/Manifest
+++ b/sys-power/auto-cpufreq/Manifest
@@ -1,2 +1 @@
-DIST auto-cpufreq-1.9.6.tar.gz 28393 BLAKE2B a4204cdfe549743c6781c4cf26c97133e488735d806d97205af2d956500b7b867c1635f6f20ee9940d9b98377b20fc83a31953099319e4e245a381754e35e8ee SHA512 55892a4ed27fbc8ffad8b67c9cfa9f70e510342bb2c4fbf8b84c8e4da0a4ca51940f34e02a052f97efdc41085cf4ff8db5323328a1b7ce948d9a87338a209798
DIST auto-cpufreq-2.1.0.tar.gz 211221 BLAKE2B ee376e44b31cd93ae37c3a800fd1b7e89af3b696e1d128d2bc8d335b1240d2e2b0d5aa0e90cd1465185bfff9cee02069ee1d46120be014b1dc61ce056308d4a1 SHA512 e01e6f03e7fcd3e0640ebd829234a07043c8d88bd1feabbcc6df463007b2e93410935394257bc28ed1297b294292425adfe4079a3dff0ec5636c23c3cbdd9ee0
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-1.9.6.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-1.9.6.ebuild
deleted file mode 100644
index 0d5cde33e7..0000000000
--- a/sys-power/auto-cpufreq/auto-cpufreq-1.9.6.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..11} )
-
-DISTUTILS_USE_PEP517=setuptools
-
-inherit distutils-r1 systemd
-
-DESCRIPTION="Automatic CPU speed & power optimizer for Linux"
-HOMEPAGE="https://github.com/AdnanHodzic/auto-cpufreq"
-SRC_URI="https://github.com/AdnanHodzic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="systemd"
-
-RDEPEND="
- dev-python/psutil
- dev-python/click
- dev-python/distro
-"
-
-DEPEND="${RDEPEND}"
-
-DOCS=( README.md )
-PATCHES=( "${FILESDIR}/${PN}-remove-setuptools_git_versioning.patch" )
-
-src_prepare() {
- sed -i 's|usr/local|usr|g' "scripts/${PN}.service" "scripts/${PN}-openrc" auto_cpufreq/core.py || die
- distutils-r1_src_prepare
-}
-
-python_install() {
- distutils-r1_python_install
-
- exeinto "/usr/share/${PN}/scripts"
- doexe scripts/cpufreqctl.sh
-
- if use systemd; then
- systemd_douserunit "scripts/${PN}.service"
- else
- doinitd "scripts/${PN}-openrc"
- mv "${D}/etc/init.d/${PN}-openrc" "${D}/etc/init.d/${PN}" || die
- fi
-}
-
-pkg_postinst() {
- touch /var/log/auto-cpufreq.log
-
- elog ""
- elog "Enable auto-cpufreq daemon service at boot:"
- if use systemd; then
- elog "systemctl enable --now auto-cpufreq"
- else
- elog "rc-update add auto-cpufreq default"
- fi
- elog ""
- elog "To view live log, run:"
- elog "auto-cpufreq --stats"
-}
-
-pkg_postrm() {
- # Remove auto-cpufreq log file
- if [ -f "/var/log/auto-cpufreq.log" ]; then
- rm /var/log/auto-cpufreq.log || die
- fi
-
- # Remove auto-cpufreq's cpufreqctl binary
- # it overwrites cpufreqctl.sh
- if [ -f "/usr/bin/cpufreqctl" ]; then
- rm /usr/bin/cpufreqctl || die
- fi
-
- # Restore original cpufreqctl binary if backup was made
- if [ -f "/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
- mv /usr/bin/cpufreqctl.auto-cpufreq.bak /usr/bin/cpufreqctl || die
- fi
-}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/auto-cpufreq/
@ 2024-08-11 18:42 Michal Vu
0 siblings, 0 replies; 13+ messages in thread
From: Michal Vu @ 2024-08-11 18:42 UTC (permalink / raw
To: gentoo-commits
commit: ef0c5b54e4677677d6633e864bf4168783b9d85c
Author: Michal Vu <saigon-tech <AT> tuta <DOT> io>
AuthorDate: Sun Aug 11 18:41:59 2024 +0000
Commit: Michal Vu <saigon-tech <AT> tuta <DOT> io>
CommitDate: Sun Aug 11 18:42:43 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ef0c5b54
sys-power/auto-cpufreq: Adding auto-cpufreq-2.2.0
Signed-off-by: Michal Vu <saigon-tech <AT> tuta.io>
sys-power/auto-cpufreq/Manifest | 2 +
sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild | 147 +++++++++++++++++++++++
2 files changed, 149 insertions(+)
diff --git a/sys-power/auto-cpufreq/Manifest b/sys-power/auto-cpufreq/Manifest
index 93513f7c4..2f7b7ca3d 100644
--- a/sys-power/auto-cpufreq/Manifest
+++ b/sys-power/auto-cpufreq/Manifest
@@ -1 +1,3 @@
DIST auto-cpufreq-2.1.0.tar.gz 211221 BLAKE2B ee376e44b31cd93ae37c3a800fd1b7e89af3b696e1d128d2bc8d335b1240d2e2b0d5aa0e90cd1465185bfff9cee02069ee1d46120be014b1dc61ce056308d4a1 SHA512 e01e6f03e7fcd3e0640ebd829234a07043c8d88bd1feabbcc6df463007b2e93410935394257bc28ed1297b294292425adfe4079a3dff0ec5636c23c3cbdd9ee0
+DIST auto-cpufreq-2.2.0.tar.gz 213108 BLAKE2B 78d61df3120153fddc50a6cea1c209d14da4aa1072fa10ba4a40c7e4268cf4b2d203a932950087716b08b0551c939bf694d7501c4df4f27d266c2711118afa58 SHA512 9a41f9e7b6e27f0bf7c58da28f84db4db442dee1ab77ee0a849190127b148cb15f5c1a1886f8d2950ef861e6250432383f78b01851f8cdc6ebb9c95b1113acf4
+DIST auto-cpufreq-2.3.0.tar.gz 216356 BLAKE2B ac4c0f293575d7e0deb7b31437674f06e614930eeff35cc7e57cca0088e8cf928b9401fcda72d48de12ccf158181cb9290a57dd49047fe3ae9ee182507dfab12 SHA512 46438401cfc662c8b26350e8e6d8ff147d87b49b65162dbdcced5c6e2d7a4762e8d732823c92ae6da80e2b4298999a3131ff574a3ec4293bd8b65979de36e688
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
new file mode 100644
index 000000000..fb159721e
--- /dev/null
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+DISTUTILS_USE_PEP517=poetry
+
+inherit distutils-r1 systemd xdg-utils desktop
+
+DESCRIPTION="Automatic CPU speed & power optimizer for Linux"
+HOMEPAGE="https://github.com/AdnanHodzic/auto-cpufreq"
+SRC_URI="https://github.com/AdnanHodzic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/click[${PYTHON_USEDEP}]
+ dev-python/distro[${PYTHON_USEDEP}]
+ dev-python/psutil[${PYTHON_USEDEP}]
+ dev-python/pygobject[${PYTHON_USEDEP}]
+ dev-python/pyinotify[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-python/poetry-core[${PYTHON_USEDEP}]
+"
+
+DOCS=( README.md )
+
+src_prepare() {
+ default
+ # Update pyproject.toml to avoid dynamic_versioning in poetry
+ sed -i 's/poetry_dynamic_versioning.backend/poetry.core.masonry.api/' pyproject.toml || die
+ # Replace /usr/local/ paths with /usr/ in the source code to adhere to Gentoo standards
+ sed -i 's|/usr/local/share|/usr/share|g' scripts/auto-cpufreq-install.sh || die
+ sed -i 's|usr/local|usr|g' "scripts/${PN}.service" "scripts/${PN}-openrc" auto_cpufreq/core.py || die
+ sed -i 's|usr/local|usr|g' "scripts/${PN}.service" "scripts/${PN}-openrc" auto_cpufreq/gui/app.py || die
+ # Modify the service file to launch auto-cpufreq natively without the need for virtual environment
+ sed -i 's|WorkingDirectory=/opt/auto-cpufreq/venv||g' scripts/auto-cpufreq.service || die
+ sed -i 's|Environment=PYTHONPATH=/opt/auto-cpufreq||g' scripts/auto-cpufreq.service || die
+ sed -i 's|ExecStart=/opt/auto-cpufreq/venv/bin/python /opt/auto-cpufreq/venv/bin/auto-cpufreq --daemon|ExecStart=/usr/bin/auto-cpufreq --daemon|g' scripts/auto-cpufreq.service || die
+ # Change the path in core.py
+ sed -i 's|/opt/auto-cpufreq/override.pickle|/var/lib/auto-cpufreq/override.pickle|g' auto_cpufreq/core.py || die
+ distutils-r1_src_prepare
+}
+
+python_install() {
+ distutils-r1_python_install
+
+ # Create the scripts directory if it doesn't exist
+ dodir "/usr/share/${PN}/scripts"
+
+ # Create the directory for override.pickle
+ dodir /var/lib/auto-cpufreq
+ keepdir /var/lib/auto-cpufreq
+ fowners root:root /var/lib/auto-cpufreq
+ fperms 0755 /var/lib/auto-cpufreq
+
+ # Copy all scripts from the 'scripts' directory
+ for script in scripts/*; do
+ if [[ -f "$script" ]]; then
+ case "${script##*/}" in
+ *.sh|*.py|auto-cpufreq-*|cpufreqctl.sh)
+ exeinto "/usr/share/${PN}/scripts"
+ doexe "$script"
+ ;;
+ *)
+ insinto "/usr/share/${PN}/scripts"
+ doins "$script"
+ ;;
+ esac
+ fi
+ done
+
+ # Copy images
+ insinto "/usr/share/${PN}/images"
+ doins images/*
+
+ # Install icon
+ doicon -s 128 images/icon.png
+
+ # Install polkit policy
+ insinto /usr/share/polkit-1/actions
+ doins scripts/org.auto-cpufreq.pkexec.policy
+
+ # Install desktop file
+ domenu scripts/auto-cpufreq-gtk.desktop
+
+ # Install systemd service file
+ systemd_dounit "scripts/${PN}.service"
+
+ # Install OpenRC init script
+ newinitd "scripts/${PN}-openrc" "${PN}"
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+
+ elog "Updating XDG database"
+
+ elog "The auto-cpufreq override file will be stored in /var/lib/auto-cpufreq/override.pickle"
+
+ # Create log file
+ touch /var/log/auto-cpufreq.log
+ elog ""
+ elog "Enable auto-cpufreq daemon service at boot:"
+ elog "systemd: systemctl enable --now auto-cpufreq"
+ elog "openrc: rc-update add auto-cpufreq default"
+ elog ""
+ elog "To view live log, run:"
+ elog "auto-cpufreq --stats"
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+
+ # Remove the polkit policy
+ if [ -f "/usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy" ]; then
+ rm -rf /usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy || die
+ fi
+
+ # Remove the override.pickle file and directory
+ if [[ -d "/var/lib/auto-cpufreq" ]]; then
+ rm -rf /var/lib/auto-cpufreq
+ fi
+
+ # Remove auto-cpufreq log file
+ if [ -f "/var/log/auto-cpufreq.log" ]; then
+ rm /var/log/auto-cpufreq.log || die
+ fi
+ # Remove auto-cpufreq's cpufreqctl binary
+ # it overwrites cpufreqctl.sh
+ if [ -f "/usr/bin/cpufreqctl" ]; then
+ rm /usr/bin/cpufreqctl || die
+ fi
+ # Restore original cpufreqctl binary if backup was made
+ if [ -f "/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
+ mv /usr/bin/cpufreqctl.auto-cpufreq.bak /usr/bin/cpufreqctl || die
+ fi
+}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/auto-cpufreq/
@ 2024-08-11 18:42 Michal Vu
0 siblings, 0 replies; 13+ messages in thread
From: Michal Vu @ 2024-08-11 18:42 UTC (permalink / raw
To: gentoo-commits
commit: 33f99484aa7eb2c02fe59d23c46d7cb10a17846e
Author: Michal Vu <saigon-tech <AT> tuta <DOT> io>
AuthorDate: Sun Aug 11 18:42:21 2024 +0000
Commit: Michal Vu <saigon-tech <AT> tuta <DOT> io>
CommitDate: Sun Aug 11 18:42:43 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=33f99484
sys-power/auto-cpufreq: Adding auto-cpufreq-2.3.0
Signed-off-by: Michal Vu <saigon-tech <AT> tuta.io>
sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild | 147 +++++++++++++++++++++++
1 file changed, 147 insertions(+)
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
new file mode 100644
index 000000000..fb159721e
--- /dev/null
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+DISTUTILS_USE_PEP517=poetry
+
+inherit distutils-r1 systemd xdg-utils desktop
+
+DESCRIPTION="Automatic CPU speed & power optimizer for Linux"
+HOMEPAGE="https://github.com/AdnanHodzic/auto-cpufreq"
+SRC_URI="https://github.com/AdnanHodzic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/click[${PYTHON_USEDEP}]
+ dev-python/distro[${PYTHON_USEDEP}]
+ dev-python/psutil[${PYTHON_USEDEP}]
+ dev-python/pygobject[${PYTHON_USEDEP}]
+ dev-python/pyinotify[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-python/poetry-core[${PYTHON_USEDEP}]
+"
+
+DOCS=( README.md )
+
+src_prepare() {
+ default
+ # Update pyproject.toml to avoid dynamic_versioning in poetry
+ sed -i 's/poetry_dynamic_versioning.backend/poetry.core.masonry.api/' pyproject.toml || die
+ # Replace /usr/local/ paths with /usr/ in the source code to adhere to Gentoo standards
+ sed -i 's|/usr/local/share|/usr/share|g' scripts/auto-cpufreq-install.sh || die
+ sed -i 's|usr/local|usr|g' "scripts/${PN}.service" "scripts/${PN}-openrc" auto_cpufreq/core.py || die
+ sed -i 's|usr/local|usr|g' "scripts/${PN}.service" "scripts/${PN}-openrc" auto_cpufreq/gui/app.py || die
+ # Modify the service file to launch auto-cpufreq natively without the need for virtual environment
+ sed -i 's|WorkingDirectory=/opt/auto-cpufreq/venv||g' scripts/auto-cpufreq.service || die
+ sed -i 's|Environment=PYTHONPATH=/opt/auto-cpufreq||g' scripts/auto-cpufreq.service || die
+ sed -i 's|ExecStart=/opt/auto-cpufreq/venv/bin/python /opt/auto-cpufreq/venv/bin/auto-cpufreq --daemon|ExecStart=/usr/bin/auto-cpufreq --daemon|g' scripts/auto-cpufreq.service || die
+ # Change the path in core.py
+ sed -i 's|/opt/auto-cpufreq/override.pickle|/var/lib/auto-cpufreq/override.pickle|g' auto_cpufreq/core.py || die
+ distutils-r1_src_prepare
+}
+
+python_install() {
+ distutils-r1_python_install
+
+ # Create the scripts directory if it doesn't exist
+ dodir "/usr/share/${PN}/scripts"
+
+ # Create the directory for override.pickle
+ dodir /var/lib/auto-cpufreq
+ keepdir /var/lib/auto-cpufreq
+ fowners root:root /var/lib/auto-cpufreq
+ fperms 0755 /var/lib/auto-cpufreq
+
+ # Copy all scripts from the 'scripts' directory
+ for script in scripts/*; do
+ if [[ -f "$script" ]]; then
+ case "${script##*/}" in
+ *.sh|*.py|auto-cpufreq-*|cpufreqctl.sh)
+ exeinto "/usr/share/${PN}/scripts"
+ doexe "$script"
+ ;;
+ *)
+ insinto "/usr/share/${PN}/scripts"
+ doins "$script"
+ ;;
+ esac
+ fi
+ done
+
+ # Copy images
+ insinto "/usr/share/${PN}/images"
+ doins images/*
+
+ # Install icon
+ doicon -s 128 images/icon.png
+
+ # Install polkit policy
+ insinto /usr/share/polkit-1/actions
+ doins scripts/org.auto-cpufreq.pkexec.policy
+
+ # Install desktop file
+ domenu scripts/auto-cpufreq-gtk.desktop
+
+ # Install systemd service file
+ systemd_dounit "scripts/${PN}.service"
+
+ # Install OpenRC init script
+ newinitd "scripts/${PN}-openrc" "${PN}"
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+
+ elog "Updating XDG database"
+
+ elog "The auto-cpufreq override file will be stored in /var/lib/auto-cpufreq/override.pickle"
+
+ # Create log file
+ touch /var/log/auto-cpufreq.log
+ elog ""
+ elog "Enable auto-cpufreq daemon service at boot:"
+ elog "systemd: systemctl enable --now auto-cpufreq"
+ elog "openrc: rc-update add auto-cpufreq default"
+ elog ""
+ elog "To view live log, run:"
+ elog "auto-cpufreq --stats"
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+
+ # Remove the polkit policy
+ if [ -f "/usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy" ]; then
+ rm -rf /usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy || die
+ fi
+
+ # Remove the override.pickle file and directory
+ if [[ -d "/var/lib/auto-cpufreq" ]]; then
+ rm -rf /var/lib/auto-cpufreq
+ fi
+
+ # Remove auto-cpufreq log file
+ if [ -f "/var/log/auto-cpufreq.log" ]; then
+ rm /var/log/auto-cpufreq.log || die
+ fi
+ # Remove auto-cpufreq's cpufreqctl binary
+ # it overwrites cpufreqctl.sh
+ if [ -f "/usr/bin/cpufreqctl" ]; then
+ rm /usr/bin/cpufreqctl || die
+ fi
+ # Restore original cpufreqctl binary if backup was made
+ if [ -f "/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
+ mv /usr/bin/cpufreqctl.auto-cpufreq.bak /usr/bin/cpufreqctl || die
+ fi
+}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/auto-cpufreq/
@ 2024-08-12 23:17 Lucio Sauer
2024-08-13 15:39 ` [gentoo-commits] repo/proj/guru:master " Lucio Sauer
0 siblings, 1 reply; 13+ messages in thread
From: Lucio Sauer @ 2024-08-12 23:17 UTC (permalink / raw
To: gentoo-commits
commit: 5156c308cc1775a21b2c713fb15fad51d9993edb
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Mon Aug 12 23:09:09 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Mon Aug 12 23:09:09 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5156c308
sys-power/auto-cpufreq: remove superflous copyright notice
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild | 1 -
sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild | 1 -
2 files changed, 2 deletions(-)
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
index fb159721e..066c3f5dd 100644
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
@@ -1,5 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
-# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
index fb159721e..066c3f5dd 100644
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
@@ -1,5 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
-# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/auto-cpufreq/
@ 2024-08-13 15:34 Lucio Sauer
0 siblings, 0 replies; 13+ messages in thread
From: Lucio Sauer @ 2024-08-13 15:34 UTC (permalink / raw
To: gentoo-commits
commit: c16943af6813fb7de5a282c2d94ecc118c3bea26
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Tue Aug 13 15:29:35 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Tue Aug 13 15:34:15 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c16943af
sys-power/auto-cpufreq: delete all rogue files created by package
The rogue creation of files in /usr/bin should be reported upstream..
This commit also ensures operation of ${EROOT} instead of /.
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
sys-power/auto-cpufreq/auto-cpufreq-2.1.0-r1.ebuild | 18 +++++++++---------
sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild | 21 +++++++++++----------
sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild | 21 +++++++++++----------
3 files changed, 31 insertions(+), 29 deletions(-)
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.1.0-r1.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.1.0-r1.ebuild
index dddb0042b..4ee9f6f69 100644
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.1.0-r1.ebuild
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.1.0-r1.ebuild
@@ -66,18 +66,18 @@ pkg_postinst() {
pkg_postrm() {
# Remove auto-cpufreq log file
- if [ -f "/var/log/auto-cpufreq.log" ]; then
- rm /var/log/auto-cpufreq.log || die
+ if [ -f "${EROOT}/var/log/auto-cpufreq.log" ]; then
+ rm "${EROOT}"/var/log/auto-cpufreq.log || die
fi
- # Remove auto-cpufreq's cpufreqctl binary
- # it overwrites cpufreqctl.sh
- if [ -f "/usr/bin/cpufreqctl" ]; then
- rm /usr/bin/cpufreqctl || die
+ # Restore original cpufreqctl binary if backup was made
+ if [ -f "${EROOT}/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
+ mv "${EROOT}"/usr/bin/cpufreqctl.auto-cpufreq{.bak,} || die
fi
- # Restore original cpufreqctl binary if backup was made
- if [ -f "/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
- mv /usr/bin/cpufreqctl.auto-cpufreq.bak /usr/bin/cpufreqctl || die
+ # Remove auto-cpufreq's cpufreqctl binary
+ # it overwrites cpufreqctl.sh
+ if [ -f "${EROOT}/usr/bin/cpufreqctl" ]; then
+ rm "${EROOT}"/usr/bin/cpufreqctl || die
fi
}
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
index 7a1ac03d1..da618f3c9 100644
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
@@ -121,21 +121,22 @@ pkg_postrm() {
xdg_desktop_database_update
# Remove the override.pickle file and directory
- if [[ -d "/var/lib/auto-cpufreq" ]]; then
- rm -rf /var/lib/auto-cpufreq
+ if [[ -d "${EROOT}/var/lib/auto-cpufreq" ]]; then
+ rm -rf "${EROOT}"/var/lib/auto-cpufreq || die
fi
# Remove auto-cpufreq log file
- if [ -f "/var/log/auto-cpufreq.log" ]; then
- rm /var/log/auto-cpufreq.log || die
+ if [ -f "${EROOT}/var/log/auto-cpufreq.log" ]; then
+ rm "${EROOT}"/var/log/auto-cpufreq.log || die
+ fi
+
+ # Restore original cpufreqctl binary if backup was made
+ if [ -f "${EROOT}/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
+ mv "${EROOT}"/usr/bin/cpufreqctl.auto-cpufreq{.bak,} || die
fi
# Remove auto-cpufreq's cpufreqctl binary
# it overwrites cpufreqctl.sh
- if [ -f "/usr/bin/cpufreqctl" ]; then
- rm /usr/bin/cpufreqctl || die
- fi
- # Restore original cpufreqctl binary if backup was made
- if [ -f "/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
- mv /usr/bin/cpufreqctl.auto-cpufreq.bak /usr/bin/cpufreqctl || die
+ if [ -f "${EROOT}/usr/bin/cpufreqctl" ]; then
+ rm "${EROOT}"/usr/bin/cpufreqctl || die
fi
}
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
index 7a1ac03d1..da618f3c9 100644
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
@@ -121,21 +121,22 @@ pkg_postrm() {
xdg_desktop_database_update
# Remove the override.pickle file and directory
- if [[ -d "/var/lib/auto-cpufreq" ]]; then
- rm -rf /var/lib/auto-cpufreq
+ if [[ -d "${EROOT}/var/lib/auto-cpufreq" ]]; then
+ rm -rf "${EROOT}"/var/lib/auto-cpufreq || die
fi
# Remove auto-cpufreq log file
- if [ -f "/var/log/auto-cpufreq.log" ]; then
- rm /var/log/auto-cpufreq.log || die
+ if [ -f "${EROOT}/var/log/auto-cpufreq.log" ]; then
+ rm "${EROOT}"/var/log/auto-cpufreq.log || die
+ fi
+
+ # Restore original cpufreqctl binary if backup was made
+ if [ -f "${EROOT}/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
+ mv "${EROOT}"/usr/bin/cpufreqctl.auto-cpufreq{.bak,} || die
fi
# Remove auto-cpufreq's cpufreqctl binary
# it overwrites cpufreqctl.sh
- if [ -f "/usr/bin/cpufreqctl" ]; then
- rm /usr/bin/cpufreqctl || die
- fi
- # Restore original cpufreqctl binary if backup was made
- if [ -f "/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
- mv /usr/bin/cpufreqctl.auto-cpufreq.bak /usr/bin/cpufreqctl || die
+ if [ -f "${EROOT}/usr/bin/cpufreqctl" ]; then
+ rm "${EROOT}"/usr/bin/cpufreqctl || die
fi
}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/auto-cpufreq/
@ 2024-08-13 15:34 Lucio Sauer
0 siblings, 0 replies; 13+ messages in thread
From: Lucio Sauer @ 2024-08-13 15:34 UTC (permalink / raw
To: gentoo-commits
commit: b102a73d418441bd759b4dd611ed537590ef4abd
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Tue Aug 13 15:27:01 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Tue Aug 13 15:34:11 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b102a73d
sys-power/auto-cpufreq: remove redundant file existence check
The file in question is being managed by the PM, therefore it's
guaranteed to not exist anymore during the post-removal phase.
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild | 5 -----
sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild | 5 -----
2 files changed, 10 deletions(-)
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
index 066c3f5dd..7a1ac03d1 100644
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
@@ -120,11 +120,6 @@ pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
- # Remove the polkit policy
- if [ -f "/usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy" ]; then
- rm -rf /usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy || die
- fi
-
# Remove the override.pickle file and directory
if [[ -d "/var/lib/auto-cpufreq" ]]; then
rm -rf /var/lib/auto-cpufreq
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
index 066c3f5dd..7a1ac03d1 100644
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
@@ -120,11 +120,6 @@ pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
- # Remove the polkit policy
- if [ -f "/usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy" ]; then
- rm -rf /usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy || die
- fi
-
# Remove the override.pickle file and directory
if [[ -d "/var/lib/auto-cpufreq" ]]; then
rm -rf /var/lib/auto-cpufreq
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-power/auto-cpufreq/
2024-08-12 23:17 [gentoo-commits] repo/proj/guru:dev commit in: sys-power/auto-cpufreq/ Lucio Sauer
@ 2024-08-13 15:39 ` Lucio Sauer
0 siblings, 0 replies; 13+ messages in thread
From: Lucio Sauer @ 2024-08-13 15:39 UTC (permalink / raw
To: gentoo-commits
commit: 5156c308cc1775a21b2c713fb15fad51d9993edb
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Mon Aug 12 23:09:09 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Mon Aug 12 23:09:09 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5156c308
sys-power/auto-cpufreq: remove superflous copyright notice
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild | 1 -
sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild | 1 -
2 files changed, 2 deletions(-)
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
index fb159721e..066c3f5dd 100644
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
@@ -1,5 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
-# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
index fb159721e..066c3f5dd 100644
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
@@ -1,5 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
-# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/auto-cpufreq/
@ 2024-08-31 10:46 Michal Vu
0 siblings, 0 replies; 13+ messages in thread
From: Michal Vu @ 2024-08-31 10:46 UTC (permalink / raw
To: gentoo-commits
commit: bcdecbb7abf49c4737d8212da5eedb74a54e483f
Author: Michal Vu <saigon-tech <AT> tuta <DOT> io>
AuthorDate: Sat Aug 31 10:46:20 2024 +0000
Commit: Michal Vu <saigon-tech <AT> tuta <DOT> io>
CommitDate: Sat Aug 31 10:46:20 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bcdecbb7
sys-power/auto-cpufreq: Drop old version 2.1.0 (2.1.0-r1 still kept)
Signed-off-by: Michal Vu <saigon-tech <AT> tuta.io>
sys-power/auto-cpufreq/auto-cpufreq-2.1.0.ebuild | 84 ------------------------
1 file changed, 84 deletions(-)
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.1.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.1.0.ebuild
deleted file mode 100644
index 58fc66942..000000000
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.1.0.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-
-DISTUTILS_USE_PEP517=poetry
-
-inherit distutils-r1 systemd
-
-DESCRIPTION="Automatic CPU speed & power optimizer for Linux"
-HOMEPAGE="https://github.com/AdnanHodzic/auto-cpufreq"
-SRC_URI="https://github.com/AdnanHodzic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="systemd"
-
-RDEPEND="
- dev-python/click[${PYTHON_USEDEP}]
- dev-python/distro[${PYTHON_USEDEP}]
- dev-python/psutil[${PYTHON_USEDEP}]
- dev-python/pygobject[${PYTHON_USEDEP}]
- dev-python/requests[${PYTHON_USEDEP}]
-"
-
-DEPEND="${RDEPEND}"
-
-DOCS=( README.md )
-PATCHES=( "${FILESDIR}/${PN}-remove-poetry_versioning.patch" )
-
-src_prepare() {
- sed -i 's|usr/local|usr|g' "scripts/${PN}.service" "scripts/${PN}-openrc" auto_cpufreq/core.py || die
- distutils-r1_src_prepare
-}
-
-python_install() {
- distutils-r1_python_install
-
- exeinto "/usr/share/${PN}/scripts"
- doexe scripts/cpufreqctl.sh
-
- if use systemd; then
- systemd_douserunit "scripts/${PN}.service"
- else
- doinitd "scripts/${PN}-openrc"
- mv "${D}/etc/init.d/${PN}-openrc" "${D}/etc/init.d/${PN}" || die
- fi
-}
-
-pkg_postinst() {
- touch /var/log/auto-cpufreq.log
-
- elog ""
- elog "Enable auto-cpufreq daemon service at boot:"
- if use systemd; then
- elog "systemctl enable --now auto-cpufreq"
- else
- elog "rc-update add auto-cpufreq default"
- fi
- elog ""
- elog "To view live log, run:"
- elog "auto-cpufreq --stats"
-}
-
-pkg_postrm() {
- # Remove auto-cpufreq log file
- if [ -f "/var/log/auto-cpufreq.log" ]; then
- rm /var/log/auto-cpufreq.log || die
- fi
-
- # Remove auto-cpufreq's cpufreqctl binary
- # it overwrites cpufreqctl.sh
- if [ -f "/usr/bin/cpufreqctl" ]; then
- rm /usr/bin/cpufreqctl || die
- fi
-
- # Restore original cpufreqctl binary if backup was made
- if [ -f "/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
- mv /usr/bin/cpufreqctl.auto-cpufreq.bak /usr/bin/cpufreqctl || die
- fi
-}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/auto-cpufreq/
@ 2024-09-11 11:36 Michal Vu
0 siblings, 0 replies; 13+ messages in thread
From: Michal Vu @ 2024-09-11 11:36 UTC (permalink / raw
To: gentoo-commits
commit: fec152b4f4232a44930d464b52cdfb0e3e662e0d
Author: Michal Vu <saigon-tech <AT> tuta <DOT> io>
AuthorDate: Wed Sep 11 11:36:02 2024 +0000
Commit: Michal Vu <saigon-tech <AT> tuta <DOT> io>
CommitDate: Wed Sep 11 11:36:32 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fec152b4
sys-power/auto-cpufreq: add 2.4.0 ebuild
Signed-off-by: Michal Vu <saigon-tech <AT> tuta.io>
sys-power/auto-cpufreq/Manifest | 1 +
sys-power/auto-cpufreq/auto-cpufreq-2.4.0.ebuild | 147 +++++++++++++++++++++++
2 files changed, 148 insertions(+)
diff --git a/sys-power/auto-cpufreq/Manifest b/sys-power/auto-cpufreq/Manifest
index 2f7b7ca3d..4f2fc08b0 100644
--- a/sys-power/auto-cpufreq/Manifest
+++ b/sys-power/auto-cpufreq/Manifest
@@ -1,3 +1,4 @@
DIST auto-cpufreq-2.1.0.tar.gz 211221 BLAKE2B ee376e44b31cd93ae37c3a800fd1b7e89af3b696e1d128d2bc8d335b1240d2e2b0d5aa0e90cd1465185bfff9cee02069ee1d46120be014b1dc61ce056308d4a1 SHA512 e01e6f03e7fcd3e0640ebd829234a07043c8d88bd1feabbcc6df463007b2e93410935394257bc28ed1297b294292425adfe4079a3dff0ec5636c23c3cbdd9ee0
DIST auto-cpufreq-2.2.0.tar.gz 213108 BLAKE2B 78d61df3120153fddc50a6cea1c209d14da4aa1072fa10ba4a40c7e4268cf4b2d203a932950087716b08b0551c939bf694d7501c4df4f27d266c2711118afa58 SHA512 9a41f9e7b6e27f0bf7c58da28f84db4db442dee1ab77ee0a849190127b148cb15f5c1a1886f8d2950ef861e6250432383f78b01851f8cdc6ebb9c95b1113acf4
DIST auto-cpufreq-2.3.0.tar.gz 216356 BLAKE2B ac4c0f293575d7e0deb7b31437674f06e614930eeff35cc7e57cca0088e8cf928b9401fcda72d48de12ccf158181cb9290a57dd49047fe3ae9ee182507dfab12 SHA512 46438401cfc662c8b26350e8e6d8ff147d87b49b65162dbdcced5c6e2d7a4762e8d732823c92ae6da80e2b4298999a3131ff574a3ec4293bd8b65979de36e688
+DIST auto-cpufreq-2.4.0.tar.gz 217070 BLAKE2B c572f6665feb55d2fc62d7cb0ec1ec5a8fd382e6745a422ab276deacd1936a6fbd4af8191725877c07958c1b89cb2daaff8cfb9c8ecdbd7cd4047e7986ce82ec SHA512 42fbf2d1a0b97b76343546d1f67c6da25e912001b521a94b7d4e4170b0b5e8e5450a08535a9f22e289ffaccffcd8c8377b22b7bb07d3e139b602f1cb924bd301
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.4.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.4.0.ebuild
new file mode 100644
index 000000000..206741c8d
--- /dev/null
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.4.0.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+DISTUTILS_USE_PEP517=poetry
+
+inherit distutils-r1 systemd xdg-utils desktop
+
+DESCRIPTION="Automatic CPU speed & power optimizer for Linux"
+HOMEPAGE="https://github.com/AdnanHodzic/auto-cpufreq"
+SRC_URI="https://github.com/AdnanHodzic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/click[${PYTHON_USEDEP}]
+ dev-python/distro[${PYTHON_USEDEP}]
+ dev-python/psutil[${PYTHON_USEDEP}]
+ dev-python/pygobject[${PYTHON_USEDEP}]
+ dev-python/pyinotify[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-python/poetry-core[${PYTHON_USEDEP}]
+"
+
+DOCS=( README.md )
+
+src_prepare() {
+ default
+ # Update pyproject.toml to avoid dynamic_versioning in poetry
+ sed -i 's/poetry_dynamic_versioning.backend/poetry.core.masonry.api/' pyproject.toml || die
+ # Replace /usr/local/ paths with /usr/ in the source code to adhere to Gentoo standards
+ sed -i 's|/usr/local/share|/usr/share|g' scripts/auto-cpufreq-install.sh || die
+ sed -i 's|usr/local|usr|g' "scripts/${PN}.service" "scripts/${PN}-openrc" auto_cpufreq/core.py || die
+ sed -i 's|usr/local|usr|g' "scripts/${PN}.service" "scripts/${PN}-openrc" auto_cpufreq/gui/app.py || die
+ # Modify the service file to launch auto-cpufreq natively without the need for virtual environment
+ sed -i 's|WorkingDirectory=/opt/auto-cpufreq/venv||g' scripts/auto-cpufreq.service || die
+ sed -i 's|Environment=PYTHONPATH=/opt/auto-cpufreq||g' scripts/auto-cpufreq.service || die
+ sed -i 's|ExecStart=/opt/auto-cpufreq/venv/bin/python /opt/auto-cpufreq/venv/bin/auto-cpufreq --daemon|ExecStart=/usr/bin/auto-cpufreq --daemon|g' scripts/auto-cpufreq.service || die
+ # Change the path in core.py
+ sed -i 's|/opt/auto-cpufreq/override.pickle|/var/lib/auto-cpufreq/override.pickle|g' auto_cpufreq/core.py || die
+ distutils-r1_src_prepare
+}
+
+python_install() {
+ distutils-r1_python_install
+
+ # Create the scripts directory if it doesn't exist
+ dodir "/usr/share/${PN}/scripts"
+
+ # Create the directory for override.pickle
+ dodir /var/lib/auto-cpufreq
+ keepdir /var/lib/auto-cpufreq
+ fowners root:root /var/lib/auto-cpufreq
+ fperms 0755 /var/lib/auto-cpufreq
+
+ # Copy all scripts from the 'scripts' directory
+ for script in scripts/*; do
+ if [[ -f "$script" ]]; then
+ case "${script##*/}" in
+ *.sh|*.py|auto-cpufreq-*|cpufreqctl.sh)
+ exeinto "/usr/share/${PN}/scripts"
+ doexe "$script"
+ ;;
+ *)
+ insinto "/usr/share/${PN}/scripts"
+ doins "$script"
+ ;;
+ esac
+ fi
+ done
+
+ # Copy images
+ insinto "/usr/share/${PN}/images"
+ doins images/*
+
+ # Install icon
+ doicon -s 128 images/icon.png
+
+ # Install polkit policy
+ insinto /usr/share/polkit-1/actions
+ doins scripts/org.auto-cpufreq.pkexec.policy
+
+ # Install desktop file
+ domenu scripts/auto-cpufreq-gtk.desktop
+
+ # Install systemd service file
+ systemd_dounit "scripts/${PN}.service"
+
+ # Install OpenRC init script
+ newinitd "scripts/${PN}-openrc" "${PN}"
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+
+ elog "Updating XDG database"
+
+ elog "The auto-cpufreq override file will be stored in /var/lib/auto-cpufreq/override.pickle"
+
+ # Create log file
+ touch /var/log/auto-cpufreq.log
+ elog ""
+ elog "Enable auto-cpufreq daemon service at boot:"
+ elog "systemd: systemctl enable --now auto-cpufreq"
+ elog "openrc: rc-update add auto-cpufreq default"
+ elog ""
+ elog "To view live log, run:"
+ elog "auto-cpufreq --stats"
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+
+ # Remove the override.pickle file and directory
+ if [[ -d "${EROOT}/var/lib/auto-cpufreq" ]]; then
+ rm -rf "${EROOT}"/var/lib/auto-cpufreq || die
+ fi
+
+ # Remove auto-cpufreq log file
+ if [ -f "${EROOT}/var/log/auto-cpufreq.log" ]; then
+ rm "${EROOT}"/var/log/auto-cpufreq.log || die
+ fi
+
+ # Remove auto-cpufreq-install script
+ if [ -f "${EROOT}/usr/bin/auto-cpufreq-install" ]; then
+ rm "${EROOT}"/usr/bin/auto-cpufreq-install || die
+ fi
+
+ # Restore original cpufreqctl binary if backup was made
+ if [ -f "${EROOT}/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
+ mv "${EROOT}"/usr/bin/cpufreqctl.auto-cpufreq{.bak,} || die
+ fi
+ # Remove auto-cpufreq's cpufreqctl binary
+ # it overwrites cpufreqctl.sh
+ if [ -f "${EROOT}/usr/bin/cpufreqctl" ]; then
+ rm "${EROOT}"/usr/bin/cpufreqctl || die
+ fi
+}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/auto-cpufreq/
@ 2024-09-11 14:42 Takuya Wakazono
0 siblings, 0 replies; 13+ messages in thread
From: Takuya Wakazono @ 2024-09-11 14:42 UTC (permalink / raw
To: gentoo-commits
commit: 398bb8349a658cf16d78682a1856ec6ed008114c
Author: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Wed Sep 11 14:33:54 2024 +0000
Commit: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
CommitDate: Wed Sep 11 14:33:54 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=398bb834
sys-power/auto-cpufreq: update LICENSE
There are places where '-or-later' is not present, but most
distributions consider it as LGPL3+.
https://github.com/AdnanHodzic/auto-cpufreq/blob/master/LICENSE
https://github.com/AdnanHodzic/auto-cpufreq/blob/3e528420223b40611ec2664e5e3738dc4800afbb/nix/default.nix#L77
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>
sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild | 2 +-
sys-power/auto-cpufreq/auto-cpufreq-2.4.0.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
index da618f3c9..5694dc67a 100644
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
@@ -12,7 +12,7 @@ DESCRIPTION="Automatic CPU speed & power optimizer for Linux"
HOMEPAGE="https://github.com/AdnanHodzic/auto-cpufreq"
SRC_URI="https://github.com/AdnanHodzic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-LICENSE="GPL-3"
+LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="~amd64"
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.4.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.4.0.ebuild
index 206741c8d..19c577dd3 100644
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.4.0.ebuild
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.4.0.ebuild
@@ -12,7 +12,7 @@ DESCRIPTION="Automatic CPU speed & power optimizer for Linux"
HOMEPAGE="https://github.com/AdnanHodzic/auto-cpufreq"
SRC_URI="https://github.com/AdnanHodzic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-LICENSE="GPL-3"
+LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="~amd64"
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/auto-cpufreq/
@ 2024-09-11 14:42 Takuya Wakazono
0 siblings, 0 replies; 13+ messages in thread
From: Takuya Wakazono @ 2024-09-11 14:42 UTC (permalink / raw
To: gentoo-commits
commit: 99a7d53bea4e5b97dce9dfa7848494cc11193a71
Author: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Wed Sep 11 14:32:21 2024 +0000
Commit: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
CommitDate: Wed Sep 11 14:32:21 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=99a7d53b
sys-power/auto-cpufreq: drop 2.1.0-r1, 2.2.0
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>
sys-power/auto-cpufreq/Manifest | 2 -
.../auto-cpufreq/auto-cpufreq-2.1.0-r1.ebuild | 83 ------------
sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild | 142 ---------------------
3 files changed, 227 deletions(-)
diff --git a/sys-power/auto-cpufreq/Manifest b/sys-power/auto-cpufreq/Manifest
index 4f2fc08b0..762963ff6 100644
--- a/sys-power/auto-cpufreq/Manifest
+++ b/sys-power/auto-cpufreq/Manifest
@@ -1,4 +1,2 @@
-DIST auto-cpufreq-2.1.0.tar.gz 211221 BLAKE2B ee376e44b31cd93ae37c3a800fd1b7e89af3b696e1d128d2bc8d335b1240d2e2b0d5aa0e90cd1465185bfff9cee02069ee1d46120be014b1dc61ce056308d4a1 SHA512 e01e6f03e7fcd3e0640ebd829234a07043c8d88bd1feabbcc6df463007b2e93410935394257bc28ed1297b294292425adfe4079a3dff0ec5636c23c3cbdd9ee0
-DIST auto-cpufreq-2.2.0.tar.gz 213108 BLAKE2B 78d61df3120153fddc50a6cea1c209d14da4aa1072fa10ba4a40c7e4268cf4b2d203a932950087716b08b0551c939bf694d7501c4df4f27d266c2711118afa58 SHA512 9a41f9e7b6e27f0bf7c58da28f84db4db442dee1ab77ee0a849190127b148cb15f5c1a1886f8d2950ef861e6250432383f78b01851f8cdc6ebb9c95b1113acf4
DIST auto-cpufreq-2.3.0.tar.gz 216356 BLAKE2B ac4c0f293575d7e0deb7b31437674f06e614930eeff35cc7e57cca0088e8cf928b9401fcda72d48de12ccf158181cb9290a57dd49047fe3ae9ee182507dfab12 SHA512 46438401cfc662c8b26350e8e6d8ff147d87b49b65162dbdcced5c6e2d7a4762e8d732823c92ae6da80e2b4298999a3131ff574a3ec4293bd8b65979de36e688
DIST auto-cpufreq-2.4.0.tar.gz 217070 BLAKE2B c572f6665feb55d2fc62d7cb0ec1ec5a8fd382e6745a422ab276deacd1936a6fbd4af8191725877c07958c1b89cb2daaff8cfb9c8ecdbd7cd4047e7986ce82ec SHA512 42fbf2d1a0b97b76343546d1f67c6da25e912001b521a94b7d4e4170b0b5e8e5450a08535a9f22e289ffaccffcd8c8377b22b7bb07d3e139b602f1cb924bd301
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.1.0-r1.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.1.0-r1.ebuild
deleted file mode 100644
index 4ee9f6f69..000000000
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.1.0-r1.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-
-DISTUTILS_USE_PEP517=poetry
-
-inherit distutils-r1 systemd
-
-DESCRIPTION="Automatic CPU speed & power optimizer for Linux"
-HOMEPAGE="https://github.com/AdnanHodzic/auto-cpufreq"
-SRC_URI="https://github.com/AdnanHodzic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RDEPEND="
- dev-python/click[${PYTHON_USEDEP}]
- dev-python/distro[${PYTHON_USEDEP}]
- dev-python/psutil[${PYTHON_USEDEP}]
- dev-python/pygobject[${PYTHON_USEDEP}]
- dev-python/requests[${PYTHON_USEDEP}]
-"
-
-DEPEND="${RDEPEND}"
-
-DOCS=( README.md )
-PATCHES=( "${FILESDIR}/${PN}-remove-poetry_versioning.patch" )
-
-src_prepare() {
- sed -i 's|usr/local|usr|g' "scripts/${PN}.service" "scripts/${PN}-openrc" auto_cpufreq/core.py || die
- sed -i 's|usr/local|usr|g' "scripts/${PN}.service" "scripts/${PN}-openrc" auto_cpufreq/gui/app.py || die
- distutils-r1_src_prepare
-}
-
-python_install() {
- distutils-r1_python_install
-
- exeinto "/usr/share/${PN}/scripts"
- doexe scripts/cpufreqctl.sh
-
- insinto "/usr/share/${PN}/scripts"
- doins scripts/style.css
-
- insinto "/usr/share/${PN}/images"
- doins images/*
-
- systemd_douserunit "${FILESDIR}/${PN}.service"
- newinitd "scripts/${PN}-openrc" "${PN}"
-}
-
-pkg_postinst() {
- touch /var/log/auto-cpufreq.log
-
- elog ""
- elog "Enable auto-cpufreq daemon service at boot:"
- elog "systemd: systemctl enable --now auto-cpufreq"
- elog "openrc: rc-update add auto-cpufreq default"
- elog ""
- elog "To view live log, run:"
- elog "auto-cpufreq --stats"
-}
-
-pkg_postrm() {
- # Remove auto-cpufreq log file
- if [ -f "${EROOT}/var/log/auto-cpufreq.log" ]; then
- rm "${EROOT}"/var/log/auto-cpufreq.log || die
- fi
-
- # Restore original cpufreqctl binary if backup was made
- if [ -f "${EROOT}/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
- mv "${EROOT}"/usr/bin/cpufreqctl.auto-cpufreq{.bak,} || die
- fi
-
- # Remove auto-cpufreq's cpufreqctl binary
- # it overwrites cpufreqctl.sh
- if [ -f "${EROOT}/usr/bin/cpufreqctl" ]; then
- rm "${EROOT}"/usr/bin/cpufreqctl || die
- fi
-}
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
deleted file mode 100644
index da618f3c9..000000000
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
+++ /dev/null
@@ -1,142 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..13} )
-DISTUTILS_USE_PEP517=poetry
-
-inherit distutils-r1 systemd xdg-utils desktop
-
-DESCRIPTION="Automatic CPU speed & power optimizer for Linux"
-HOMEPAGE="https://github.com/AdnanHodzic/auto-cpufreq"
-SRC_URI="https://github.com/AdnanHodzic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RDEPEND="
- dev-python/click[${PYTHON_USEDEP}]
- dev-python/distro[${PYTHON_USEDEP}]
- dev-python/psutil[${PYTHON_USEDEP}]
- dev-python/pygobject[${PYTHON_USEDEP}]
- dev-python/pyinotify[${PYTHON_USEDEP}]
- dev-python/requests[${PYTHON_USEDEP}]
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- dev-python/poetry-core[${PYTHON_USEDEP}]
-"
-
-DOCS=( README.md )
-
-src_prepare() {
- default
- # Update pyproject.toml to avoid dynamic_versioning in poetry
- sed -i 's/poetry_dynamic_versioning.backend/poetry.core.masonry.api/' pyproject.toml || die
- # Replace /usr/local/ paths with /usr/ in the source code to adhere to Gentoo standards
- sed -i 's|/usr/local/share|/usr/share|g' scripts/auto-cpufreq-install.sh || die
- sed -i 's|usr/local|usr|g' "scripts/${PN}.service" "scripts/${PN}-openrc" auto_cpufreq/core.py || die
- sed -i 's|usr/local|usr|g' "scripts/${PN}.service" "scripts/${PN}-openrc" auto_cpufreq/gui/app.py || die
- # Modify the service file to launch auto-cpufreq natively without the need for virtual environment
- sed -i 's|WorkingDirectory=/opt/auto-cpufreq/venv||g' scripts/auto-cpufreq.service || die
- sed -i 's|Environment=PYTHONPATH=/opt/auto-cpufreq||g' scripts/auto-cpufreq.service || die
- sed -i 's|ExecStart=/opt/auto-cpufreq/venv/bin/python /opt/auto-cpufreq/venv/bin/auto-cpufreq --daemon|ExecStart=/usr/bin/auto-cpufreq --daemon|g' scripts/auto-cpufreq.service || die
- # Change the path in core.py
- sed -i 's|/opt/auto-cpufreq/override.pickle|/var/lib/auto-cpufreq/override.pickle|g' auto_cpufreq/core.py || die
- distutils-r1_src_prepare
-}
-
-python_install() {
- distutils-r1_python_install
-
- # Create the scripts directory if it doesn't exist
- dodir "/usr/share/${PN}/scripts"
-
- # Create the directory for override.pickle
- dodir /var/lib/auto-cpufreq
- keepdir /var/lib/auto-cpufreq
- fowners root:root /var/lib/auto-cpufreq
- fperms 0755 /var/lib/auto-cpufreq
-
- # Copy all scripts from the 'scripts' directory
- for script in scripts/*; do
- if [[ -f "$script" ]]; then
- case "${script##*/}" in
- *.sh|*.py|auto-cpufreq-*|cpufreqctl.sh)
- exeinto "/usr/share/${PN}/scripts"
- doexe "$script"
- ;;
- *)
- insinto "/usr/share/${PN}/scripts"
- doins "$script"
- ;;
- esac
- fi
- done
-
- # Copy images
- insinto "/usr/share/${PN}/images"
- doins images/*
-
- # Install icon
- doicon -s 128 images/icon.png
-
- # Install polkit policy
- insinto /usr/share/polkit-1/actions
- doins scripts/org.auto-cpufreq.pkexec.policy
-
- # Install desktop file
- domenu scripts/auto-cpufreq-gtk.desktop
-
- # Install systemd service file
- systemd_dounit "scripts/${PN}.service"
-
- # Install OpenRC init script
- newinitd "scripts/${PN}-openrc" "${PN}"
-}
-
-pkg_postinst() {
- xdg_icon_cache_update
- xdg_desktop_database_update
-
- elog "Updating XDG database"
-
- elog "The auto-cpufreq override file will be stored in /var/lib/auto-cpufreq/override.pickle"
-
- # Create log file
- touch /var/log/auto-cpufreq.log
- elog ""
- elog "Enable auto-cpufreq daemon service at boot:"
- elog "systemd: systemctl enable --now auto-cpufreq"
- elog "openrc: rc-update add auto-cpufreq default"
- elog ""
- elog "To view live log, run:"
- elog "auto-cpufreq --stats"
-}
-
-pkg_postrm() {
- xdg_icon_cache_update
- xdg_desktop_database_update
-
- # Remove the override.pickle file and directory
- if [[ -d "${EROOT}/var/lib/auto-cpufreq" ]]; then
- rm -rf "${EROOT}"/var/lib/auto-cpufreq || die
- fi
-
- # Remove auto-cpufreq log file
- if [ -f "${EROOT}/var/log/auto-cpufreq.log" ]; then
- rm "${EROOT}"/var/log/auto-cpufreq.log || die
- fi
-
- # Restore original cpufreqctl binary if backup was made
- if [ -f "${EROOT}/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
- mv "${EROOT}"/usr/bin/cpufreqctl.auto-cpufreq{.bak,} || die
- fi
- # Remove auto-cpufreq's cpufreqctl binary
- # it overwrites cpufreqctl.sh
- if [ -f "${EROOT}/usr/bin/cpufreqctl" ]; then
- rm "${EROOT}"/usr/bin/cpufreqctl || die
- fi
-}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/auto-cpufreq/
@ 2024-10-31 13:18 David Roman
0 siblings, 0 replies; 13+ messages in thread
From: David Roman @ 2024-10-31 13:18 UTC (permalink / raw
To: gentoo-commits
commit: 48c66df4cbfde27dde9bc01e3c4036f7a7643cc0
Author: David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Thu Oct 31 13:16:27 2024 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Oct 31 13:16:27 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=48c66df4
sys-power/auto-cpufreq: remove confusing log message
xdg_* already logs when it's updating the cache.
Also, "Updating XDG" message was printed after the action
has been completed.
Closes: https://github.com/gentoo/guru/pull/240
Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
sys-power/auto-cpufreq/auto-cpufreq-2.4.0.ebuild | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys-power/auto-cpufreq/auto-cpufreq-2.4.0.ebuild b/sys-power/auto-cpufreq/auto-cpufreq-2.4.0.ebuild
index 19c577dd3..d46cf7b54 100644
--- a/sys-power/auto-cpufreq/auto-cpufreq-2.4.0.ebuild
+++ b/sys-power/auto-cpufreq/auto-cpufreq-2.4.0.ebuild
@@ -101,8 +101,6 @@ pkg_postinst() {
xdg_icon_cache_update
xdg_desktop_database_update
- elog "Updating XDG database"
-
elog "The auto-cpufreq override file will be stored in /var/lib/auto-cpufreq/override.pickle"
# Create log file
^ permalink raw reply related [flat|nested] 13+ messages in thread
end of thread, other threads:[~2024-10-31 13:18 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-12 23:17 [gentoo-commits] repo/proj/guru:dev commit in: sys-power/auto-cpufreq/ Lucio Sauer
2024-08-13 15:39 ` [gentoo-commits] repo/proj/guru:master " Lucio Sauer
-- strict thread matches above, loose matches on Subject: below --
2024-10-31 13:18 [gentoo-commits] repo/proj/guru:dev " David Roman
2024-09-11 14:42 Takuya Wakazono
2024-09-11 14:42 Takuya Wakazono
2024-09-11 11:36 Michal Vu
2024-08-31 10:46 Michal Vu
2024-08-13 15:34 Lucio Sauer
2024-08-13 15:34 Lucio Sauer
2024-08-11 18:42 Michal Vu
2024-08-11 18:42 Michal Vu
2024-05-15 16:55 Julien Roy
2022-10-12 8:01 Pascal Jäger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox