[arch-commits] Commit in (5 files)
David Runge
dvzrv at archlinux.org
Fri Nov 27 18:40:12 UTC 2020
Date: Friday, November 27, 2020 @ 18:40:11
Author: dvzrv
Revision: 764604
Add trace-cmd from the AUR.
Added:
trace-cmd/
trace-cmd/repos/
trace-cmd/trunk/
trace-cmd/trunk/PKGBUILD
trace-cmd/trunk/trace-cmd-2.9-make_install.patch
----------------------------------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++
trace-cmd-2.9-make_install.patch | 12 ++++++++++
2 files changed, 55 insertions(+)
Added: trace-cmd/trunk/PKGBUILD
===================================================================
--- trace-cmd/trunk/PKGBUILD (rev 0)
+++ trace-cmd/trunk/PKGBUILD 2020-11-27 18:40:11 UTC (rev 764604)
@@ -0,0 +1,43 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=trace-cmd
+pkgver=2.9.1
+pkgrel=2
+pkgdesc="Interact with Ftrace Linux kernel internal tracer"
+arch=('x86_64')
+url="https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git"
+license=('GPL2' 'LGPL2.1')
+depends=('glibc')
+makedepends=('audit' 'python' 'swig' 'asciidoc')
+optdepends=('python: for Python plugins')
+source=("https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/trace-cmd-v${pkgver}.tar.gz"
+ "${pkgname}-2.9-make_install.patch")
+sha512sums=('186bfdd8ff1e88e9e6d3ae87b123f049892deaaa8d6a42944b6f8abee6b828946b88774029aa96daf4423a3dfc01b42835508f44f636dd02579ef9a8ef425131'
+ 'c9321b2b885d88557a057d7064690274799ab1d67a8babb78b1c54c4d81546fdea7313286cfd5fb9efbbcf87cf8394dcb17202ac88434a351aa652e7109e1db6')
+b2sums=('f7aa2f12b2c90f35390857ed6f5818b74c42be36ce70835d86410f9f4931d27410123baaad007fa2795c1ba1f5bafc739db620f467ccc48021d774ee7be8a68d'
+ '8a644be295417b1fd5fb807285a7176ef0ceb737352bbb4c7a88441f9b955a90befe974d890a58f2b8fb6de8a68a1b3c5d207f057c4b08db79caf6e97fa66f50')
+
+prepare() {
+ mv -v "${pkgname}-v${pkgver}" "${pkgname}-${pkgver}"
+ cd "${pkgname}-${pkgver}"
+ patch -Np1 -i "../${pkgname}-2.9-make_install.patch"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ export PYTHON_VERS=python3
+ make trace-cmd doc
+}
+
+package() {
+ depends+=('libaudit.so')
+
+ cd "${pkgname}-${pkgver}"
+ make prefix="/usr" \
+ DESTDIR="${pkgdir}/" \
+ install install_doc
+ install -vDm 644 tracecmd/${pkgname}.bash \
+ "${pkgdir}/usr/share/bash/bash-completion/completions/${pkgname}"
+ # removing python2 script
+ rm -v "${pkgdir}/usr/lib/trace-cmd/python/event-viewer.py"
+}
Added: trace-cmd/trunk/trace-cmd-2.9-make_install.patch
===================================================================
--- trace-cmd/trunk/trace-cmd-2.9-make_install.patch (rev 0)
+++ trace-cmd/trunk/trace-cmd-2.9-make_install.patch 2020-11-27 18:40:11 UTC (rev 764604)
@@ -0,0 +1,12 @@
+diff -ruN a/Makefile b/Makefile
+--- a/Makefile 2020-07-17 17:14:20.000000000 +0200
++++ b/Makefile 2020-07-18 10:37:32.898885286 +0200
+@@ -398,7 +398,7 @@
+ install_bash_completion: force
+ $(Q)$(call do_install_data,$(src)/tracecmd/trace-cmd.bash,$(BASH_COMPLETE_DIR))
+
+-install_cmd: all_cmd install_plugins install_python install_bash_completion
++install_cmd: all_cmd install_plugins install_python
+ $(Q)$(call do_install,$(obj)/tracecmd/trace-cmd,$(bindir_SQ))
+
+ install: install_cmd
More information about the arch-commits
mailing list