commit f6c5413a0c13d0e623e9b7889ccb1ffe03f778e3fa60f7567ac8cae8ef7a1392 Author: Marcus Meissner Date: Thu Aug 4 11:42:47 2016 +0000 Accepting request 416012 from home:mnhauke initial package OBS-URL: https://build.opensuse.org/request/show/416012 OBS-URL: https://build.opensuse.org/package/show/network:utilities/horst?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/horst.changes b/horst.changes new file mode 100644 index 0000000..6757ee3 --- /dev/null +++ b/horst.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat Jul 30 08:36:37 UTC 2016 - mardnh@gmx.de + +- initial package, version 5.0 + diff --git a/horst.spec b/horst.spec new file mode 100644 index 0000000..1b16f44 --- /dev/null +++ b/horst.spec @@ -0,0 +1,70 @@ +# +# spec file for package horst +# +# Copyright (c) 2016, Martin Hauke +# +# 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 +Version: 5.0 +Release: 0 +Summary: Lightweight IEEE802.11 wireless LAN analyzer +License: GPL-2.0 +Group: Productivity/Networking/Diagnostic +Url: http://br1.einfach.org/tech/horst/ +Source: https://github.com/br101/horst/archive/version-%{version}.tar.gz +BuildRequires: ncurses-devel +BuildRequires: pkg-config +BuildRequires: pkgconfig(libnl-3.0) +BuildRequires: pkgconfig(libnl-genl-3.0) +Recommends: iw +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%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 +%setup -q -n %{name}-version-%{version} + +# 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 +export CFLAGS="%{optflags}" +make %{?_smp_mflags} + +%install +install -Dpm0755 horst %{buildroot}/%{_bindir}/horst +install -Dpm0644 horst.conf %{buildroot}/%{_sysconfdir}/horst.conf +install -Dpm0644 horst.1 %{buildroot}/%{_mandir}/man1/horst.1 +install -Dpm0644 horst.conf.5 %{buildroot}/%{_mandir}/man5/horst.conf.5 + +%files +%defattr(-,root,root) +%doc LICENSE README.md +%{_bindir}/horst +%config %{_sysconfdir}/horst.conf +%{_mandir}/man*/* + +%changelog diff --git a/version-5.0.tar.gz b/version-5.0.tar.gz new file mode 100644 index 0000000..951d51b --- /dev/null +++ b/version-5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea19cc0565b0bc8e001d11d4480030ef8ade67f85b2ddd28f6eb9233cb1e5c5b +size 115572