mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
community/linux-tools to 3.8-1
This commit is contained in:
parent
546b6db4fd
commit
fafba17234
6 changed files with 20 additions and 79 deletions
|
@ -1,13 +1,17 @@
|
|||
# $Id$
|
||||
# Maintainer: Sébastien Luttringer <seblu@archlinux.org>
|
||||
# Maintainer: Sébastien Luttringer
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - removed x86_energy_perf_policy build/package, uses x86 asm
|
||||
|
||||
pkgbase=linux-tools
|
||||
pkgname=('linux-tools-meta' 'libtraceevent' 'perf' 'cpupower' 'usbip')
|
||||
pkgver=3.7
|
||||
pkgrel=7
|
||||
pkgname=('linux-tools-meta'
|
||||
'libtraceevent'
|
||||
'perf'
|
||||
'cpupower'
|
||||
'usbip')
|
||||
pkgver=3.8
|
||||
pkgrel=1
|
||||
license=('GPL2')
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://www.kernel.org'
|
||||
|
@ -23,23 +27,16 @@ makedepends+=('pciutils')
|
|||
makedepends+=('glib2' 'sysfsutils')
|
||||
groups=("$pkgbase")
|
||||
source=("http://ftp.kernel.org/pub/linux/kernel/v3.x/linux-$pkgver.tar.xz"
|
||||
"http://ftp.kernel.org/pub/linux/kernel/v3.x/patch-$pkgver.6.xz"
|
||||
'cpupower.conf'
|
||||
'cpupower.rc'
|
||||
# "http://ftp.kernel.org/pub/linux/kernel/v3.x/patch-$pkgver.6.xz"
|
||||
'cpupower.default'
|
||||
'cpupower.systemd'
|
||||
'cpupower.service'
|
||||
'usbipd.conf'
|
||||
'usbipd.rc'
|
||||
'usbipd.service')
|
||||
md5sums=('21223369d682bcf44bcdfe1521095983'
|
||||
'ec61c44f37585a768d41c0439101ef9c'
|
||||
'56883c159381ba89e50ab8ea65efec77'
|
||||
'5fc1fcda4cef93f16e752b1931db23e3'
|
||||
'c0d17b5295fe964623c772a2dd981771'
|
||||
'2450e8ff41b30eb58d43b5fffbfde1f4'
|
||||
'e8fac9c45a628015644b4150b139278a'
|
||||
'8a3831d962ff6a9968c0c20fd601cdec'
|
||||
'a8fb0c6159bee1b9e345a87cabb3ba27')
|
||||
sha256sums=('e070d1bdfbded5676a4f374721c63565f1c969466c5a3e214004a136b583184b'
|
||||
'4fa509949d6863d001075fa3e8671eff2599c046d20c98bb4a70778595cd1c3f'
|
||||
'fbf6e0ce6eb0ef15703fe212958de6ca46e62188900b5e9f9272ed3cc9cfd54e'
|
||||
'a89284d0ecb556ca53a66d1c2087b5fd6d0a901ab2769cd3aebb93f4478905dc'
|
||||
'8053a6bcd0776a7fefccc5012f93a1710653529e0eab59afcc39f24361c64869')
|
||||
|
||||
build() {
|
||||
# apply stable patching set
|
||||
|
@ -85,7 +82,7 @@ build() {
|
|||
package_linux-tools-meta() {
|
||||
pkgdesc='Linux kernel tools meta package'
|
||||
groups=()
|
||||
depends=('libtraceevent' 'perf' 'cpupower' 'x86_energy_perf_policy' 'usbip' 'lguest')
|
||||
depends=('libtraceevent' 'perf' 'cpupower' 'usbip')
|
||||
}
|
||||
|
||||
package_libtraceevent() {
|
||||
|
@ -118,7 +115,7 @@ package_perf() {
|
|||
|
||||
package_cpupower() {
|
||||
pkgdesc='Linux kernel tool to examine and tune power saving related features of your processor'
|
||||
backup=('etc/conf.d/cpupower')
|
||||
backup=('etc/default/cpupower')
|
||||
depends=('bash' 'pciutils')
|
||||
conflicts=('cpufrequtils')
|
||||
replaces=('cpufrequtils')
|
||||
|
@ -132,8 +129,7 @@ package_cpupower() {
|
|||
install install-man
|
||||
popd
|
||||
# install startup scripts
|
||||
install -Dm 755 $pkgname.rc "$pkgdir/etc/rc.d/$pkgname"
|
||||
install -Dm 644 $pkgname.conf "$pkgdir/etc/conf.d/$pkgname"
|
||||
install -Dm 644 $pkgname.default "$pkgdir/etc/default/$pkgname"
|
||||
install -Dm 644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
||||
install -Dm 755 $pkgname.systemd "$pkgdir/usr/lib/systemd/scripts/$pkgname"
|
||||
}
|
||||
|
@ -149,9 +145,7 @@ package_usbip() {
|
|||
# module loading
|
||||
install -Dm 644 /dev/null "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
|
||||
printf 'usbip-core\nusbip-host\n' > "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
|
||||
# install daemon scripts
|
||||
install -Dm 755 usbipd.rc "$pkgdir/etc/rc.d/usbipd"
|
||||
install -Dm 644 usbipd.conf "$pkgdir/etc/conf.d/usbipd"
|
||||
# systemd
|
||||
install -Dm 644 usbipd.service "$pkgdir/usr/lib/systemd/system/usbipd.service"
|
||||
}
|
||||
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. /etc/rc.conf
|
||||
. /etc/rc.d/functions
|
||||
|
||||
case "$1" in
|
||||
start|restart)
|
||||
status 'Setting cpupower rules' /usr/lib/systemd/scripts/cpupower || exit 1
|
||||
;;
|
||||
*)
|
||||
echo "usage: ${0##*/} {start|restart}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# vim:set ts=2 sw=2 ft=sh et:
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
. /etc/conf.d/cpupower
|
||||
. /etc/default/cpupower
|
||||
|
||||
declare -i fail=0
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
# vim:set ts=2 sw=2 ft=sh noet:
|
||||
|
||||
DAEMON_OPTS=''
|
|
@ -1,34 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. /etc/rc.conf
|
||||
. /etc/rc.d/functions
|
||||
. /etc/conf.d/${0##*/}
|
||||
|
||||
DAEMON=/usr/sbin/usbipd
|
||||
PID=$(pidof -o %PPID $DAEMON)
|
||||
DAEMON_OPTS="--daemon $DAEMON_OPTS"
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
stat_busy "Starting ${0##*/} daemon"
|
||||
[[ ! $PID ]] && $DAEMON $DAEMON_OPTS && add_daemon ${0##*/} && stat_done && exit 0
|
||||
stat_fail
|
||||
;;
|
||||
stop)
|
||||
stat_busy "Stopping ${0##*/} daemon"
|
||||
[[ $PID ]] && kill $PID &> /dev/null && rm_daemon ${0##*/} && stat_done && exit 0
|
||||
stat_fail
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo "usage: ${0##*/} {start|stop|restart}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 1
|
||||
|
||||
# vim:set ts=2 sw=2 ft=sh et:
|
Loading…
Reference in a new issue