2017-07-01 17:49:30 +00:00
|
|
|
#
|
|
|
|
# spec file for package netdiscover
|
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-07-24 11:38:48 +00:00
|
|
|
%define pkgver 0.3-pre-beta7
|
2017-07-01 17:49:30 +00:00
|
|
|
Name: netdiscover
|
|
|
|
Version: 0.3_beta7
|
|
|
|
Release: 0
|
|
|
|
Summary: A network address discovering/monitoring tool
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Productivity/Networking/Other
|
2017-07-24 11:38:48 +00:00
|
|
|
Url: https://sourceforge.net/projects/netdiscover/?source=directory
|
|
|
|
Source0: https://sourceforge.net/projects/netdiscover/files/netdiscover/%{pkgver}-LINUXONLY/netdiscover-%{pkgver}-LINUXONLY.tar.gz
|
|
|
|
# PATCH-FIX-OPENSUSE netdiscover-update-oui.patch -- alows us updating oui
|
|
|
|
# database from hwdata
|
|
|
|
Patch0: netdiscover-update-oui.patch
|
|
|
|
# Patches from debian
|
|
|
|
Patch1: netdiscover-fix-makefile.patch
|
|
|
|
Patch2: netdiscover-fix-spelling-binary.patch
|
|
|
|
Patch3: netdiscover-fix-manpage.patch
|
2017-07-01 17:49:30 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2017-07-24 11:38:48 +00:00
|
|
|
BuildRequires: hwdata
|
2017-07-01 17:49:30 +00:00
|
|
|
BuildRequires: libnet-devel
|
|
|
|
BuildRequires: libpcap-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
Netdiscover is an active/passive address reconnaissance tool, mainly developed
|
|
|
|
for those wireless networks without dhcp server, when you are wardriving. It
|
|
|
|
can be also used on hub/switched networks.
|
|
|
|
|
|
|
|
Built on top of libnet and libpcap, it can passively detect online hosts, or
|
|
|
|
search for them, by actively sending arp requests, it can also be used to
|
|
|
|
inspect your network arp traffic, and find network addresses using auto scan
|
|
|
|
mode, which will scan for common local networks.
|
|
|
|
|
|
|
|
%prep
|
2017-07-24 11:38:48 +00:00
|
|
|
%setup -q -n netdiscover-%{pkgver}
|
2017-07-01 17:49:30 +00:00
|
|
|
%patch0 -p1
|
2017-07-24 11:38:48 +00:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2017-07-01 17:49:30 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fiv
|
|
|
|
%configure
|
2017-07-24 11:38:48 +00:00
|
|
|
cp %{_datadir}/hwdata/oui.txt ./
|
|
|
|
sh update-oui-database.sh
|
2017-07-01 17:49:30 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc ChangeLog COPYING README AUTHORS NEWS TODO
|
|
|
|
%{_sbindir}/netdiscover
|
2017-07-24 11:40:22 +00:00
|
|
|
%{_mandir}/man8/netdiscover.8%{ext_man}
|
2017-07-01 17:49:30 +00:00
|
|
|
|
|
|
|
%changelog
|