Created
January 20, 2019 09:43
-
-
Save alanorth/8bd848424387120fbebc22ec9c0b37e9 to your computer and use it in GitHub Desktop.
Arch Linux PKGBUILD for tuned 2.10.0 using Python 2.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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