From 616e8997185d01c5c3f0bd2899afa39d1127c44b Mon Sep 17 00:00:00 2001 From: PA4WDH Date: Wed, 4 Sep 2024 10:36:53 +0200 Subject: Add ebuild for version 0.6 --- gentoo/cputemp2maxfreq-0.6.ebuild | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 gentoo/cputemp2maxfreq-0.6.ebuild (limited to 'gentoo/cputemp2maxfreq-0.6.ebuild') diff --git a/gentoo/cputemp2maxfreq-0.6.ebuild b/gentoo/cputemp2maxfreq-0.6.ebuild new file mode 100644 index 0000000..d87f352 --- /dev/null +++ b/gentoo/cputemp2maxfreq-0.6.ebuild @@ -0,0 +1,40 @@ +# 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="1303d8b0c6ab477032bde5c9c7e7502dde6acada" +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} + doman ${PN}.8 + newinitd "${FILESDIR}/cputemp2maxfreq.init" cputemp2maxfreq + newconfd "${FILESDIR}/cputemp2maxfreq.conf" cputemp2maxfreq +} -- cgit v1.2.3