upgpkg: tuned 2.23.0-2: preserve empty config dirs

* Fix tuned-gui crash by preserving empty directories in `/etc/tuned`
This commit is contained in:
Manuel 2024-06-17 21:19:12 +02:00
parent f3f564b4aa
commit f7362d494f
Signed by: Manuel
GPG key ID: 4085037435E1F07A
2 changed files with 5 additions and 4 deletions

View file

@ -1,7 +1,7 @@
pkgbase = tuned
pkgdesc = Daemon that performs monitoring and adaptive configuration of devices in the system
pkgver = 2.23.0
pkgrel = 1
pkgrel = 2
url = https://github.com/redhat-performance/tuned
arch = any
license = GPL
@ -17,7 +17,6 @@ pkgbase = tuned
depends = python-linux-procfs
depends = python-perf
depends = python-pyudev
options = !emptydirs
source = https://github.com/redhat-performance/tuned/archive/v2.23.0/tuned-2.23.0.tar.gz
sha512sums = b7d95b17ab38ac944e6e5b8b4345ddf65120a03ebb73cdb1795525c237852a8fa4223dcef6ce28189874e5010c8076816bd3646fd7f700983f2449400a2057d8
@ -41,4 +40,5 @@ pkgname = tuned-ppd
pkgdesc = Daemon that allows applications to easily transition to TuneD from power-profiles-daemon (PPD)
depends = tuned
conflicts = power-profiles-daemon
options = !emptydirs
backup = etc/tuned/ppd.conf

View file

@ -6,14 +6,13 @@
pkgbase=tuned
pkgname=("${pkgbase}" "${pkgbase}-ppd")
pkgver=2.23.0
pkgrel=1
pkgrel=2
pkgdesc='Daemon that performs monitoring and adaptive configuration of devices in the system'
arch=('any')
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')
makedepends=('desktop-file-utils')
options=('!emptydirs')
source=("https://github.com/redhat-performance/${pkgbase}/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz")
sha512sums=('b7d95b17ab38ac944e6e5b8b4345ddf65120a03ebb73cdb1795525c237852a8fa4223dcef6ce28189874e5010c8076816bd3646fd7f700983f2449400a2057d8')
@ -45,6 +44,7 @@ package_tuned() {
cd "${pkgbase}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -rv "${pkgdir}"/{run,var}
python -m compileall -d /usr/lib "${pkgdir}/usr/lib"
python -O -m compileall -d /usr/lib "${pkgdir}/usr/lib"
@ -55,6 +55,7 @@ package_tuned-ppd() {
depends=('tuned')
conflicts=('power-profiles-daemon')
backup=('etc/tuned/ppd.conf')
options=('!emptydirs')
cd "${pkgbase}-${pkgver}"