aboutsummaryrefslogtreecommitdiffstats
path: root/community/bpfmon/APKBUILD
blob: e14d84515db4e38bf61e1543e54687d31b5ab80d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=bpfmon
pkgver=2.50
pkgrel=1
pkgdesc="BPF based visual packet rate monitor"
url="https://github.com/bbonev/bpfmon"
arch="all"
license="GPL-2.0-or-later"
makedepends="libpcap-dev yascreen-dev"
options="!check" # no test
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/bbonev/bpfmon/archive/v$pkgver.tar.gz
	fix-makefile.patch"

build() {
	make PREFIX=/usr
}

package() {
	make PREFIX=/usr INSTALL=install DESTDIR="$pkgdir" install
	install -Dm0644 bpfmon.8 "$pkgdir"/usr/share/man/man8/bpfmon.8
}

sha512sums="
471b4e3af4fb5bbd408871c2854dac12bc8457196d72507ac465bb93281dafd5eaad1273f0d4ac4ed05358a0dd37bc7133e56cb5bc8cfd63ca97e50a020f39a3  bpfmon-2.50.tar.gz
b70c5c322408305f5d8d26ac72929449838f0e829c8c5759b8847103fd429fe64239eaca03bda6f5baa54b2a352af2dcd97a2d77bce2fcf0e91d3d9ac8e7de0e  fix-makefile.patch
"