# Template file for 'kismet'
pkgname=kismet
version=2022.08.R1
revision=2
_realver="${version//./-}"
build_style=gnu-configure
configure_args="--disable-python-tools"
conf_files="/etc/*.conf"
hostmakedepends="pkg-config protobuf protobuf-c-devel protobuf-devel"
makedepends="libbluetooth-devel libcap-devel libpcap-devel libusb-devel
 libwebsockets-devel ncurses-devel pcre-devel protobuf-c-devel protobuf-devel
 sqlite-devel"
depends="libcap-progs"
short_desc="Wireless network detector, sniffer, and intrusion detection system"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="https://www.kismetwireless.net/"
distfiles="http://www.kismetwireless.net/code/${pkgname}-${_realver}.tar.xz"
checksum=2149cceac5526508653f4d02dcf7a694e3da3dc000a2372a1ee4bf9988279781
system_groups="kismet"

if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
	makedepends+=" libatomic-devel"
	export LIBS="-latomic"
fi
