blob: e4abea27837911a0ba2eaeb576c14024049af729 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
}
|