summaryrefslogtreecommitdiff
path: root/opt/tcpdump/MAKEPKG
blob: 27b0fd103ac082f6682af94ea72931958dc44936 (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
#!/bin/mkpkg
# description: Command-line network traffic analyzer
# url: https://www.tcpdump.org

name=tcpdump
version=4.99.7
release=1
depends=(libpcap libressl)
capabilities=(
    /usr/bin/tcpdump:cap_net_raw+ep
)
source=(https://www.tcpdump.org/release/$name-$version.tar.xz)

sha256sums=(
    "39675dfa06fb0e99be8da5d4a1784acbaab58ae0870231d956ff7870cb99eec1"
)

build() {
    cd $name-$version

    ./configure \
        --prefix=/usr \
        --with-crypto

    make
    make DESTDIR=$PKG install

    # remove versioned binary (tcpdump.4.99.6)
    rm -f $PKG/usr/bin/tcpdump.*
}

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

# vim: filetype=sh