summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD21
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..29f93259fb6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = bpfmon
+ pkgdesc = BPF based visual packet rate monitor
+ pkgver = 2.49
+ pkgrel = 1
+ url = https://github.com/bbonev/bpfmon
+ arch = any
+ license = GPL2
+ depends = glibc
+ depends = libyascreen
+ source = https://github.com/bbonev/bpfmon/releases/download/v2.49/bpfmon-2.49.tar.xz
+ source = https://github.com/bbonev/bpfmon/releases/download/v2.49/bpfmon-2.49.tar.xz.asc
+ validpgpkeys = BA60BC20F37E59444D6D25001365720913D2F22D
+ md5sums = SKIP
+ md5sums = SKIP
+
+pkgname = bpfmon
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..550776d6141
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,21 @@
+# Contributor: Boian Bonev <bbonev@ipacct.com>
+# Maintainer: Boian Bonev <bbonev@ipacct.com>
+
+pkgname=bpfmon
+pkgver=2.49
+pkgrel=1
+pkgdesc="BPF based visual packet rate monitor"
+arch=('any')
+url="https://github.com/bbonev/bpfmon"
+license=('GPL2')
+depends=('glibc' 'libyascreen')
+source=("${url}/releases/download/v${pkgver}/bpfmon-${pkgver}.tar.xz" "${url}/releases/download/v${pkgver}/bpfmon-${pkgver}.tar.xz.asc")
+validpgpkeys=('BA60BC20F37E59444D6D25001365720913D2F22D')
+md5sums=('SKIP' 'SKIP')
+
+package() {
+ cd bpfmon-${pkgver}
+ sed -i 's/sbin/bin/g' Makefile
+ make PREFIX=/usr INSTALL=install DESTDIR="${pkgdir}" V=1 install
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}