aboutsummaryrefslogtreecommitdiffstats
path: root/gentoo
diff options
context:
space:
mode:
authorPA4WDH2024-07-25 17:35:23 +0200
committerPA4WDH2024-07-25 17:35:23 +0200
commit3874df88fe822f2b87d7cd5f83178782ad115516 (patch)
tree5f4fce88af96130e6794a0c6ed34ad88bfcc7a0e /gentoo
parentAdd commandline parameter to set transition latency (diff)
downloadcputemp2maxfreq-3874df88fe822f2b87d7cd5f83178782ad115516.tar.gz
cputemp2maxfreq-3874df88fe822f2b87d7cd5f83178782ad115516.tar.bz2
cputemp2maxfreq-3874df88fe822f2b87d7cd5f83178782ad115516.zip
Add ebuild for version 0.4
Diffstat (limited to 'gentoo')
-rw-r--r--gentoo/cputemp2maxfreq-0.4.ebuild39
1 files changed, 39 insertions, 0 deletions
diff --git a/gentoo/cputemp2maxfreq-0.4.ebuild b/gentoo/cputemp2maxfreq-0.4.ebuild
new file mode 100644
index 0000000..2677ce1
--- /dev/null
+++ b/gentoo/cputemp2maxfreq-0.4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Daemon to scale scale_max_freq when CPU temperature rises"
+HOMEPAGE="https://code.pa4wdh.nl.eu.org/tools/cputemp2maxfreq/about"
+GIT_COMMIT="5a33d25886af8f0996d901fcfc66674a3dc625db"
+SRC_URI="https://code.pa4wdh.nl.eu.org/tools/cputemp2maxfreq/snapshot/cputemp2maxfreq-$GIT_COMMIT.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_unpack()
+{
+ unpack "${P}.tar.gz"
+ mv "cputemp2maxfreq-$GIT_COMMIT" "${P}"
+}
+
+src_prepare()
+{
+ eapply_user
+
+ ./generate_version_h.sh "${PV}" "${GIT_COMMIT:0:7}" "master" > version.h
+ mkdir .git
+ touch -d "1 minute ago" .git/index
+}
+
+src_install()
+{
+ dosbin ${PN}
+ newinitd "${FILESDIR}/cputemp2maxfreq.init" cputemp2maxfreq
+ newconfd "${FILESDIR}/cputemp2maxfreq.conf" cputemp2maxfreq
+}