diff options
author | PA4WDH | 2023-05-24 14:19:26 +0200 |
---|---|---|
committer | PA4WDH | 2023-05-24 14:19:26 +0200 |
commit | 3090d9e949eca74cd2798267ac2f994c2efa4c51 (patch) | |
tree | 6f5662b3ca07428461a16ceca7bc17946594f9ea /gentoo/cputemp2maxfreq-0.2.ebuild | |
parent | Update generate_version_h.sh (diff) | |
download | cputemp2maxfreq-3090d9e949eca74cd2798267ac2f994c2efa4c51.tar.gz cputemp2maxfreq-3090d9e949eca74cd2798267ac2f994c2efa4c51.tar.bz2 cputemp2maxfreq-3090d9e949eca74cd2798267ac2f994c2efa4c51.zip |
Add gentoo ebuild
Diffstat (limited to 'gentoo/cputemp2maxfreq-0.2.ebuild')
-rw-r--r-- | gentoo/cputemp2maxfreq-0.2.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gentoo/cputemp2maxfreq-0.2.ebuild b/gentoo/cputemp2maxfreq-0.2.ebuild new file mode 100644 index 0000000..e4abea2 --- /dev/null +++ b/gentoo/cputemp2maxfreq-0.2.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" +GIT_COMMIT="f851f21131a1aab2d9a9449e47876132c2d948c4" +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 +} |