upgpkg: tuned-git 2.24.0.r6.g35eed3c-1: refactor
* Refactor of PKGBUILD for parity with non-git package
This commit is contained in:
parent
4f103da551
commit
318ee46d94
3 changed files with 104 additions and 52 deletions
61
.SRCINFO
61
.SRCINFO
|
@ -1,33 +1,50 @@
|
||||||
pkgbase = tuned-git
|
pkgbase = tuned-git
|
||||||
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.10.0.r75.g26db89d
|
pkgver = 2.24.0.r6.g35eed3c
|
||||||
pkgrel = 4
|
pkgrel = 1
|
||||||
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-2.0-or-later
|
||||||
makedepends = git
|
|
||||||
makedepends = desktop-file-utils
|
makedepends = desktop-file-utils
|
||||||
|
makedepends = git
|
||||||
|
depends = dbus-glib
|
||||||
depends = ethtool
|
depends = ethtool
|
||||||
depends = python-configobj
|
depends = gawk
|
||||||
depends = python-pyudev
|
|
||||||
depends = python-gobject
|
|
||||||
depends = python-decorator
|
|
||||||
depends = python-dbus
|
|
||||||
depends = python-schedutils
|
|
||||||
depends = python-linux-procfs
|
|
||||||
depends = perf
|
|
||||||
depends = hdparm
|
depends = hdparm
|
||||||
depends = polkit
|
depends = polkit
|
||||||
depends = hicolor-icon-theme
|
depends = python-configobj
|
||||||
optdepends = virt-what
|
depends = python-dbus
|
||||||
optdepends = systemtap
|
depends = python-gobject
|
||||||
optdepends = python-dmidecode
|
depends = python-linux-procfs
|
||||||
optdepends = x86_energy_perf_policy
|
depends = python-perf
|
||||||
provides = tuned
|
depends = python-pyudev
|
||||||
backup = etc/tuned/active_profile
|
source = git+https://github.com/redhat-performance/tuned.git
|
||||||
source = tuned-git::git://github.com/redhat-performance/tuned
|
sha512sums = SKIP
|
||||||
sha256sums = SKIP
|
|
||||||
|
|
||||||
pkgname = tuned-git
|
pkgname = tuned-git
|
||||||
|
optdepends = virt-what: virtual machine detection
|
||||||
|
optdepends = systemtap: detailed system monitoring
|
||||||
|
optdepends = tuned-ppd: power-profiles-daemon api translation
|
||||||
|
optdepends = wireless_tools: wireless device power management
|
||||||
|
provides = tuned
|
||||||
|
conflicts = tuned
|
||||||
|
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/profile_mode
|
||||||
|
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-git
|
||||||
|
pkgdesc = Daemon that allows applications to easily transition to TuneD from power-profiles-daemon (PPD)
|
||||||
|
depends = tuned
|
||||||
|
provides = tuned-ppd
|
||||||
|
provides = power-profiles-daemon
|
||||||
|
conflicts = tuned-ppd
|
||||||
|
conflicts = power-profiles-daemon
|
||||||
|
options = !emptydirs
|
||||||
|
backup = etc/tuned/ppd.conf
|
||||||
|
|
88
PKGBUILD
88
PKGBUILD
|
@ -1,37 +1,75 @@
|
||||||
# Maintainer: Wes Jackson < icebal dot 7 at gmail dot com >
|
# Maintainer: Manuel Hüsers <aur@huesers.de>
|
||||||
# Contributor: Tom < reztho at archlinux dot org >
|
# Contributor: Wes Jackson <icebal dot 7 at gmail dot com>
|
||||||
|
# Contributor: Iwan Timmer <irtimmer@gmail.com>
|
||||||
|
# Contributor: Timothée Ravier <tim at siosm dot fr>
|
||||||
|
# Contributor: Tom <reztho at archlinux dot org>
|
||||||
|
|
||||||
pkgname=tuned-git
|
_pkgbase=tuned
|
||||||
pkgver=2.10.0.r75.g26db89d
|
pkgbase="${_pkgbase}-git"
|
||||||
pkgrel=4
|
pkgname=("${_pkgbase}-git" "${_pkgbase}-ppd-git")
|
||||||
|
pkgver=2.24.0.r6.g35eed3c
|
||||||
|
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/tuned'
|
url="https://github.com/redhat-performance/${_pkgbase}"
|
||||||
license=('GPL')
|
license=('GPL-2.0-or-later')
|
||||||
depends=('ethtool' 'python-configobj' 'python-pyudev' 'python-gobject' 'python-decorator' 'python-dbus' 'python-schedutils' 'python-linux-procfs' 'perf' 'hdparm' 'polkit' 'hicolor-icon-theme')
|
depends=('dbus-glib' 'ethtool' 'gawk' 'hdparm' 'polkit' 'python-configobj'
|
||||||
optdepends=('virt-what' 'systemtap' 'python-dmidecode' 'x86_energy_perf_policy')
|
'python-dbus' 'python-gobject' 'python-linux-procfs' 'python-perf'
|
||||||
makedepends=('git' 'desktop-file-utils')
|
'python-pyudev')
|
||||||
provides=('tuned')
|
makedepends=('desktop-file-utils' 'git')
|
||||||
backup=('etc/tuned/active_profile')
|
source=("git+${url}.git")
|
||||||
install="${pkgname/-git}.install"
|
sha512sums=('SKIP')
|
||||||
source=("${pkgname}::git://github.com/redhat-performance/tuned")
|
|
||||||
sha256sums=('SKIP')
|
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd ${pkgname}
|
cd "${_pkgbase}"
|
||||||
local ver=$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
|
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/^v//g;s/-/./g'
|
||||||
printf "%s\n" "${ver:1}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
prepare() {
|
||||||
cd ${pkgname}
|
cd "${_pkgbase}"
|
||||||
|
mv libexec lib
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
package_tuned-git() {
|
||||||
|
optdepends=('virt-what: virtual machine detection'
|
||||||
|
'systemtap: detailed system monitoring'
|
||||||
|
'tuned-ppd: power-profiles-daemon api translation'
|
||||||
|
'wireless_tools: wireless device power management')
|
||||||
|
provides=("${_pkgbase}")
|
||||||
|
conflicts=("${_pkgbase}")
|
||||||
|
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/profile_mode'
|
||||||
|
'etc/tuned/realtime-variables.conf'
|
||||||
|
'etc/tuned/realtime-virtual-guest-variables.conf'
|
||||||
|
'etc/tuned/realtime-virtual-host-variables.conf'
|
||||||
|
'etc/tuned/tuned-main.conf')
|
||||||
|
|
||||||
|
cd "${_pkgbase}"
|
||||||
|
|
||||||
make DESTDIR="${pkgdir}" install
|
make DESTDIR="${pkgdir}" install
|
||||||
|
rm -rv "${pkgdir}"/{run,var}
|
||||||
|
|
||||||
mv "${pkgdir}"/usr/sbin/* "${pkgdir}"/usr/bin/
|
python -m compileall -d /usr/lib "${pkgdir}/usr/lib"
|
||||||
mv "${pkgdir}"/usr/libexec/tuned/* "${pkgdir}"/usr/lib/tuned/
|
python -O -m compileall -d /usr/lib "${pkgdir}/usr/lib"
|
||||||
rm -r "${pkgdir}"/run "${pkgdir}"/usr/sbin "${pkgdir}"/usr/libexec
|
|
||||||
install -Dm 0644 "${srcdir}"/${pkgname}/tuned.service "${pkgdir}"/usr/lib/systemd/system/tuned.service
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
package_tuned-ppd-git() {
|
||||||
|
pkgdesc='Daemon that allows applications to easily transition to TuneD from power-profiles-daemon (PPD)'
|
||||||
|
depends=("${_pkgbase}")
|
||||||
|
provides=("${_pkgbase}-ppd" 'power-profiles-daemon')
|
||||||
|
conflicts=("${_pkgbase}-ppd" 'power-profiles-daemon')
|
||||||
|
backup=('etc/tuned/ppd.conf')
|
||||||
|
options=('!emptydirs')
|
||||||
|
|
||||||
|
cd "${_pkgbase}"
|
||||||
|
|
||||||
|
make DESTDIR="${pkgdir}" install-ppd
|
||||||
|
}
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
post_install() {
|
|
||||||
systemd-tmpfiles --create tuned.conf
|
|
||||||
}
|
|
Loading…
Reference in a new issue