summaryrefslogtreecommitdiff
path: root/community/linux-tools
diff options
context:
space:
mode:
Diffstat (limited to 'community/linux-tools')
-rw-r--r--community/linux-tools/PKGBUILD141
-rw-r--r--community/linux-tools/cpupower.conf29
-rw-r--r--community/linux-tools/cpupower.pmutils37
-rw-r--r--community/linux-tools/cpupower.rc16
-rw-r--r--community/linux-tools/cpupower.service10
-rw-r--r--community/linux-tools/cpupower.systemd32
-rw-r--r--community/linux-tools/usbipd.conf3
-rw-r--r--community/linux-tools/usbipd.rc34
-rw-r--r--community/linux-tools/usbipd.service8
9 files changed, 0 insertions, 310 deletions
diff --git a/community/linux-tools/PKGBUILD b/community/linux-tools/PKGBUILD
deleted file mode 100644
index a5d361ee0..000000000
--- a/community/linux-tools/PKGBUILD
+++ /dev/null
@@ -1,141 +0,0 @@
-# $Id: PKGBUILD 76842 2012-10-01 03:29:15Z seblu $
-# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
-
-pkgbase=linux-tools
-pkgname=('perf' 'cpupower' 'x86_energy_perf_policy' 'usbip')
-pkgver=3.6
-pkgrel=1
-license=('GPL2')
-arch=('i686' 'x86_64')
-url='http://www.kernel.org'
-options=('!strip')
-# split packages need all package dependencies set manually in makedepends
-# kernel source deps
-makedepends=('asciidoc' 'xmlto')
-# perf deps
-makedepends+=('perl' 'python2' 'libnewt' 'elfutils')
-# cpupower deps
-makedepends+=('pciutils')
-# usbip deps
-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.4.xz"
- 'cpupower.conf'
- 'cpupower.rc'
- 'cpupower.systemd'
- 'cpupower.service'
- 'usbipd.conf'
- 'usbipd.rc'
- 'usbipd.service')
-md5sums=('1a1760420eac802c541a20ab51a093d1'
- '56883c159381ba89e50ab8ea65efec77'
- '5fc1fcda4cef93f16e752b1931db23e3'
- 'c0d17b5295fe964623c772a2dd981771'
- '2450e8ff41b30eb58d43b5fffbfde1f4'
- 'e8fac9c45a628015644b4150b139278a'
- '8a3831d962ff6a9968c0c20fd601cdec'
- 'ba7c1c513314dd21fb2334fb8417738f')
-
-build() {
- # apply stable patching set
- if (( NOEXTRACT == 0 )) && [[ -e "$srcdir"/patch-* ]]; then
- msg2 'Applying stable patch set'
- patch -N -p1 -i "$srcdir"/patch-*
- fi
-
- msg2 'Build perf'
- pushd linux-$pkgver/tools/perf
- make \
- WERROR=0 \
- DESTDIR="$pkgdir/usr" \
- perfexecdir='lib/perf' \
- PYTHON=python2 \
- NO_GTK2=1 \
- PERF_VERSION=$pkgver-$pkgrel \
- all man
- popd
-
- msg2 'Build cpupower'
- pushd linux-$pkgver/tools/power/cpupower
- # we cannot use --as-needed
- LDFLAGS=${LDFLAGS:+"$LDFLAGS,--no-as-needed"}
- make VERSION=$pkgver-$pkgrel
- popd
-
- msg2 'Build x86_energy_perf_policy'
- pushd linux-$pkgver/tools/power/x86/x86_energy_perf_policy
- make
- popd
-
- msg2 'Build usbip'
- pushd linux-$pkgver/drivers/staging/usbip/userspace
- ./autogen.sh
- ./configure --prefix=/usr
- make
- popd
-}
-
-package_perf() {
- pkgdesc='Linux kernel performance auditing tool'
- depends=('perl' 'python2' 'libnewt' 'elfutils')
-
- cd linux-$pkgver/tools/perf
- make \
- WERROR=0 \
- DESTDIR="$pkgdir/usr" \
- perfexecdir='lib/perf' \
- PYTHON=python2 \
- NO_GTK2=1 \
- PERF_VERSION=$pkgver-$pkgrel \
- install install-man
-}
-
-package_cpupower() {
- pkgdesc='Linux kernel tool to examine and tune power saving related features of your processor'
- backup=('etc/conf.d/cpupower')
- depends=('bash' 'pciutils')
- conflicts=('cpufrequtils')
- replaces=('cpufrequtils')
-
- pushd linux-$pkgver/tools/power/cpupower
- make \
- DESTDIR="$pkgdir" \
- mandir='/usr/share/man' \
- docdir='/usr/share/doc/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.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
- install -Dm 755 $pkgname.systemd "$pkgdir/usr/lib/systemd/scripts/$pkgname"
-}
-
-package_x86_energy_perf_policy() {
- pkgdesc='Read or write MSR_IA32_ENERGY_PERF_BIAS'
- depends=('glibc')
-
- cd linux-$pkgver/tools/power/x86/x86_energy_perf_policy
- install -Dm 755 x86_energy_perf_policy "$pkgdir/usr/bin/x86_energy_perf_policy"
- install -Dm 644 x86_energy_perf_policy.8 "$pkgdir/usr/share/man/man8/x86_energy_perf_policy.8"
-}
-
-package_usbip() {
- pkgdesc='An USB device sharing system over IP network'
- depends=('glib2' 'sysfsutils')
- options=('!libtool')
-
- pushd linux-$pkgver/drivers/staging/usbip/userspace
- make install DESTDIR="$pkgdir"
- popd
- # 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"
- install -Dm 644 usbipd.service "$pkgdir/usr/lib/systemd/system/usbipd.service"
-}
-
-# vim:set ts=2 sw=2 et:
diff --git a/community/linux-tools/cpupower.conf b/community/linux-tools/cpupower.conf
deleted file mode 100644
index b5c522ea1..000000000
--- a/community/linux-tools/cpupower.conf
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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.pmutils b/community/linux-tools/cpupower.pmutils
deleted file mode 100644
index fb93cd7c1..000000000
--- a/community/linux-tools/cpupower.pmutils
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-[[ -x /usr/bin/cpupower ]] || exit $NA
-
-CPUPOWER_GOVERNOR_AC=${CPUPOWER_GOVERNOR_AC:-ondemand}
-CPUPOWER_GOVERNOR_BAT=${CPUPOWER_GOVERNOR_BAT:-conservative}
-
-help() {
- cat <<EOF
---------
-$0: Select cpupower frequency governor.
-
-Parameters:
-CPUPOWER_GOVERNOR_AC = Governor to use on AC.
-Defaults to ondemand.
-
-CPUPOWER_GOVERNOR_BAT = Governor to use on battery.
-Defaults to conservative.
-
-EOF
-}
-
-cpupow() {
- printf 'Setting cpupower frequency governor to %s...' "$1"
- cpupower -c all frequency-set -g "$1"
-}
-
-case $1 in
- true) cpupow "$CPUPOWER_GOVERNOR_BAT" ;;
- false) cpupow "$CPUPOWER_GOVERNOR_AC" ;;
- help) help;;
- *) exit $NA ;;
-esac
-
-exit 0
-
-# vim:set ts=2 sw=2 ft=sh et:
diff --git a/community/linux-tools/cpupower.rc b/community/linux-tools/cpupower.rc
deleted file mode 100644
index 88edaf791..000000000
--- a/community/linux-tools/cpupower.rc
+++ /dev/null
@@ -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:
diff --git a/community/linux-tools/cpupower.service b/community/linux-tools/cpupower.service
deleted file mode 100644
index aaeba2b08..000000000
--- a/community/linux-tools/cpupower.service
+++ /dev/null
@@ -1,10 +0,0 @@
-[Unit]
-Description=Apply cpupower configuration
-
-[Service]
-Type=oneshot
-ExecStart=/usr/lib/systemd/scripts/cpupower
-RemainAfterExit=yes
-
-[Install]
-WantedBy=multi-user.target
diff --git a/community/linux-tools/cpupower.systemd b/community/linux-tools/cpupower.systemd
deleted file mode 100644
index f45b02bc8..000000000
--- a/community/linux-tools/cpupower.systemd
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-
-. /etc/conf.d/cpupower
-
-declare -i fail=0
-
-# parse frequency options
-declare -a params=()
-params+=(${governor:+-g $governor})
-params+=(${min_freq:+-d $min_freq})
-params+=(${max_freq:+-u $max_freq})
-params+=(${freq:+-f $freq})
-
-# apply frequency options
-if ((${#params[@]} > 0)); then
- cpupower frequency-set "${params[@]}" >/dev/null || fail=1
-fi
-
-# parse cpu options
-declare -a params=()
-params+=(${mc_scheduler:+-m $mc_scheduler})
-params+=(${smp_scheduler:+-s $smp_scheduler})
-params+=(${perf_bias:+-b $perf_bias})
-
-# apply cpu options
-if ((${#params[@]} > 0)); then
- cpupower set "${params[@]}" >/dev/null || fail=1
-fi
-
-exit $fail
-
-# vim:set ts=2 sw=2 ft=sh et:
diff --git a/community/linux-tools/usbipd.conf b/community/linux-tools/usbipd.conf
deleted file mode 100644
index 5990b857a..000000000
--- a/community/linux-tools/usbipd.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-# vim:set ts=2 sw=2 ft=sh noet:
-
-DAEMON_OPTS=''
diff --git a/community/linux-tools/usbipd.rc b/community/linux-tools/usbipd.rc
deleted file mode 100644
index 15a1bcf00..000000000
--- a/community/linux-tools/usbipd.rc
+++ /dev/null
@@ -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:
diff --git a/community/linux-tools/usbipd.service b/community/linux-tools/usbipd.service
deleted file mode 100644
index ac2f5f7c1..000000000
--- a/community/linux-tools/usbipd.service
+++ /dev/null
@@ -1,8 +0,0 @@
-[Unit]
-Description=USB/IP server
-
-[Service]
-ExecStart=/usr/sbin/usbipd
-
-[Install]
-WantedBy=multi-user.target