aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorKonstantin Kulikov <k.kulikov2@gmail.com>2019-08-30 16:41:04 +0300
committerLeo <thinkabit.ukim@gmail.com>2019-08-30 19:08:47 -0300
commit282449c9f6bab1e367a1f4998e0a91aa77c8f0d0 (patch)
tree97344997a359dd30f9e5d00e3b38e52d25617313 /testing
parenta6907c803e8686b268ec1a93d749b97d6b5c1367 (diff)
downloadaports-282449c9f6bab1e367a1f4998e0a91aa77c8f0d0.tar.bz2
aports-282449c9f6bab1e367a1f4998e0a91aa77c8f0d0.tar.xz
testing/bpftrace: split into subpackages
Diffstat (limited to 'testing')
-rw-r--r--testing/bpftrace/APKBUILD27
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"