summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e6996723f8743ca239dcf41ba239eeeb0df3169b (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
29
30
31
# Maintainer: Nick Skelsey <nskelsey@gmail.com>
pkgname=monopticon
pkgver=0.4.0
pkgrel=1
pkgdesc="Ethernet traffic visualizer for zeek"
arch=('x86_64')
url="https://github.com/nskelsey/monopticon"
license=('GPL')
depends=("zeek")
source=("git+https://github.com/nskelsey/monopticon")
md5sums=('SKIP')

build() {
    cd "$srcdir/monopticon"
    mkdir -p build
    cd build
    cmake \
      -DCMAKE_BUILD_TYPE=Release \
      -DBROKER_ROOT_DIR=/opt/zeek \
      -DIMGUI_DIR=/opt/imgui/ ..
    cmake --build .
}

package() {
    cd "$srcdir/monopticon/build"
    make DESTDIR="$pkgdir/" install
}

post_install() {
    setcap cap_net_raw=eip /opt/zeek/bin/zeek
}