Compare commits

...

9 Commits

Author SHA1 Message Date
Manuel 0cf4501694 upgpkg: tuned 2.22.1-2: rebuild
* Trigger rebuild for Python 3.12
2024-04-27 20:57:00 +02:00
Manuel bc2f5024db upgpkg: tuned 2.22.1-1
upstream release
2024-02-22 14:26:00 +01:00
Manuel cd96c6dbd4 upgpkg: tuned 2.22.0-3: split package
* Split package to make ppd service optional since it conflicts with power-profiles-daemon package
* Added missing backup files for tuned so that config files may not be overwritten on update
2024-02-22 07:36:00 +01:00
Manuel 726a3e6965 upgpkg: tuned 2.22.0-2: add ppd service
* Install optional PPD-to-TuneD daemon that translates DBus API calls to power-profiles-daemon into TuneD API calls.
2024-02-21 19:25:35 +01:00
Manuel 0c2a35fd71 upgpkg: tuned 2.22.0-1
upstream release
2024-02-17 09:45:14 +01:00
Manuel 8ae859004a upgpkg: tuned 2.21.0-1
upstream release
2023-08-29 17:44:00 +02:00
Manuel c7ab6570dc upgpkg: tuned 2.20.0-2
Trigger rebuild for Python 3.11
2023-05-05 17:24:45 +02:00
Manuel 68db67cc62 upgpkg: tuned 2.20.0-1
upstream release
2023-02-18 23:38:32 +01:00
Manuel 6d0e646d68 Use unique file names for sources 2022-11-23 18:00:52 +01:00
2 changed files with 61 additions and 23 deletions

View File

@ -1,9 +1,8 @@
pkgbase = tuned
pkgdesc = Daemon that performs monitoring and adaptive configuration of devices in the system
pkgver = 2.19.0
pkgrel = 1
pkgver = 2.22.1
pkgrel = 2
url = https://github.com/redhat-performance/tuned
install = tuned.install
arch = any
license = GPL
makedepends = desktop-file-utils
@ -18,10 +17,27 @@ pkgbase = tuned
depends = python-linux-procfs
depends = python-perf
depends = python-pyudev
optdepends = virt-what: For use with virtual machines
optdepends = systemtap: Disk and net statistic monitoring systemtap scripts
backup = etc/tuned/active_profile
source = https://github.com/redhat-performance/tuned/archive/v2.19.0.tar.gz
sha256sums = 3cb2aeb9ecebd66a1a1c3aaff9589f5c5402201d16f7caa01acf0b9374ed8724
options = !emptydirs
source = https://github.com/redhat-performance/tuned/archive/v2.22.1/tuned-2.22.1.tar.gz
sha512sums = 160b1cab5477d84a0da89f584fe646b32162527a138d9b5957799c5f26598b98449733040710133a1c5bdd5588eee72549131ff163e777a105fc24e92edc6d8f
pkgname = tuned
install = tuned.install
optdepends = virt-what: virtual machine detection
optdepends = systemtap: detailed system monitoring
optdepends = tuned-ppd: power-profiles-daemon api translation
backup = etc/tuned/active_profile
backup = etc/tuned/bootcmdline
backup = etc/tuned/cpu-partitioning-powersave-variables.conf
backup = etc/tuned/cpu-partitioning-variables.conf
backup = etc/tuned/post_loaded_profile
backup = etc/tuned/realtime-variables.conf
backup = etc/tuned/realtime-virtual-guest-variables.conf
backup = etc/tuned/realtime-virtual-host-variables.conf
backup = etc/tuned/tuned-main.conf
pkgname = tuned-ppd
pkgdesc = Daemon that allows applications to easily transition to TuneD from power-profiles-daemon (PPD)
depends = tuned
conflicts = power-profiles-daemon
backup = etc/tuned/ppd.conf

View File

@ -3,37 +3,59 @@
# Contributor: Timothée Ravier <tim at siosm dot fr>
# Contributor: Tom <reztho at archlinux dot org>
pkgname=tuned
pkgver=2.19.0
pkgrel=1
pkgbase=tuned
pkgname=("${pkgbase}" "${pkgbase}-ppd")
pkgver=2.22.1
pkgrel=2
pkgdesc='Daemon that performs monitoring and adaptive configuration of devices in the system'
arch=('any')
url="https://github.com/redhat-performance/${pkgname}"
url="https://github.com/redhat-performance/${pkgbase}"
license=('GPL')
depends=('dbus-glib' 'ethtool' 'gawk' 'hdparm' 'polkit' 'python-configobj' 'python-dbus' 'python-gobject' 'python-linux-procfs' 'python-perf' 'python-pyudev')
optdepends=('virt-what: For use with virtual machines' 'systemtap: Disk and net statistic monitoring systemtap scripts')
makedepends=('desktop-file-utils')
backup=('etc/tuned/active_profile')
install="${pkgname}.install"
source=("https://github.com/redhat-performance/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('3cb2aeb9ecebd66a1a1c3aaff9589f5c5402201d16f7caa01acf0b9374ed8724')
options=('!emptydirs')
source=("https://github.com/redhat-performance/${pkgbase}/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz")
sha512sums=('160b1cab5477d84a0da89f584fe646b32162527a138d9b5957799c5f26598b98449733040710133a1c5bdd5588eee72549131ff163e777a105fc24e92edc6d8f')
prepare() {
cd "${pkgname}-${pkgver}"
cd "${pkgbase}-${pkgver}"
mv libexec lib
sed -i 's/libexec/lib/g' Makefile
sed -i 's/sbin/bin/g' Makefile
sed -i 's/install-ppd: install$/install-ppd: install-dirs/' Makefile
}
package() {
cd "${pkgname}-${pkgver}"
package_tuned() {
optdepends=('virt-what: virtual machine detection'
'systemtap: detailed system monitoring'
'tuned-ppd: power-profiles-daemon api translation')
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/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"
cd "${pkgbase}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -r "${pkgdir}"/{run,var}
python -m compileall -d /usr/lib "${pkgdir}/usr/lib"
python -O -m compileall -d /usr/lib "${pkgdir}/usr/lib"
install -Dm644 tuned.service "${pkgdir}/usr/lib/systemd/system/"
}
package_tuned-ppd() {
pkgdesc='Daemon that allows applications to easily transition to TuneD from power-profiles-daemon (PPD)'
depends=('tuned')
conflicts=('power-profiles-daemon')
backup=('etc/tuned/ppd.conf')
cd "${pkgbase}-${pkgver}"
make DESTDIR="${pkgdir}" install-ppd
}