diff options
author | root <root@rshg054.dnsready.net> | 2013-01-25 00:06:28 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-01-25 00:06:28 -0800 |
commit | ef71629a65f6e8052d66775f07b079bf08322476 (patch) | |
tree | edd2ad98fa5697fc7a95e3eed0a8902656e55fde /community/linux-tools | |
parent | 570e3637e2a4ba372dabbbbb8953d7b4ccdcaa39 (diff) |
Fri Jan 25 00:06:28 PST 2013
Diffstat (limited to 'community/linux-tools')
-rw-r--r-- | community/linux-tools/PKGBUILD | 29 | ||||
-rw-r--r-- | community/linux-tools/cpupower.default | 29 | ||||
-rw-r--r-- | community/linux-tools/cpupower.systemd | 2 | ||||
-rw-r--r-- | community/linux-tools/usbipd.service | 1 |
4 files changed, 41 insertions, 20 deletions
diff --git a/community/linux-tools/PKGBUILD b/community/linux-tools/PKGBUILD index 47e98a72f..469f475a4 100644 --- a/community/linux-tools/PKGBUILD +++ b/community/linux-tools/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 81357 2012-12-18 14:01:44Z seblu $ -# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org> +# $Id: PKGBUILD 82779 2013-01-24 12:23:58Z seblu $ +# Maintainer: Sébastien Luttringer <seblu@archlinux.org> pkgbase=linux-tools pkgname=('libtraceevent' 'perf' 'cpupower' 'x86_energy_perf_policy' 'usbip') pkgver=3.7 -pkgrel=3 +pkgrel=4 license=('GPL2') arch=('i686' 'x86_64') url='http://www.kernel.org' @@ -21,22 +21,16 @@ 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.1.xz" - 'cpupower.conf' - 'cpupower.rc' + 'cpupower.default' 'cpupower.systemd' 'cpupower.service' - 'usbipd.conf' - 'usbipd.rc' 'usbipd.service') md5sums=('21223369d682bcf44bcdfe1521095983' '48f5f530b048e387e978e3e49de7742a' '56883c159381ba89e50ab8ea65efec77' - '5fc1fcda4cef93f16e752b1931db23e3' - 'c0d17b5295fe964623c772a2dd981771' + '7e0710c2f31c1eb1e1417a7972e676b1' '2450e8ff41b30eb58d43b5fffbfde1f4' - 'e8fac9c45a628015644b4150b139278a' - '8a3831d962ff6a9968c0c20fd601cdec' - 'ba7c1c513314dd21fb2334fb8417738f') + 'a8fb0c6159bee1b9e345a87cabb3ba27') build() { # apply stable patching set @@ -95,7 +89,7 @@ package_libtraceevent() { package_perf() { pkgdesc='Linux kernel performance auditing tool' - depends=('perl' 'python2' 'libnewt' 'elfutils' 'audit' 'libunwind') + depends=('perl' 'python2' 'libnewt' 'elfutils' 'audit' 'libunwind' 'binutils') cd linux-$pkgver/tools/perf make \ @@ -110,7 +104,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') @@ -123,8 +117,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 +142,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" } diff --git a/community/linux-tools/cpupower.default b/community/linux-tools/cpupower.default new file mode 100644 index 000000000..b5c522ea1 --- /dev/null +++ b/community/linux-tools/cpupower.default @@ -0,0 +1,29 @@ +# Define CPUs governor +# valid governors: ondemand, performance, powersave, conservative, userspace. +#governor='ondemand' + +# Limit frequency range +# Valid suffixes: Hz, kHz (default), MHz, GHz, THz +#min_freq="2.25GHz" +#max_freq="3GHz" + +# Specific frequency to be set. +# Requires userspace governor to be available. +# Do not set governor field if you use this one. +#freq= + +# Utilizes cores in one processor package/socket first before processes are +# scheduled to other processor packages/sockets. +# See man (1) CPUPOWER-SET for additional details. +#mc_scheduler= + +# Utilizes thread siblings of one processor core first before processes are +# scheduled to other cores. See man (1) CPUPOWER-SET for additional details. +#smp_scheduler= + +# Sets a register on supported Intel processore which allows software to convey +# its policy for the relative importance of performance versus energy savings to +# the processor. See man (1) CPUPOWER-SET for additional details. +#perf_bias= + +# vim:set ts=2 sw=2 ft=sh et: diff --git a/community/linux-tools/cpupower.systemd b/community/linux-tools/cpupower.systemd index f45b02bc8..51c645415 100644 --- a/community/linux-tools/cpupower.systemd +++ b/community/linux-tools/cpupower.systemd @@ -1,6 +1,6 @@ #!/bin/bash -. /etc/conf.d/cpupower +. /etc/default/cpupower declare -i fail=0 diff --git a/community/linux-tools/usbipd.service b/community/linux-tools/usbipd.service index ac2f5f7c1..1f3da08db 100644 --- a/community/linux-tools/usbipd.service +++ b/community/linux-tools/usbipd.service @@ -1,5 +1,6 @@ [Unit] Description=USB/IP server +After=network.target [Service] ExecStart=/usr/sbin/usbipd |