2024-10-22 00:10:47 +02:00
|
|
|
# Maintainer: Manuel Hüsers <aur@huesers.de>
|
|
|
|
# Contributor: Wes Jackson <icebal dot 7 at gmail dot com>
|
|
|
|
# Contributor: Iwan Timmer <irtimmer@gmail.com>
|
|
|
|
# Contributor: Timothée Ravier <tim at siosm dot fr>
|
|
|
|
# Contributor: Tom <reztho at archlinux dot org>
|
2015-06-09 12:18:12 +02:00
|
|
|
|
2024-10-22 00:10:47 +02:00
|
|
|
_pkgbase=tuned
|
|
|
|
pkgbase="${_pkgbase}-git"
|
|
|
|
pkgname=("${_pkgbase}-git" "${_pkgbase}-ppd-git")
|
2024-11-27 23:42:20 +01:00
|
|
|
pkgver=2.24.1.r0.g90c24ee
|
|
|
|
pkgrel=1
|
2015-06-09 12:18:12 +02:00
|
|
|
pkgdesc='Daemon that performs monitoring and adaptive configuration of devices in the system'
|
|
|
|
arch=('any')
|
2024-10-22 00:10:47 +02:00
|
|
|
url="https://github.com/redhat-performance/${_pkgbase}"
|
|
|
|
license=('GPL-2.0-or-later')
|
2024-10-22 23:24:13 +02:00
|
|
|
depends=('ethtool' 'gawk' 'hdparm' 'polkit' 'perf' 'python-configobj'
|
|
|
|
'python-dbus' 'python-gobject' 'python-linux-procfs' 'python-pyudev')
|
2024-10-22 00:10:47 +02:00
|
|
|
makedepends=('desktop-file-utils' 'git')
|
|
|
|
source=("git+${url}.git")
|
|
|
|
sha512sums=('SKIP')
|
2015-06-09 12:18:12 +02:00
|
|
|
|
|
|
|
pkgver() {
|
2024-10-22 00:10:47 +02:00
|
|
|
cd "${_pkgbase}"
|
|
|
|
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/^v//g;s/-/./g'
|
2015-06-09 12:18:12 +02:00
|
|
|
}
|
|
|
|
|
2024-10-22 00:10:47 +02:00
|
|
|
prepare() {
|
|
|
|
cd "${_pkgbase}"
|
|
|
|
mv libexec lib
|
2015-06-09 12:18:12 +02:00
|
|
|
|
2024-10-22 00:10:47 +02:00
|
|
|
sed -i 's|/libexec/|/lib/|g' Makefile
|
|
|
|
sed -i 's|/sbin/|/bin/|g' Makefile tuned.service tuned-gui.py tuned-gui.desktop tuned/ppd/tuned-ppd.service
|
|
|
|
}
|
|
|
|
|
|
|
|
package_tuned-git() {
|
2024-10-22 23:24:13 +02:00
|
|
|
optdepends=('virt-what: Virtual machine detection'
|
|
|
|
'systemtap: Detailed system monitoring'
|
2024-10-22 00:10:47 +02:00
|
|
|
'tuned-ppd: power-profiles-daemon api translation'
|
2024-10-22 23:24:13 +02:00
|
|
|
'wireless_tools: Wireless device power management'
|
|
|
|
'x86_energy_perf_policy: Energy Performance Bias (EPB) support')
|
2024-10-22 00:10:47 +02:00
|
|
|
provides=("${_pkgbase}")
|
|
|
|
conflicts=("${_pkgbase}")
|
|
|
|
backup=('etc/tuned/active_profile'
|
|
|
|
'etc/tuned/bootcmdline'
|
|
|
|
'etc/tuned/cpu-partitioning-powersave-variables.conf'
|
|
|
|
'etc/tuned/cpu-partitioning-variables.conf'
|
|
|
|
'etc/tuned/post_loaded_profile'
|
|
|
|
'etc/tuned/profile_mode'
|
|
|
|
'etc/tuned/realtime-variables.conf'
|
|
|
|
'etc/tuned/realtime-virtual-guest-variables.conf'
|
|
|
|
'etc/tuned/realtime-virtual-host-variables.conf'
|
|
|
|
'etc/tuned/tuned-main.conf')
|
|
|
|
|
|
|
|
cd "${_pkgbase}"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
rm -rv "${pkgdir}"/{run,var}
|
2015-06-09 12:18:12 +02:00
|
|
|
|
2024-10-22 00:10:47 +02:00
|
|
|
python -m compileall -d /usr/lib "${pkgdir}/usr/lib"
|
|
|
|
python -O -m compileall -d /usr/lib "${pkgdir}/usr/lib"
|
2015-06-09 12:18:12 +02:00
|
|
|
}
|
|
|
|
|
2024-10-22 00:10:47 +02:00
|
|
|
package_tuned-ppd-git() {
|
|
|
|
pkgdesc='Daemon that allows applications to easily transition to TuneD from power-profiles-daemon (PPD)'
|
|
|
|
depends=("${_pkgbase}")
|
|
|
|
provides=("${_pkgbase}-ppd" 'power-profiles-daemon')
|
|
|
|
conflicts=("${_pkgbase}-ppd" 'power-profiles-daemon')
|
|
|
|
backup=('etc/tuned/ppd.conf')
|
|
|
|
|
|
|
|
cd "${_pkgbase}"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install-ppd
|
|
|
|
}
|