2020-06-26 16:11:15 +02:00
|
|
|
# Maintainer: Manuel Hüsers <aur@huesers.de>
|
2017-03-12 00:10:41 +01:00
|
|
|
# Contributor: Iwan Timmer <irtimmer@gmail.com>
|
2016-01-26 13:06:42 +01:00
|
|
|
# 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-02-22 07:36:00 +01:00
|
|
|
pkgbase=tuned
|
|
|
|
pkgname=("${pkgbase}" "${pkgbase}-ppd")
|
2024-08-07 23:10:00 +02:00
|
|
|
pkgver=2.24.0
|
2024-10-09 22:44:18 +02:00
|
|
|
pkgrel=2
|
2015-06-09 12:18:12 +02:00
|
|
|
pkgdesc='Daemon that performs monitoring and adaptive configuration of devices in the system'
|
|
|
|
arch=('any')
|
2024-02-22 07:36:00 +01:00
|
|
|
url="https://github.com/redhat-performance/${pkgbase}"
|
2024-07-21 07:32:40 +02:00
|
|
|
license=('GPL-2.0-or-later')
|
2021-07-31 17:58:02 +02:00
|
|
|
depends=('dbus-glib' 'ethtool' 'gawk' 'hdparm' 'polkit' 'python-configobj' 'python-dbus' 'python-gobject' 'python-linux-procfs' 'python-perf' 'python-pyudev')
|
2017-12-11 17:02:21 +01:00
|
|
|
makedepends=('desktop-file-utils')
|
2024-02-22 07:36:00 +01:00
|
|
|
source=("https://github.com/redhat-performance/${pkgbase}/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz")
|
2024-08-07 23:10:00 +02:00
|
|
|
sha512sums=('d004cd621e26195fff14b39f29b2143cf47de09641454acd3029d61142c3d000a452f018356c84c32772bd99fc766f6ee847d2a8eddbde8ae34aaa0ecefa644e')
|
2015-06-09 12:18:12 +02:00
|
|
|
|
2021-12-13 12:45:04 +01:00
|
|
|
prepare() {
|
2024-02-22 07:36:00 +01:00
|
|
|
cd "${pkgbase}-${pkgver}"
|
2021-12-13 12:45:04 +01:00
|
|
|
mv libexec lib
|
|
|
|
|
2024-06-09 17:54:31 +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
|
|
|
|
sed -i 's|install-ppd: install$|install-ppd: install-dirs|' Makefile
|
2021-12-13 12:45:04 +01:00
|
|
|
}
|
|
|
|
|
2024-02-22 07:36:00 +01:00
|
|
|
package_tuned() {
|
|
|
|
optdepends=('virt-what: virtual machine detection'
|
|
|
|
'systemtap: detailed system monitoring'
|
2024-10-09 22:44:18 +02:00
|
|
|
'tuned-ppd: power-profiles-daemon api translation'
|
|
|
|
'wireless_tools: wireless device power management')
|
2024-02-22 07:36:00 +01:00
|
|
|
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'
|
2024-06-09 17:54:31 +02:00
|
|
|
'etc/tuned/profile_mode'
|
2024-02-22 07:36:00 +01:00
|
|
|
'etc/tuned/realtime-variables.conf'
|
|
|
|
'etc/tuned/realtime-virtual-guest-variables.conf'
|
|
|
|
'etc/tuned/realtime-virtual-host-variables.conf'
|
|
|
|
'etc/tuned/tuned-main.conf')
|
|
|
|
install="${pkgbase}.install"
|
2015-06-09 12:18:12 +02:00
|
|
|
|
2024-02-22 07:36:00 +01:00
|
|
|
cd "${pkgbase}-${pkgver}"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2024-06-17 21:19:12 +02:00
|
|
|
rm -rv "${pkgdir}"/{run,var}
|
2015-06-09 12:18:12 +02:00
|
|
|
|
2022-08-19 23:13:11 +02:00
|
|
|
python -m compileall -d /usr/lib "${pkgdir}/usr/lib"
|
|
|
|
python -O -m compileall -d /usr/lib "${pkgdir}/usr/lib"
|
2024-02-22 07:36:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package_tuned-ppd() {
|
|
|
|
pkgdesc='Daemon that allows applications to easily transition to TuneD from power-profiles-daemon (PPD)'
|
|
|
|
depends=('tuned')
|
2024-10-09 22:44:18 +02:00
|
|
|
provides=('power-profiles-daemon')
|
2024-02-22 07:36:00 +01:00
|
|
|
conflicts=('power-profiles-daemon')
|
|
|
|
backup=('etc/tuned/ppd.conf')
|
2024-06-17 21:19:12 +02:00
|
|
|
options=('!emptydirs')
|
2024-02-22 07:36:00 +01:00
|
|
|
|
|
|
|
cd "${pkgbase}-${pkgver}"
|
2022-07-04 17:12:47 +02:00
|
|
|
|
2024-02-22 07:36:00 +01:00
|
|
|
make DESTDIR="${pkgdir}" install-ppd
|
2015-06-09 12:18:12 +02:00
|
|
|
}
|