summaryrefslogtreecommitdiff
path: root/opt/ngrep/MAKEPKG
blob: 60d1d305d63ec299e81ec7cd3eb15f2c6d443426 (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
#!/bin/mkpkg
# description: Network packet analyzer with grep-like pattern matching
# url: https://github.com/jpr5/ngrep

name=ngrep
version=1.49.0
release=1
depends=(libpcap pcre2)
source=(https://github.com/jpr5/ngrep/archive/v$version/ngrep-$version.tar.gz)

capabilities=(/usr/bin/ngrep:cap_net_raw,cap_net_admin+eip)

sha256sums=(
    "6c94b31681316b7469a3ace92d2aeec7c9f490bd6782453dff2ade0e289a3348"
)

build() {
    cd ngrep-$version

    ./configure \
        --prefix=/usr \
        --enable-pcre2 \
        --enable-ipv6 \
        --with-pcap-includes=/usr/include

    make
    make DESTDIR=$PKG install
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh