2016-08-04 13:42:47 +02:00
|
|
|
#
|
|
|
|
# spec file for package horst
|
|
|
|
#
|
2018-02-05 16:08:18 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-08-04 13:42:47 +02:00
|
|
|
# Copyright (c) 2016, 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: horst
|
2018-02-05 16:08:18 +01:00
|
|
|
Version: 5.1
|
2016-08-04 13:42:47 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Lightweight IEEE802.11 wireless LAN analyzer
|
|
|
|
License: GPL-2.0
|
|
|
|
Group: Productivity/Networking/Diagnostic
|
2018-02-05 16:08:18 +01:00
|
|
|
URL: http://br1.einfach.org/tech/horst/
|
|
|
|
Source: https://github.com/br101/horst/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: pkgconfig
|
2016-08-04 13:42:47 +02:00
|
|
|
BuildRequires: pkgconfig(libnl-3.0)
|
|
|
|
BuildRequires: pkgconfig(libnl-genl-3.0)
|
|
|
|
Recommends: iw
|
2018-03-31 22:07:40 +02:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: ncurses5-devel
|
|
|
|
%endif
|
2016-08-04 13:42:47 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
horst is a small, lightweight IEEE802.11 WLAN analyzer with a text interface.
|
|
|
|
Its basic function is similar to tcpdump, Wireshark or Kismet, but it's much
|
|
|
|
smaller and shows different, aggregated information which is not easily
|
|
|
|
available from other tools. It is made for debugging wireless LANs with a
|
|
|
|
focus on getting a quick overview instead of deep packet inspection and has
|
|
|
|
special features for Ad-hoc (IBSS) mode and mesh networks.
|
|
|
|
It can be useful to get a quick overview of what's going on on all wireless
|
|
|
|
LAN channels and to identify problems.
|
|
|
|
|
|
|
|
%prep
|
2018-02-05 16:08:18 +01:00
|
|
|
%setup -q
|
2016-08-04 13:42:47 +02:00
|
|
|
|
|
|
|
# Remove build time references so build-compare can do its work
|
|
|
|
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
|
|
|
|
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S')
|
|
|
|
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" *.c
|
|
|
|
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" *.c
|
|
|
|
|
|
|
|
%build
|
2018-03-31 22:07:40 +02:00
|
|
|
export CFLAGS="%{optflags} `ncursesw5-config --cflags`"
|
|
|
|
export LDFLAGS="`ncursesw5-config --libs`"
|
2016-08-04 13:42:47 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -Dpm0755 horst %{buildroot}/%{_bindir}/horst
|
|
|
|
install -Dpm0644 horst.conf %{buildroot}/%{_sysconfdir}/horst.conf
|
2018-02-05 16:08:18 +01:00
|
|
|
install -Dpm0644 horst.8 %{buildroot}/%{_mandir}/man1/horst.8
|
2016-08-04 13:42:47 +02:00
|
|
|
install -Dpm0644 horst.conf.5 %{buildroot}/%{_mandir}/man5/horst.conf.5
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc LICENSE README.md
|
|
|
|
%{_bindir}/horst
|
|
|
|
%config %{_sysconfdir}/horst.conf
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
|
|
|
%changelog
|