summaryrefslogtreecommitdiff
path: root/libre/linux-libre-tools
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-15 02:31:42 -0800
committerroot <root@rshg054.dnsready.net>2012-12-15 02:31:42 -0800
commita829a3b1a4b3eefc7adb1d630f071247e79b9f72 (patch)
tree486be176b9303db0602521e1078dff6d5b04fb71 /libre/linux-libre-tools
parent1b9faba25721b73f30e49f0cea9c7346eedd0f73 (diff)
Sat Dec 15 02:25:53 PST 2012
Diffstat (limited to 'libre/linux-libre-tools')
-rw-r--r--libre/linux-libre-tools/PKGBUILD30
1 files changed, 24 insertions, 6 deletions
diff --git a/libre/linux-libre-tools/PKGBUILD b/libre/linux-libre-tools/PKGBUILD
index d3154ac86..68b75c631 100644
--- a/libre/linux-libre-tools/PKGBUILD
+++ b/libre/linux-libre-tools/PKGBUILD
@@ -3,12 +3,12 @@
# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
pkgbase=linux-libre-tools
-pkgname=('perf-libre' 'cpupower-libre' 'x86_energy_perf_policy-libre' 'usbip-libre')
-_basekernel=3.6
+pkgname=('libtraceevent-libre' 'perf-libre' 'cpupower-libre' 'x86_energy_perf_policy-libre' 'usbip-libre')
+_basekernel=3.7
#_sublevel=1
#pkgver=${_basekernel}.${_sublevel}
pkgver=${_basekernel}
-pkgrel=1
+pkgrel=2
license=('GPL2')
arch=('i686' 'x86_64' 'mips64el')
url='http://linux-libre.fsfla.org/'
@@ -17,7 +17,7 @@ options=('!strip')
# kernel source deps
makedepends=('asciidoc' 'xmlto')
# perf-libre deps
-makedepends+=('perl' 'python2' 'libnewt' 'elfutils')
+makedepends+=('perl' 'python2' 'libnewt' 'elfutils' 'audit' 'libunwind')
# cpupower-libre deps
makedepends+=('pciutils')
# usbip-libre deps
@@ -32,7 +32,7 @@ source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_basekernel}-gn
'usbipd.conf'
'usbipd.rc'
'usbipd.service')
-md5sums=('a2312edd0265b5b07bd4b50afae2b380'
+md5sums=('06bf9601d859531e7378eb43d4ca7dd3'
'56883c159381ba89e50ab8ea65efec77'
'5fc1fcda4cef93f16e752b1931db23e3'
'c0d17b5295fe964623c772a2dd981771'
@@ -48,6 +48,11 @@ build() {
patch -Np1 -i "${srcdir}/patch-${_basekernel}-gnu-${pkgver}-gnu"
fi
+ msg2 'Build libtraceevent-libre'
+ pushd linux-$pkgver/tools/lib/traceevent
+ make
+ popd
+
msg2 'Build perf-libre'
pushd linux-$pkgver/tools/perf
make \
@@ -74,15 +79,28 @@ build() {
msg2 'Build usbip-libre'
pushd linux-$pkgver/drivers/staging/usbip/userspace
+ # fix missing man page
+ sed -i 's/usbip_bind_driver.8//' Makefile.am
./autogen.sh
./configure --prefix=/usr
make
popd
}
+package_libtraceevent-libre() {
+ pkgdesc='Linux-libre kernel trace event library'
+ replaces=('libtraceevent')
+ conflicts=('libtraceevent')
+ provides=("libtraceevent=$pkgver")
+
+ cd linux-$pkgver/tools/lib/traceevent
+ install -dm 755 "$pkgdir/usr/lib"
+ install -m 644 libtraceevent.a libtraceevent.so "$pkgdir/usr/lib"
+}
+
package_perf-libre() {
pkgdesc='Linux-libre kernel performance auditing tool'
- depends=('perl' 'python2' 'libnewt' 'elfutils')
+ depends=('perl' 'python2' 'libnewt' 'elfutils' 'audit' 'libunwind')
replaces=('perf')
conflicts=('perf')
provides=("perf=$pkgver")