# Contributor: George Hopkins # Maintainer: George Hopkins pkgname=kismet _pkgver=2022-02-R1 pkgver=${_pkgver/-R/.} pkgver=0.${pkgver/-/} pkgrel=3 pkgdesc="Wireless network and device detector" url="https://www.kismetwireless.net/" arch="all" license="GPL-2.0-only" makedepends="linux-headers abseil-cpp-dev libnl3-dev libpcap-dev protobuf-dev protobuf-c-dev sqlite-dev zlib-dev" subpackages="$pkgname-logtools $pkgname-linux-bluetooth:linux_bluetooth $pkgname-linux-wifi:linux_wifi $pkgname-nrf-51822:nrf_51822 $pkgname-nxp-kw41z:nxp_kw41z " options="!check" # no test-suite available source="$pkgname-$pkgver.tar.xz::https://www.kismetwireless.net/code/kismet-$_pkgver.tar.xz" builddir="$srcdir/kismet-$_pkgver" prepare() { default_prepare update_config_sub sed -i "s/@VERSION@/$pkgver/" packaging/kismet.pc.in } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc/kismet \ --disable-libusb \ --disable-libwebsockets \ --disable-python-tools make } package() { make DESTDIR="$pkgdir" install rm "$pkgdir"/usr/bin/kismet_discovery # example } logtools() { pkgdesc="$pkgdesc - log tools" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/kismetdb_* "$subpkgdir"/usr/bin } linux_bluetooth() { pkgdesc="$pkgdesc - Bluetooth capture support" depends="$pkgname" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/kismet_cap_linux_bluetooth "$subpkgdir"/usr/bin } linux_wifi() { pkgdesc="$pkgdesc - Wi-Fi capture support" depends="$pkgname" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/kismet_cap_linux_wifi "$subpkgdir"/usr/bin } nrf_51822() { pkgdesc="$pkgdesc - nRF51822 capture support" depends="$pkgname" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/kismet_cap_nrf_51822 "$subpkgdir"/usr/bin } nxp_kw41z() { pkgdesc="$pkgdesc - NXP KW41Z capture support" depends="$pkgname" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/kismet_cap_nxp_kw41z "$subpkgdir"/usr/bin } sha512sums=" 09292096614b9ca3569430ef196cd7cf6fbd2ab7212bdfc653cf5433bdc727ea48c63638220804799f9756a92108a85e8abf0f4e8e0383dbcbe0028bf91a6aee kismet-0.202202.1.tar.xz "