diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/bpftrace/APKBUILD | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/testing/bpftrace/APKBUILD b/testing/bpftrace/APKBUILD index fbbd2bef32..bb44725457 100644 --- a/testing/bpftrace/APKBUILD +++ b/testing/bpftrace/APKBUILD @@ -2,17 +2,18 @@ # Maintainer: Konstantin Kulikov <k.kulikov2@gmail.com> pkgname=bpftrace pkgver=0.9.2 -pkgrel=0 +pkgrel=1 pkgdesc="High-level tracing language for Linux eBPF" url="https://github.com/iovisor/bpftrace" arch="x86_64" license="Apache-2.0" makedepends="cmake llvm8-dev llvm8-static clang-dev clang-static - flex-dev bison elfutils-dev linux-headers bcc" + flex-dev bison elfutils-dev linux-headers bcc-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/iovisor/bpftrace/archive/v$pkgver.tar.gz" # Tests require root, network to download gmock and a few tests fail. options="!check" builddir="$srcdir/$pkgname-$pkgver/build" +subpackages="$pkgname-doc $pkgname-tools $pkgname-tools-doc:tools_doc" prepare() { default_prepare @@ -33,7 +34,27 @@ build() { package() { make DESTDIR="$pkgdir" install - mv $pkgdir/usr/man $pkgdir/usr/share/bpftrace/ + + mv "$pkgdir/usr/man" "$pkgdir/usr/share/bpftrace/man" + mv "$pkgdir/usr/share/bpftrace/tools/doc" "$pkgdir/usr/share/bpftrace/tools_doc" + + mkdir -p "$pkgdir/usr/share/man/man8" + mv "$pkgdir/usr/share/bpftrace/man/man8/bpftrace.8.gz" "$pkgdir/usr/share/man/man8/bpftrace.8.gz" +} + +tools() { + depends="$pkgname" + pkgdesc="$pkgdesc (tools)" + mkdir -p "$subpkgdir/usr/share/bpftrace" + mv "$pkgdir/usr/share/bpftrace/tools" "$subpkgdir/usr/share/bpftrace/tools" +} + +tools_doc() { + pkgdesc="$pkgdesc (tool docs and examples)" + + mkdir -p "$subpkgdir/usr/share/bpftrace" + mv "$pkgdir/usr/share/bpftrace/tools_doc" "$subpkgdir/usr/share/bpftrace/doc" + mv "$pkgdir/usr/share/bpftrace/man" "$subpkgdir/usr/share/bpftrace/man" } sha512sums="5c6ee5fec690a907c370ed0bed85906d304215d7f97b99a2cae90453061f522fa6369627c9524a5a24e97c6cbb595a880a2a1b1d71095fffb693a4cef172a6f0 bpftrace-0.9.2.tar.gz" |