[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
140/244: gnu: Add bpftool.
From: |
guix-commits |
Subject: |
140/244: gnu: Add bpftool. |
Date: |
Wed, 12 Apr 2023 08:49:06 -0400 (EDT) |
apteryx pushed a commit to branch staging
in repository guix.
commit a9751b3a83243b823a1827c433b5a6c698dff75a
Author: Ryan Sundberg <ryan@arctype.co>
AuthorDate: Thu Dec 29 02:53:51 2022 -0800
gnu: Add bpftool.
* gnu/packages/linux.scm (bpftool): New variable.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/linux.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 6d74961d03..3285fb4ca2 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -61,6 +61,7 @@
;;; Copyright © 2021 Olivier Dion <olivier.dion@polymtl.ca>
;;; Copyright © 2021 Solene Rapenne <solene@perso.pw>
;;; Copyright © 2021, 2022 Petr Hodina <phodina@protonmail.com>
+;;; Copyright © 2021 Ryan Sundberg <ryan@arctype.co>
;;; Copyright © 2022 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;; Copyright © 2022 Rene Saavedra <nanuui@protonmail.com>
;;; Copyright © 2022 muradm <mail@muradm.net>
@@ -9466,6 +9467,44 @@ that was first added to Linux 3.15. Much of what BCC
uses requires Linux 4.1
and above.")
(license license:asl2.0)))
+(define-public bpftool
+ (package
+ (name "bpftool")
+ (version (package-version linux-libre))
+ (source (package-source linux-libre))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f ;This package has no tests.
+ #:phases (modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'build
+ (lambda* (#:key inputs #:allow-other-keys)
+ (invoke "make" "-C" "tools/bpf/bpftool"
+ ,(string-append "CC=" (cc-for-target)))))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out")))
+ (mkdir-p (string-append out "/sbin"))
+ (mkdir-p (string-append out
+ "/share/bash-completion/completions"))
+ (invoke "make"
+ (string-append "prefix=" out)
+ (string-append
+ "bash_compdir=" out
+ "/share/bash-completion/completions")
+ "-C" "tools/bpf/bpftool"
+ "install")))))))
+ (inputs (list elfutils ;provides libelf
+ readline libcap zlib))
+ (native-inputs (list bison python-3))
+ ;; This tool does not have a proper web page.
+ (home-page
+
"https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/tree/tools/bpf/bpftool")
+ (synopsis "Tool for inspection and manipulation of eBPF programs and maps")
+ (description "@command{bpftool} allows for inspection and simple
+modification of BPF objects on the system.")
+ (license (package-license linux-libre))))
+
(define-public bpftrace
(package
(name "bpftrace")
- 110/244: gnu: r-dials: Update to 1.2.0., (continued)
- 110/244: gnu: r-dials: Update to 1.2.0., guix-commits, 2023/04/12
- 114/244: gnu: r-ggh4x: Update to 0.2.4., guix-commits, 2023/04/12
- 116/244: gnu: r-gstat: Update to 2.1-1., guix-commits, 2023/04/12
- 118/244: gnu: r-matrix: Update to 1.5-4., guix-commits, 2023/04/12
- 112/244: gnu: r-densestbayes: Update to 1.0-2.2., guix-commits, 2023/04/12
- 122/244: gnu: r-sn: Update to 2.1.1., guix-commits, 2023/04/12
- 135/244: gnu: linux-libre-lts: Update to 6.1., guix-commits, 2023/04/12
- 136/244: news: Add entry for the linux-libre-lts 6.1 update., guix-commits, 2023/04/12
- 137/244: gnu: hwloc: Update to 2.9.1., guix-commits, 2023/04/12
- 139/244: gnu: erlang: Update to 25.3., guix-commits, 2023/04/12
- 140/244: gnu: Add bpftool.,
guix-commits <=
- 145/244: services: base: Remove 'console-keymap-service-type' variable., guix-commits, 2023/04/12
- 150/244: services: desktop: Remove 'xfce-desktop-service' procedure., guix-commits, 2023/04/12
- 143/244: services: ntp-service-type: Remove deprecated server as strings support., guix-commits, 2023/04/12
- 215/244: gnu: cwm: Fix build., guix-commits, 2023/04/12
- 156/244: gnu: zrythm: Update to 1.0.0-beta.4.5.62., guix-commits, 2023/04/12
- 141/244: gnu: Purge pre-1.3.0 deprecated packages., guix-commits, 2023/04/12
- 178/244: nls: Make sure gnu/home/services/*.scm files are translatable., guix-commits, 2023/04/12
- 189/244: gnu: fcitx5-qt: Update to 5.0.17., guix-commits, 2023/04/12
- 190/244: gnu: fcitx5-anthy: Update to 5.0.14., guix-commits, 2023/04/12
- 225/244: doc: Regarding SSL certs, clarify when we write about Guix System., guix-commits, 2023/04/12