New package: dtrace-utils-2.0.2

This commit is contained in:
Leah Neukirchen 2024-12-11 23:17:41 +01:00
parent c1a162e68b
commit 2f8c120444
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- a/configure
+++ b/configure
@@ -173,7 +173,7 @@
HAVE_BPFV3=*) write_config_var BPFV3 "$option";;
HAVE_BPFMASM=*) write_config_var BPFMASM "$option";;
*) echo "Unknown option $option" >&2
- exit 1;;
+ ;;
esac
done

View file

@ -0,0 +1,29 @@
# Template file for 'dtrace-utils'
pkgname=dtrace-utils
version=2.0.2
revision=1
archs="~*-musl" # ld.so internals, other glibc specifics
build_style=gnu-configure
hostmakedepends="cross-bpf-binutils cross-bpf-gcc flex libgomp-devel pkg-config
shadow"
makedepends="binutils-devel elfutils-devel fuse-devel libbpf-devel libpcap-devel
libpfm4-devel valgrind-devel"
short_desc="Linux version of the DTrace tracing tool"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="UPL-1.0"
homepage="https://github.com/oracle/dtrace-utils"
distfiles="https://github.com/oracle/dtrace-utils/archive/refs/tags/${version}.tar.gz"
checksum=0636546b8286d67de0e41148f5c73cf8f4339f5989da3113442eb51421bc4916
nostrip_files="bpf_dlib.o libdtrace.so.2.0.0"
make_check=no # needs root
nocross=yes # mkoffsets
conflicts="systemtap>=0"
export BPFC="bpf-gcc"
export BPFLD="bpf-ld"
post_install() {
rm ${DESTDIR}/usr/share/doc/dtrace-*/showUSDT
mv ${DESTDIR}/lib64/* ${DESTDIR}/usr/lib/
rmdir ${DESTDIR}/lib64
}