aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gentoo/Manifest2
-rw-r--r--gentoo/cputemp2maxfreq-0.3.ebuild39
2 files changed, 41 insertions, 0 deletions
diff --git a/gentoo/Manifest b/gentoo/Manifest
index 13d9dd7..7f5a1d0 100644
--- a/gentoo/Manifest
+++ b/gentoo/Manifest
@@ -1,4 +1,6 @@
AUX cputemp2maxfreq.conf 257 BLAKE2B 755cbb51b68ae772cf413a9be1b928a350ef962b07dcfd4fd06c938238c35ae6bf8f8e0010103a6383bd1bb1ba23d2c06efcf3dc7490f4fa045f3943b1fc3837 SHA512 ada678f8ab5e6aabeb246cb49c2ab1da26cee2204b353aff4db537621176d57367474864d491da846c83973769affd135fafc45f5fc11df49e418ace6268b5ab
AUX cputemp2maxfreq.init 555 BLAKE2B 2a3085a8b04c2b11dba79e2a710fbeced162009b4461e8837762d13964c030476626ecf6812cf9931e95d7c559804fd04e21357a8c1ddaed6d07be29d5fb6c0d SHA512 8b8c41e96864a02e23ca53cacb153c6968418bdc003a2e5f6fbe3040c868dc43ea230b1492fbe437bef941d1ed911ed22a4d9963cdb33688cdd543f7e7240c77
DIST cputemp2maxfreq-0.2.tar.gz 8860 BLAKE2B df852d62988b7c6a46e227eb8e0ec5c885b62f49d4edd39d7cb7bae09935ba672a254c7178d0b70c0ea91cf5163c9f248214c2e1edd4c77e2ed7894d2a81a021 SHA512 a895197c247e45b85bfa7ae635995dcb46a1e4b0bae0c5fda3a96500c571eb7e1cf75c265b9c863e733bd3e31a424427d5069e49e136865e1835177710122234
+DIST cputemp2maxfreq-0.3.tar.gz 61704 BLAKE2B 6aa8d91f2f7bd016121eb5721ad314b7958217530d2c49463260d72d40448f4ac936539efbe93e29c08480b4e99b1b3f1448335624f64e895a554be6a1e40426 SHA512 40c936b4c1ec2a30c9ecd1636344b8a74ac37273c6b9ea8f5cdc18ea66d275bc2e0da7261cb754ee4e428e54a25f58e1cddef5f1a4f5b6fb06864adad365ee3b
EBUILD cputemp2maxfreq-0.2.ebuild 900 BLAKE2B 9895b48ca99dc01002e1e3c211951bb7ab9b33cfdab4ab24f318ce79f28985f482f7c81111c0a17d6465b9b37b3a7e6ed049ba6255a72995b4203543040783ab SHA512 63b815138db3ebf0f21c06f2d5820ea238bb743c3d12aa61ebd2b60d3b31b5fd06aaf1c83343646899c21feeb9fe30fd2adad8ff912c420043ce7fa228aefaf2
+EBUILD cputemp2maxfreq-0.3.ebuild 900 BLAKE2B 1f673baa771379fcab3f7ffcd41aa95da9fe42005f1adec511931ee4da260b566247c68215311f16063919628467f64adc268867e4b6fa561baf6c89364ec696 SHA512 735ad4dffdcc2ec0eddc6a6cca5181e126e0c168066ffd396dd454a90d66127db539381bc4b44570863a1d8e22f28046534156b257953bd6f885419944bec6fb
diff --git a/gentoo/cputemp2maxfreq-0.3.ebuild b/gentoo/cputemp2maxfreq-0.3.ebuild
new file mode 100644
index 0000000..8f34b1f
--- /dev/null
+++ b/gentoo/cputemp2maxfreq-0.3.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="beed43a886451373b3cbfb8bb2a946e74fe16d05"
+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
+}