File kismet.spec of Package kismet
#
# spec file for package kismet
#
# Copyright (c) 2015, Martin Hauke <mardnh@gmx.de>
#
# 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
%define restricted_plugins 1
Name: kismet
Version: 0.0.0.git1452206221.0a10e1a
Release: 0
Summary: An 802.11 Wireless Network Sniffer
License: GPL-2.0+
Group: Productivity/Networking/Diagnostic
Url: https://www.kismetwireless.net/
Source: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: libcap-devel
BuildRequires: libpcap-devel
BuildRequires: ncurses-devel
BuildRequires: gpsd-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(bluez)
BuildRequires: pkgconfig(libnl-3.0)
BuildRequires: pkgconfig(libpcre)
Recommends: festival
Recommends: gpsd
Recommends: sox
Recommends: wireshark
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?restricted_plugins}
BuildRequires: pkgconfig(openssl)
%endif
%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
%build
%configure \
--sysconfdir=%{_sysconfdir}/kismet \
--with-suidgroup=`id -g`
make dep
make %{?_smp_mflags}
make %{?_smp_mflags} plugins
%if 0%{?restricted_plugins}
make %{?_smp_mflags} restricted-plugins
%endif
%install
export INSTGRP=`id -g`; export MANGRP=`id -g`; export INSTUSR=`id -u`
make DESTDIR=%{buildroot} install %{?_smp_mflags}
make DESTDIR=%{buildroot} plugins-install
%if 0%{?restricted_plugins}
make DESTDIR=%{buildroot} restricted-plugins-install
%endif
install -pD -m 0750 kismet_capture %{buildroot}%{_bindir}
%pre
%{_sbindir}/groupadd -r %{kismet_group} 2> /dev/null || :
%files
%defattr(-,root,root)
%doc CHANGELOG docs/ README RELEASENOTES.txt
%dir %{_sysconfdir}/kismet
%config(noreplace) %{_sysconfdir}/kismet/*
%{_bindir}/kismet
%{_bindir}/kismet_capture
%{_bindir}/kismet_client
%{_bindir}/kismet_drone
%{_bindir}/kismet_server
%{_datadir}/kismet
%dir %{_libdir}/kismet
%dir %{_libdir}/kismet_client
%{_libdir}/kismet/alertsyslog.so
%{_libdir}/kismet/kismet-syslog.so
%{_libdir}/kismet/btscan.so
%{_libdir}/kismet/spectool_net.so
%{_libdir}/kismet_client/spectools_ui.so
%{_libdir}/kismet_client/btscan_ui.so
%{_mandir}/man1/*
%{_mandir}/man5/*
%if 0%{?restricted_plugins}
%{_libdir}/kismet/aircrack-kismet.so
%{_libdir}/kismet/autowep-kismet.so
%endif
%changelog