Hello community, here is the log from the commit of package kismet for openSUSE:Factory checked in at 2019-12-02 11:34:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kismet (Old) and /work/SRC/openSUSE:Factory/.kismet.new.4691 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kismet" Mon Dec 2 11:34:45 2019 rev:38 rq:752704 version:2019_09_R1 Changes: -------- --- /work/SRC/openSUSE:Factory/kismet/kismet.changes 2016-07-07 15:10:33.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.kismet.new.4691/kismet.changes 2019-12-02 11:38:20.430460671 +0100 @@ -1,0 +2,28 @@ +Sun Dec 1 10:16:32 UTC 2019 - Martin Hauke <mar...@gmx.de> + +- Completely rewritten spec-file +- Intruduce subpackages for the capture helpers +- Add kismet-rpmlintrc +- Package systemd service file +- Remove obsolete patch: + * kismet-2011-03-R2-makefile.diff +- Update to version 2019-09-R1 + This is the new, MAJOR rewrite of Kismet! This version changes + almost everything, hopefully for the better, including: + * Web-based UI allowing for much simpler presentation of data + and compatibility with mobile devices + * Standard JSON-based data export for easy scripting against + Kismet instances + * Support for wireless protocols beyond Wi-Fi, like basic + Bluetooth scanning, thermometer, and weather station detection + with the RTL-SDR hardware, and more on the way + * New remote-capture code optimized for binary size and RAM, + allowing extremely low-end embedded devices to be used for + packet capture + * New logging format which can encapsulate complex information + about devices, system state, alerts, messages, and packets in a + single file with simple tools for extracting standard formats + * Pcap-NG multi-interface logs with complete original headers, + readable by Wireshark and other tools + +------------------------------------------------------------------- Old: ---- kismet-2011-03-R2-makefile.diff kismet-2016-07-R1.tar.xz New: ---- kismet-2019-09-R1.tar.gz kismet-rpmlintrc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kismet.spec ++++++ --- /var/tmp/diff_new_pack.X16NkG/_old 2019-12-02 11:38:20.790460747 +0100 +++ /var/tmp/diff_new_pack.X16NkG/_new 2019-12-02 11:38:20.790460747 +0100 @@ -1,7 +1,7 @@ # # spec file for package kismet # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,77 +12,265 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%define realver 2016-07-R1 +%define realver 2019-09-R1 Name: kismet -Version: 2016_07_R1 +Version: 2019_09_R1 Release: 0 Summary: An 802.11 Wireless Network Sniffer -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Productivity/Networking/Diagnostic -Url: https://www.kismetwireless.net/ -Source: https://www.kismetwireless.net/code/%{name}-%{realver}.tar.xz -Patch0: kismet-2011-03-R2-makefile.diff -BuildRequires: ImageMagick-devel -BuildRequires: automake +URL: https://www.kismetwireless.net/ +#Git-Clone: https://github.com/kismetwireless/kismet.git +Source: https://github.com/kismetwireless/kismet/archive/%{name}-%{realver}.tar.gz +Source1: %{name}-rpmlintrc +BuildRequires: fdupes BuildRequires: gcc-c++ -BuildRequires: gmp-devel -BuildRequires: libexpat-devel +BuildRequires: libcap-devel BuildRequires: libpcap-devel -BuildRequires: ncurses-devel -BuildRequires: pcre-devel -BuildRequires: wget -BuildRequires: wireshark-devel -BuildRequires: xz -Requires: wget -Requires: wireless-tools -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} >= 1210 +BuildRequires: libsensors4-devel +BuildRequires: pkgconfig +BuildRequires: protobuf-c +BuildRequires: python3 +BuildRequires: python3-setuptools +BuildRequires: pkgconfig(libmicrohttpd) BuildRequires: pkgconfig(libnl-3.0) >= 3.0 -%else -BuildRequires: libnl-devel -%endif +BuildRequires: pkgconfig(libnm) +BuildRequires: pkgconfig(libpcre) +BuildRequires: pkgconfig(libprotobuf-c) +BuildRequires: pkgconfig(libusb-1.0) +BuildRequires: pkgconfig(protobuf) +BuildRequires: pkgconfig(sqlite3) +BuildRequires: pkgconfig(systemd) +BuildRequires: pkgconfig(zlib) +Recommends: kismet-capture-linux-wifi +Recommends: kismet-capture-linux-bluetooth +Recommends: kismet-capture-freaklabs-zigbee +Recommends: kismet-capture-nrf-mousejack +Recommends: kismet-capture-sdr-rtladsb +Recommends: kismet-capture-sdr-rtlamr +Recommends: kismet-capture-sdr-rtl433 +Recommends: kismet-logtools +%{?systemd_requires} %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. +Kismet is a wireless network and device detector, sniffer, wardriving +tool, and WIDS (wireless intrusion detection) framework. + +Kismet works with Wi-Fi interfaces, Bluetooth interfaces, some +SDR (software defined radio) hardware like the RTLSDR, and other +specialized capture hardware. + +%package logtools +Summary: Kismet logtools +Group: Productivity/Networking/Diagnostic +Requires: kismet = %{version} + +%description logtools +Kismet is a wireless network and device detector, sniffer, wardriving +tool, and WIDS (wireless intrusion detection) framework. + +This subpackage contains several kismetdb log tools + - kismetdb_dump_devices + - kismetdb_statistics + - kismetdb_strip_packets + - kismetdb_to_kml + - kismetdb_to_wiglecsv + +%package capture-linux-bluetooth +Summary: Kismet Linux Bluetooth capture helper +Group: Productivity/Networking/Diagnostic + +%description capture-linux-bluetooth +Kismet is a wireless network and device detector, sniffer, wardriving +tool, and WIDS (wireless intrusion detection) framework. + +This subpackage contains Kismet Linux Bluetooth capture helper. + +%package capture-linux-wifi +Summary: Kismet Linux WiFi capture helper +Group: Productivity/Networking/Diagnostic + +%description capture-linux-wifi +Kismet is a wireless network and device detector, sniffer, wardriving +tool, and WIDS (wireless intrusion detection) framework. + +This subpackage contains Kismet Linux WiFi capture helper. + +%package capture-sdr-rtl433 +Summary: Kismet SDR rtl433 capture helper +Group: Productivity/Networking/Diagnostic +Requires: python3-protobuf >= 3.0.0 +Requires: rtl_433 + +%description capture-sdr-rtl433 +Kismet is a wireless network and device detector, sniffer, wardriving +tool, and WIDS (wireless intrusion detection) framework. + +This subpackage contains Kismet SDR rtl433 capture helper. +https://kismetwireless.net/docs/readme/datasources_sdr_rtl433/ + +%package capture-sdr-rtlamr +Summary: Kismet SDR rtlamr capture helper +Group: Productivity/Networking/Diagnostic +Requires: python3-numpy +Requires: python3-protobuf >= 3.0.0 +Recommends: rtl_amr + +%description capture-sdr-rtlamr +Kismet is a wireless network and device detector, sniffer, wardriving +tool, and WIDS (wireless intrusion detection) framework. + +This subpackage contains Kismet SDR rtlamr capture helper. +https://kismetwireless.net/docs/readme/datasources_sdr_rtlamr/ + +%package capture-sdr-rtladsb +Summary: Kismet SDR rtladsb capture helper +Group: Productivity/Networking/Diagnostic +Requires: python3-numpy +Requires: python3-protobuf >= 3.0.0 +Requires: rtl-sdr + +%description capture-sdr-rtladsb +Kismet is a wireless network and device detector, sniffer, wardriving +tool, and WIDS (wireless intrusion detection) framework. + +This subpackage contains the SDR rtladsb capture helper. +https://kismetwireless.net/docs/readme/datasources_sdr_rtladsb/ + +%package capture-nrf-mousejack +Summary: Kismet nRF MouseJack capture helper +Group: Productivity/Networking/Diagnostic +Requires: kismet = %{version} + +%description capture-nrf-mousejack +Kismet is a wireless network and device detector, sniffer, wardriving +tool, and WIDS (wireless intrusion detection) framework. + +This subpackage contains the nRF MouseJack capture helper. +https://kismetwireless.net/docs/readme/datasources_nrf_mousejack/ + +%package capture-freaklabs-zigbee +Summary: Kismet Freaklabs Zigbee capture helper +Group: Productivity/Networking/Diagnostic +Requires: python3-protobuf >= 3.0.0 +Requires: python3-pyserial + +%description capture-freaklabs-zigbee +Kismet is a wireless network and device detector, sniffer, wardriving +tool, and WIDS (wireless intrusion detection) framework. + +This subpackage contains the Freaklabs Zigbee captere helper. + +%package devel +Summary: Development files for kismet +Group: Development/Libraries/C and C++ +Requires: kismet = %{version} + +%description devel +Kismet is a wireless network and device detector, sniffer, wardriving +tool, and WIDS (wireless intrusion detection) framework. + +This subpackage contains files files for developing applications that +want to make use of kismet. %prep -%setup -q -n %{name}-%{realver} -%patch0 +%setup -q -n kismet-kismet-%{realver} +# HACK: Add python DESTDIR support for python stuff +find . -type f -name "Makefile*" -exec sed -i 's|setup.py install|setup.py install --root=$(DESTDIR)|g' {} \; +# Fix wrong-script-end-of-line-encoding +sed -i 's/\r$//' http_data/css/layout.css %build -%if 0%{?suse_version} >= 1220 -#This is needed as apcupsd doesn't recognize ppc64 correctly -cp %{_datadir}/automake-*/config.* . -%endif -export CFLAGS="%{optflags} -Wall -fstack-protector -fno-strict-aliasing `ncurses5-config --cflags`" -export CXXFLAGS="%{optflags} -Wall -fstack-protector -fno-strict-aliasing `ncurses5-config --cflags`" -export LDFLAGS="-Wl,--as-needed" -%configure --enable-ipv6 --disable-setuid -make %{?_smp_mflags} dep -make %{?_smp_mflags} +%configure \ + --sysconfdir=%{_sysconfdir}/kismet \ + --disable-optimization +make %{?_smp_mflags} all-with-plugins %install -make %{?_smp_mflags} DESTDIR=%{buildroot} install +export INSTUSR=`id -un` +export INSTGRP=`id -gn` +export MANGRP=`id -gn` +%make_install rpm +install -D -m 0644 packaging/systemd/kismet.service %{buildroot}%{_unitdir}/%{name}.service +install -d %{buildroot}%{_sbindir} +ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} +%fdupes -s %{buildroot}%{_datadir}/kismet + +%pre +%service_add_pre %{name}.service + +%preun +%service_del_preun %{name}.service + +%post +%service_add_post %{name}.service + +%postun +%service_del_postun %{name}.service %files -%defattr(-, root, root) -%doc CHANGELOG README docs/ -%{_mandir}/man?/* -%config %{_sysconfdir}/kismet.conf -%config %{_sysconfdir}/kismet_drone.conf -%{_datadir}/kismet -%{_bindir}/* +%license LICENSE +%doc README.md README.OLD README.SSL +%dir %{_sysconfdir}/kismet +%config %{_sysconfdir}/kismet/kismet.conf +%config %{_sysconfdir}/kismet/kismet_80211.conf +%config %{_sysconfdir}/kismet/kismet_alerts.conf +%config %{_sysconfdir}/kismet/kismet_filter.conf +%config %{_sysconfdir}/kismet/kismet_httpd.conf +%config %{_sysconfdir}/kismet/kismet_logging.conf +%config %{_sysconfdir}/kismet/kismet_memory.conf +%config %{_sysconfdir}/kismet/kismet_storage.conf +%config %{_sysconfdir}/kismet/kismet_uav.conf +%{_bindir}/kismet +%{_bindir}/kismet_server +%{_bindir}/kismet_cap_kismetdb +%{_bindir}/kismet_cap_pcapfile +%dir %{_datadir}/kismet +%{_datadir}/kismet/httpd +%{_datadir}/kismet/kismet_manuf.txt +%{_unitdir}/%{name}.service +%{_sbindir}/rc%{name} + +%files logtools +%{_bindir}/kismetdb_dump_devices +%{_bindir}/kismetdb_statistics +%{_bindir}/kismetdb_strip_packets +%{_bindir}/kismetdb_to_kml +%{_bindir}/kismetdb_to_wiglecsv + +%files capture-linux-bluetooth +%{_bindir}/kismet_cap_linux_bluetooth + +%files capture-linux-wifi +%{_bindir}/kismet_cap_linux_wifi + +%files capture-nrf-mousejack +%{_bindir}/kismet_cap_nrf_mousejack + +%files capture-freaklabs-zigbee +%{_bindir}/kismet_cap_freaklabs_zigbee +%{python3_sitelib}/KismetCaptureFreaklabsZigbee* + +%files capture-sdr-rtladsb +%{_bindir}/kismet_cap_sdr_rtladsb +%{_bindir}/kismet_cap_sdr_rtladsb_mqtt +%{python3_sitelib}/KismetCaptureRtladsb* + +%files capture-sdr-rtlamr +%{_bindir}/kismet_cap_sdr_rtlamr +%{_bindir}/kismet_cap_sdr_rtlamr_mqtt +%{python3_sitelib}/KismetCaptureRtlamr* + +%files capture-sdr-rtl433 +%{_bindir}/kismet_cap_sdr_rtl433 +%{_bindir}/kismet_cap_sdr_rtl433_mqtt +%{python3_sitelib}/KismetCaptureRtl433* + +%files devel +%{_libdir}/pkgconfig/kismet.pc %changelog ++++++ kismet-rpmlintrc ++++++ # Filter out false positives - CSS files aren't scripts addFilter("W: script-without-shebang /usr/share/kismet/httpd/css/.*")