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:
parent
4c062412e1
commit
448dc0ac1d
2 changed files with 5 additions and 4 deletions
4
.SRCINFO
4
.SRCINFO
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = tuned
|
pkgbase = tuned
|
||||||
pkgdesc = Daemon that performs monitoring and adaptive configuration of devices in the system
|
pkgdesc = Daemon that performs monitoring and adaptive configuration of devices in the system
|
||||||
pkgver = 2.23.0
|
pkgver = 2.23.0
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://github.com/redhat-performance/tuned
|
url = https://github.com/redhat-performance/tuned
|
||||||
arch = any
|
arch = any
|
||||||
license = GPL
|
license = GPL
|
||||||
|
@ -17,7 +17,6 @@ pkgbase = tuned
|
||||||
depends = python-linux-procfs
|
depends = python-linux-procfs
|
||||||
depends = python-perf
|
depends = python-perf
|
||||||
depends = python-pyudev
|
depends = python-pyudev
|
||||||
options = !emptydirs
|
|
||||||
source = https://github.com/redhat-performance/tuned/archive/v2.23.0/tuned-2.23.0.tar.gz
|
source = https://github.com/redhat-performance/tuned/archive/v2.23.0/tuned-2.23.0.tar.gz
|
||||||
sha512sums = b7d95b17ab38ac944e6e5b8b4345ddf65120a03ebb73cdb1795525c237852a8fa4223dcef6ce28189874e5010c8076816bd3646fd7f700983f2449400a2057d8
|
sha512sums = b7d95b17ab38ac944e6e5b8b4345ddf65120a03ebb73cdb1795525c237852a8fa4223dcef6ce28189874e5010c8076816bd3646fd7f700983f2449400a2057d8
|
||||||
|
|
||||||
|
@ -41,4 +40,5 @@ pkgname = tuned-ppd
|
||||||
pkgdesc = Daemon that allows applications to easily transition to TuneD from power-profiles-daemon (PPD)
|
pkgdesc = Daemon that allows applications to easily transition to TuneD from power-profiles-daemon (PPD)
|
||||||
depends = tuned
|
depends = tuned
|
||||||
conflicts = power-profiles-daemon
|
conflicts = power-profiles-daemon
|
||||||
|
options = !emptydirs
|
||||||
backup = etc/tuned/ppd.conf
|
backup = etc/tuned/ppd.conf
|
||||||
|
|
5
PKGBUILD
5
PKGBUILD
|
@ -6,14 +6,13 @@
|
||||||
pkgbase=tuned
|
pkgbase=tuned
|
||||||
pkgname=("${pkgbase}" "${pkgbase}-ppd")
|
pkgname=("${pkgbase}" "${pkgbase}-ppd")
|
||||||
pkgver=2.23.0
|
pkgver=2.23.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc='Daemon that performs monitoring and adaptive configuration of devices in the system'
|
pkgdesc='Daemon that performs monitoring and adaptive configuration of devices in the system'
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://github.com/redhat-performance/${pkgbase}"
|
url="https://github.com/redhat-performance/${pkgbase}"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
depends=('dbus-glib' 'ethtool' 'gawk' 'hdparm' 'polkit' 'python-configobj' 'python-dbus' 'python-gobject' 'python-linux-procfs' 'python-perf' 'python-pyudev')
|
depends=('dbus-glib' 'ethtool' 'gawk' 'hdparm' 'polkit' 'python-configobj' 'python-dbus' 'python-gobject' 'python-linux-procfs' 'python-perf' 'python-pyudev')
|
||||||
makedepends=('desktop-file-utils')
|
makedepends=('desktop-file-utils')
|
||||||
options=('!emptydirs')
|
|
||||||
source=("https://github.com/redhat-performance/${pkgbase}/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz")
|
source=("https://github.com/redhat-performance/${pkgbase}/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz")
|
||||||
sha512sums=('b7d95b17ab38ac944e6e5b8b4345ddf65120a03ebb73cdb1795525c237852a8fa4223dcef6ce28189874e5010c8076816bd3646fd7f700983f2449400a2057d8')
|
sha512sums=('b7d95b17ab38ac944e6e5b8b4345ddf65120a03ebb73cdb1795525c237852a8fa4223dcef6ce28189874e5010c8076816bd3646fd7f700983f2449400a2057d8')
|
||||||
|
|
||||||
|
@ -45,6 +44,7 @@ package_tuned() {
|
||||||
cd "${pkgbase}-${pkgver}"
|
cd "${pkgbase}-${pkgver}"
|
||||||
|
|
||||||
make DESTDIR="${pkgdir}" install
|
make DESTDIR="${pkgdir}" install
|
||||||
|
rm -rv "${pkgdir}"/{run,var}
|
||||||
|
|
||||||
python -m compileall -d /usr/lib "${pkgdir}/usr/lib"
|
python -m compileall -d /usr/lib "${pkgdir}/usr/lib"
|
||||||
python -O -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')
|
depends=('tuned')
|
||||||
conflicts=('power-profiles-daemon')
|
conflicts=('power-profiles-daemon')
|
||||||
backup=('etc/tuned/ppd.conf')
|
backup=('etc/tuned/ppd.conf')
|
||||||
|
options=('!emptydirs')
|
||||||
|
|
||||||
cd "${pkgbase}-${pkgver}"
|
cd "${pkgbase}-${pkgver}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue