Skip to content

Instantly share code, notes, and snippets.

@alanorth alanorth/PKGBUILD
Created Jan 20, 2019

Embed
What would you like to do?
Arch Linux PKGBUILD for tuned 2.10.0 using Python 2.
# Maintainer: Manuel Hüsers <manuel.huesers@uni-ol.de>
# Contributor: Iwan Timmer <irtimmer@gmail.com>
# Contributor: Timothée Ravier <tim at siosm dot fr>
# Contributor: Tom <reztho at archlinux dot org>
pkgname=tuned
pkgver=2.10.0
pkgrel=1
pkgdesc='Daemon that performs monitoring and adaptive configuration of devices in the system'
arch=('any')
url="https://github.com/redhat-performance/${pkgname}"
license=('GPL')
depends=('python2-decorator' 'python2-pyudev' 'python2-configobj' 'python2-schedutils' 'python2-linux-procfs' 'python2-perf' 'python2-dbus' 'python2-gobject' 'ethtool' 'gawk' 'hdparm' 'util-linux' 'dbus' 'polkit')
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=('bf7dbfee3731cbbce3f396b26a2a3315d5b4f61674acd3786dfd1730988482f9')
package() {
cd "${pkgname}-${pkgver}"
make PYTHON=python2 DESTDIR="${pkgdir}" install
mv "${pkgdir}"/usr/sbin/* "${pkgdir}"/usr/bin/
mv "${pkgdir}"/usr/libexec/tuned/* "${pkgdir}"/usr/lib/tuned/
rm -r "${pkgdir}"/run "${pkgdir}"/usr/sbin "${pkgdir}"/usr/libexec
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/tuned.service" "${pkgdir}/usr/lib/systemd/system/tuned.service"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.