[arch-commits] Commit in linux-tools/trunk (PKGBUILD)

Sébastien Luttringer seblu at archlinux.org
Thu Jan 3 00:38:32 UTC 2019


    Date: Thursday, January 3, 2019 @ 00:38:31
  Author: seblu
Revision: 420290

upgpkg: linux-tools 4.20-1

Modified:
  linux-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-03 00:25:06 UTC (rev 420289)
+++ PKGBUILD	2019-01-03 00:38:31 UTC (rev 420290)
@@ -2,6 +2,7 @@
 
 pkgbase=linux-tools
 pkgname=(
+  'bpf'
   'cgroup_event_listener'
   'cpupower'
   'hyperv'
@@ -13,7 +14,7 @@
   'usbip'
   'x86_energy_perf_policy'
 )
-pkgver=4.19
+pkgver=4.20
 pkgrel=1
 license=('GPL2')
 arch=('x86_64')
@@ -117,6 +118,15 @@
   pushd linux/tools/hv
   CFLAGS+=' -DKVP_SCRIPTS_PATH=/usr/lib/hyperv/kvp_scripts/' make
   popd
+
+  msg2 'bpf'
+  pushd linux/tools/bpf
+  # doesn't compile when we don't first compile bpftool in its directory
+  cd bpftool
+  make
+  cd ..
+  make
+  popd
 }
 
 package_linux-tools-meta() {
@@ -123,6 +133,7 @@
   pkgdesc='Linux kernel tools meta package'
   groups=()
   depends=(
+    'bpf'
     'cgroup_event_listener'
     'cpupower'
     'hyperv'
@@ -256,4 +267,15 @@
   install -dm755 "$pkgdir/usr/lib/hyperv/kvp_scripts"
 }
 
+package_bpf() {
+  pkgdesc='BPF tools'
+  depends=('glibc')
+
+  cd linux/tools/bpf
+  make install prefix=/usr DESTDIR="$pkgdir"
+  # fix bpftool hard written path
+  mv "$pkgdir"/usr/sbin/bpftool "$pkgdir"/usr/bin/bpftool
+  rmdir "$pkgdir"/usr/sbin
+}
+
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list