File kismet-git.spec of Package kismet-git
#
# spec file for package kismet-git
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
#%%define kismet_group kismet
Name: kismet-git
Version: 0.0.0+git.20190219
Release: 0
Summary: An 802.11 Wireless Network Sniffer
License: GPL-2.0+
Group: Productivity/Networking/Diagnostic
URL: https://www.kismetwireless.net/
#Git-Clone: https://github.com/kismetwireless/kismet.git
Source: %{name}-%{version}.tar.xz
Source99: kismet-git-rpmlintrc
BuildRequires: gcc-c++
BuildRequires: libcap-devel
BuildRequires: libpcap-devel
BuildRequires: ncurses-devel
BuildRequires: libsensors4-devel
BuildRequires: pkgconfig
BuildRequires: protobuf-c
BuildRequires: xz
BuildRequires: pkgconfig(libmicrohttpd)
BuildRequires: pkgconfig(libnl-3.0) >= 3.0
BuildRequires: pkgconfig(libnm)
BuildRequires: pkgconfig(libpcre)
BuildRequires: pkgconfig(protobuf)
BuildRequires: pkgconfig(libprotobuf-c)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: python2
BuildRequires: python-setuptools
%if 0%{?suse_version} > 1315
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(libhackrf)
%endif
# rtl433
Recommends: python-requests
Recommends: python-paho-mqtt
#
Conflicts: kismet
Provides: kismet
#Requires(pre): pwdutils
# for oui database
Recommends: wireshark
%description
Kismet is an 802.11 wireless network sniffer. This is different from a
normal network sniffer (such as Ethereal or tcpdump) because it
separates and identifies different wireless networks in the area.
Kismet works with any 802.11b wireless card that is capable of
reporting raw packets (rfmon support), which include any Prism2-based
cards (Linksys, D-Link, Rangelan, and more), Cisco Aironet cards, and
Orinoco-based cards. Kismet also supports the WSP100 802.11b remote
sensor by Network Chemistry and is able to monitor 802.11a networks
with cards that use the ar5k chipset.
%prep
%setup -q
# HACK: Add python DESTDIR support for python stuff
find . -type f -name "Makefile*" -print0 | \
xargs -0 sed -i 's|setup.py install|setup.py install --root=$(DESTDIR)|g'
# Force python2
sed -i 's|#!/usr/bin/env python2|#!/usr/bin/python2|g' \
capture_sdr_rtl433/kismet_cap_sdr_rtl433 \
capture_sdr_rtl433/kismet_cap_sdr_rtl433_mqtt \
capture_freaklabs_zigbee/kismet_cap_freaklabs_zigbee
%build
%configure
#--with-suidgroup=kismet
make %{?_smp_mflags} all-with-plugins
%install
export INSTUSR=`id -un`
export INSTGRP=`id -gn`
export MANGRP=`id -gn`
%make_install rpm
%pre
#getent group %%{kismet_group} >/dev/null || groupadd -r %%{kismet_group}
%files
%doc README.md README.OLD README.SSL LICENSE
%doc docs/devel
%doc docs/howto
%doc docs/readme
%config %{_sysconfdir}/kismet.conf
%config %{_sysconfdir}/kismet_*
%{_bindir}/kismet
%{_bindir}/kismet_server
#%%attr(4550,root,%%{kismet_group}) %%{_bindir}/kismet_cap_linux_wifi
%{_bindir}/kismet_cap_linux_wifi
%{_bindir}/kismet_cap_linux_bluetooth
%{_bindir}/kismet_cap_pcapfile
%{_bindir}/kismetdb_dump_devices
%{_bindir}/kismetdb_strip_packets
%{_bindir}/kismetdb_to_wiglecsv
#
%{_datadir}/kismet
%{_libdir}/pkgconfig/kismet.pc
#
# python stuff
%{_bindir}/kismet_cap_freaklabs_zigbee
%{_bindir}/kismet_cap_sdr_rtl433
%{_bindir}/kismet_cap_sdr_rtl433_mqtt
%{_bindir}/kismet_cap_nrf_mousejack
%{_bindir}/kismet_cap_sdr_rtladsb
%{_bindir}/kismet_cap_sdr_rtladsb_mqtt
%{_bindir}/kismet_cap_sdr_rtlamr
%{_bindir}/kismet_cap_sdr_rtlamr_mqtt
%{python_sitelib}/*
%changelog