File PKGBUILD of Package dns-probe
pkgname=dns-probe
pkgver='1.6.1'
pkgrel='1'
pkgdesc='DNS traffic monitoring probe'
arch=('x86_64')
url='https://gitlab.nic.cz/adam/dns-probe'
license=('GPL3')
makedepends=('make' 'cmake')
depends=('boost' 'openssl' 'python-sphinx' 'python-pandas' 'python-pyarrow' 'libpcap' 'arrow' 'yaml-cpp' 'fstrm' 'protobuf' 'libmaxminddb' 'knot' 'dpdk' 'c-dns' 'cryptopant' 'systemd-libs' 'librdkafka' 'zlib' 'rapidjson')
source=("dns-probe_${pkgver}.orig.tar.gz")
sha256sums=('SKIP')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DAF_PACKET_BACKEND=ON \
-DDPDK_BACKEND=ON \
-DBUILD_COLLECTOR=ON \
-DBUILD_DOC=ON \
..
LC_ALL=${LC_ALL:="C.UTF-8"} make all man
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
make DESTDIR="${pkgdir}" install
}