#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=kismet pkgver=2023_07_R1 _realver="${pkgver//_/-}" pkgrel=08 pkgdesc="802.11 layer2 wireless network detector, sniffer, and intrusion detection system w/o systemd" url="https://www.kismetwireless.net/" depends=('libpcap' 'pcre2' 'bluez-libs' 'libcap' 'protobuf-c' 'libprotobuf-c.so' 'sqlite' 'libnm' 'gcc-libs' 'libusb' 'libusb-1.0.so' 'libnl' 'glibc' 'zlib' 'libelf' 'lm_sensors' 'python' 'python-setuptools' 'python-protobuf' 'python-pyserial' 'python-numpy' 'python-websockets' 'libwebsockets' 'libcap-ng' 'python-numpy' 'libwebsockets' 'libcap-ng' libpcap.so libprotobuf.so libnm.so libwebsockets.so libsensors.so) makedepends=('python-setuptools') optdepends=( 'gpsd: log coordinates of detected networks' 'wireshark-cli: provide OUI files used to determine device manufacturer' 'wireshark-cli: mergecap, to merge multiple capture files' 'sox: provide the default kismet sound playback binary' 'festival: text-to-speech support' 'flite: alternative/lightweight text-to-speech support') backup=( etc/kismet/kismet.conf etc/kismet/kismet_80211.conf etc/kismet/kismet_alerts.conf etc/kismet/kismet_filter.conf etc/kismet/kismet_httpd.conf etc/kismet/kismet_logging.conf etc/kismet/kismet_memory.conf # etc/kismet/kismet_storage.conf etc/kismet/kismet_uav.conf) install=kismet.install source=(https://www.kismetwireless.net/code/${pkgname}-${_realver}.tar.xz kismet.sysusers python-install-flags.patch) prepare() { cd ${pkgname}-${_realver} patch -Np0 < ../python-install-flags.patch autoreconf -fiv } build() { cd ${pkgname}-${_realver} ./configure \ --prefix=/usr \ --localstatedir=/var \ --sysconfdir=/etc/kismet \ --with-suidgroup=315 make all plugins } package() { cd ${pkgname}-${_realver} make DESTDIR="${pkgdir}" install # Makepkg strip bug #43600 chmod u+w "${pkgdir}"/usr/bin/kismet* chmod o-x "${pkgdir}"/usr/bin/kismet_cap* chown 0:315 "${pkgdir}"/usr/bin/kismet_cap* install -Dm 644 ../kismet.sysusers "${pkgdir}/usr/lib/sysusers.d/kismet.conf" } #---- arch license gpg-key & sha256sums ---- arch=(x86_64) license=('GPL') validpgpkeys=(354689DF3C9DED803381A661D7B28822738BBDB1) # Michael Kershaw sha256sums=(f08548e26ca65fa1e567b1debbea1ca4d0e7206bddb96a4f639c90171873e8f7 # kismet-2023-07-R1.tar.xz 0ac08bf5016e00596e2fc0bc89e7907c2186b811ed8d8a2bffe6b95b42e147a3 # kismet.sysusers 4431efac511cc3d383c8a8da7758658a05655cc301cea5a2cd2139f942a73bf7) # python-install-flags.patch ## 036c4ac209a758769b6927764ef0229a3fd3a0e43120cbdce0e60c5d92c5e5b9 kismet-2023_07_R1-08-x86_64.pkg.tar.lz