Compare commits

..

No commits in common. "bc2f5024db4e503d873e266429e07a53b49e7b5c" and "726a3e6965461c0b9d14aa7f5da61765c03fbdac" have entirely different histories.

2 changed files with 23 additions and 60 deletions

View file

@ -1,8 +1,9 @@
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.22.1 pkgver = 2.22.0
pkgrel = 1 pkgrel = 2
url = https://github.com/redhat-performance/tuned url = https://github.com/redhat-performance/tuned
install = tuned.install
arch = any arch = any
license = GPL license = GPL
makedepends = desktop-file-utils makedepends = desktop-file-utils
@ -17,27 +18,10 @@ 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.22.1/tuned-2.22.1.tar.gz
sha512sums = 160b1cab5477d84a0da89f584fe646b32162527a138d9b5957799c5f26598b98449733040710133a1c5bdd5588eee72549131ff163e777a105fc24e92edc6d8f
pkgname = tuned
install = tuned.install
optdepends = virt-what: virtual machine detection optdepends = virt-what: virtual machine detection
optdepends = systemtap: detailed system monitoring optdepends = systemtap: detailed system monitoring
optdepends = tuned-ppd: power-profiles-daemon api translation
backup = etc/tuned/active_profile backup = etc/tuned/active_profile
backup = etc/tuned/bootcmdline source = https://github.com/redhat-performance/tuned/archive/v2.22.0/tuned-2.22.0.tar.gz
backup = etc/tuned/cpu-partitioning-powersave-variables.conf sha512sums = 653f946e8eff57eaa7e26b05c9215d60c8dcec6760b4a41a2855328e86b65f4dcbc0b2fd7d9f9355d00aae93f601c035a38d4e1611f30cb5003b417e31bea4dc
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 pkgname = tuned
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,59 +3,38 @@
# Contributor: Timothée Ravier <tim at siosm dot fr> # Contributor: Timothée Ravier <tim at siosm dot fr>
# Contributor: Tom <reztho at archlinux dot org> # Contributor: Tom <reztho at archlinux dot org>
pkgbase=tuned pkgname=tuned
pkgname=("${pkgbase}" "${pkgbase}-ppd") pkgver=2.22.0
pkgver=2.22.1 pkgrel=2
pkgrel=1
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/${pkgname}"
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')
optdepends=('virt-what: virtual machine detection'
'systemtap: detailed system monitoring')
makedepends=('desktop-file-utils') makedepends=('desktop-file-utils')
options=('!emptydirs') backup=('etc/tuned/active_profile')
source=("https://github.com/redhat-performance/${pkgbase}/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz") install="${pkgname}.install"
sha512sums=('160b1cab5477d84a0da89f584fe646b32162527a138d9b5957799c5f26598b98449733040710133a1c5bdd5588eee72549131ff163e777a105fc24e92edc6d8f') source=("https://github.com/redhat-performance/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('653f946e8eff57eaa7e26b05c9215d60c8dcec6760b4a41a2855328e86b65f4dcbc0b2fd7d9f9355d00aae93f601c035a38d4e1611f30cb5003b417e31bea4dc')
prepare() { prepare() {
cd "${pkgbase}-${pkgver}" cd "${pkgname}-${pkgver}"
mv libexec lib mv libexec lib
sed -i 's/libexec/lib/g' Makefile sed -i 's/libexec/lib/g' Makefile
sed -i 's/sbin/bin/g' Makefile sed -i 's/sbin/bin/g' Makefile
sed -i 's/install-ppd: install$/install-ppd: install-dirs/' Makefile
} }
package_tuned() { package() {
optdepends=('virt-what: virtual machine detection' cd "${pkgname}-${pkgver}"
'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 install-ppd
rm -r "${pkgdir}"/{run,var}
make DESTDIR="${pkgdir}" install
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"
}
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
} }