community/linux-tools to 4.5-2

This commit is contained in:
Kevin Mihelich 2016-04-17 12:40:18 +00:00
parent 76a054e60c
commit 16bca9980e
3 changed files with 13 additions and 12 deletions

View file

@ -17,7 +17,7 @@ pkgname=(
'usbip'
)
pkgver=4.5
pkgrel=1
pkgrel=2
license=('GPL2')
arch=('i686' 'x86_64')
url='http://www.kernel.org'
@ -44,8 +44,8 @@ source=("https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${pkgver}.tar.xz"
'04-fix-usip-h-path.patch')
md5sums=('SKIP'
'56883c159381ba89e50ab8ea65efec77'
'7e0710c2f31c1eb1e1417a7972e676b1'
'2450e8ff41b30eb58d43b5fffbfde1f4'
'34f5ecc19770a1abbcd0fd65bfd1f065'
'86c4e419e4ba80835c330d49ba3f56ad'
'bb35634f480325a78b943f7e10165e86'
'1bc4f8c7a21a30e1a873d07e69fb698b'
'a73ea3ea6d9c9ecb1cc910871eead3ff')
@ -71,9 +71,9 @@ build() {
msg2 'perf'
pushd linux-$pkgver/tools/perf
make \
prefix=/usr \
DESTDIR="$pkgdir" \
WERROR=0 \
DESTDIR="$pkgdir/usr" \
perfexecdir='lib/perf' \
PYTHON=python2 \
PYTHON_CONFIG=python2-config \
PERF_VERSION=$pkgver-$pkgrel \
@ -138,17 +138,19 @@ package_perf() {
cd linux-$pkgver/tools/perf
make \
prefix=/usr \
DESTDIR="$pkgdir" \
WERROR=0 \
DESTDIR="$pkgdir/usr" \
perfexecdir='lib/perf' \
PYTHON=python2 \
PYTHON_CONFIG=python2-config \
PERF_VERSION=$pkgver-$pkgrel \
install install-man
# move completion in new directory
cd "$pkgdir"
install -Dm644 usr/etc/bash_completion.d/perf usr/share/bash-completion/completions/perf
rm -r usr/etc
# move completion in new directory
install -Dm644 etc/bash_completion.d/perf usr/share/bash-completion/completions/perf
rm -r etc
# no exec on usr/share
find usr/share -type f -exec chmod a-x {} \;
}
package_cpupower() {

View file

@ -3,6 +3,7 @@ Description=Apply cpupower configuration
[Service]
Type=oneshot
EnvironmentFile=/etc/default/cpupower
ExecStart=/usr/lib/systemd/scripts/cpupower
RemainAfterExit=yes

View file

@ -1,7 +1,5 @@
#!/bin/bash
. /etc/default/cpupower
declare -i fail=0
# parse frequency options