blob: b9df0153104cfb452d42c3f07dde11d92122a227 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Harpo Roeder <roederharpo@protonmail.ch>
pkgname='ebpfsnitch'
pkgver=0.3.0
pkgrel=3
pkgdesc='eBPF based Application Firewall'
arch=('x86_64')
license=('BSD3')
provides=('ebpfsnitch' 'ebpfsnitchd')
depends=(
'cmake'
'clang'
'bpf'
'libbpf'
'libnetfilter_queue'
'spdlog'
'boost'
'libmnl'
'nlohmann-json'
'python3'
'python-pyqt5'
'conntrack-tools'
)
source=("https://github.com/harporoeder/ebpfsnitch/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('92d0c1da308ca0f5590f5a8c13dd025687f1279592f2ba27995731d33400c936')
build() {
cd "$srcdir/ebpfsnitch-$pkgver"
mkdir build && cd build
cmake -D CMAKE_INSTALL_PREFIX="/usr/bin" ..
make
}
package() {
cd "$srcdir/ebpfsnitch-$pkgver/build"
make DESTDIR="$pkgdir/" install
cd "$srcdir/ebpfsnitch-$pkgver/ui"
python setup.py install --root="$pkgdir/"
cd "$srcdir/ebpfsnitch-$pkgver"
install -Dm644 ebpfsnitchd.service -t "$pkgdir/usr/lib/systemd/system"
}
|