From 33719a1b3c6761688ca3e773c14f0bd41afdc214e0d0b2bda22607b78c736acd Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Sat, 1 Jul 2017 17:49:30 +0000 Subject: [PATCH] Accepting request 506964 from home:pluskalm new package, please add me as maintainer as I would like to get this to Factory OBS-URL: https://build.opensuse.org/request/show/506964 OBS-URL: https://build.opensuse.org/package/show/network:utilities/netdiscover?expand=0&rev=1 --- .gitattributes | 23 ++ convert-oui-database.sh | 121 ++++++ netdiscover-0.3-pre-beta7-LINUXONLY.tar.gz | 3 + netdiscover-upstream-20160415.patch | 451 +++++++++++++++++++++ netdiscover.changes | 54 +++ netdiscover.spec | 67 +++ oui.h-20160522.bz2 | 3 + 7 files changed, 722 insertions(+) create mode 100644 .gitattributes create mode 100644 convert-oui-database.sh create mode 100644 netdiscover-0.3-pre-beta7-LINUXONLY.tar.gz create mode 100644 netdiscover-upstream-20160415.patch create mode 100644 netdiscover.changes create mode 100644 netdiscover.spec create mode 100644 oui.h-20160522.bz2 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/convert-oui-database.sh b/convert-oui-database.sh new file mode 100644 index 0000000..8eed6ff --- /dev/null +++ b/convert-oui-database.sh @@ -0,0 +1,121 @@ +#!/bin/bash + +# Script for generation "oui.h" file (netdiscover program at +# http://nixgeneration.com/~jaime/netdiscover/ +# +# Obtain data from internet source at: +# lynx -source http://standards.ieee.org/regauth/oui/oui.txt >oui.txt +# +# Syntax: oui.txt2oui.h_netdiscover +# +# Script generate src/oui.h file. +# +# 16-May-2009 Frantisek Hanzlik (Original author) +# 07-Jun-2001 Larry Reznick (fixes & code clean) +#********************************************************************** +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# + +JA=${0##*/} +DATE=$(date +'%Y%m%d') +ORIGF=oui.txt +#DSTD=src +DSTF=oui.h +URL="http://standards.ieee.org/develop/regauth/oui/oui.txt" +TMPF=$ORIGF +AWK="gawk" +#AWK="mawk" +#AWK="awk" + +#[ -d "$DSTD" ] || { echo "$JA: Destdir \"$DSTD\" not exist!"; exit 1; } +#if ! [ -f "$TMPF" -a -s "$TMPF" ]; then +# echo "Trying download \"$ORIGF\" with lynx..." +# if ! lynx -source $URL >"$TMPF"; then +# echo "Trying download \"$ORIGF\" with elinks..." +# if ! elinks -source $URL >"$TMPF"; then +# echo "Trying download \"$ORIGF\" with wget..." +# if ! wget --quiet --output-document="$TMPF" $URL; then +# echo "$JA: Cann't obtain \"$URL\"!" +# exit 1 +# fi +# fi +# fi +#else +# echo "\"$TMPF\" already exist, skipping download..." +#fi +#if ! [ -f "$TMPF" -a -s "$TMPF" ]; then +# echo -n "Trying download \"$ORIGF\" with lynx..." +# if [[ -x /usr/bin/lynx ]]; then +# lynx -source $URL >"$TMPF" +# else +# echo -n " with elinks..." +# if [[ -x /usr/bin/elinks ]]; then +# elinks -source $URL >"$TMPF" +# else +# echo " with wget..." +# if [[ -x /usr/bin/wget ]]; then +# wget --quiet --output-document="$TMPF" $URL +# else +# if [[ -x /usr/bin/curl ]]; then +# curl -s $URL >"$TMPF" +# else +# echo "$JA: Can't obtain \"$URL\"!" +# exit 1 +# fi +# fi +# fi +# fi +#else +# echo -n "\"$TMPF\" already exist, skipping download..." +#fi +#echo "" + +echo "Process oui.txt (\"$TMPF\")..." + +# if RS is null string, then records are separated by blank lines... +# but this isn't true in oui.txt + +LANG=C grep "base 16" $TMPF | sed "s/\"/'/g" | $AWK --re-interval --assign URL="$URL" ' +BEGIN { + NN = 0; + printf( \ + "/*\n" \ + " * Organizationally Unique Identifier list at date %s\n" \ + " * Automatically generated from %s\n" \ + " * For Netdiscover by Jaime Penalba\n" \ + " *\n" \ + " */\n" \ + "\n" \ + "struct oui {\n" \ + " char *prefix; /* 24 bit global prefix */\n" \ + " char *vendor; /* Vendor id string */\n" \ + "};\n" \ + "\n" \ + "struct oui oui_table[] = {\n", strftime("%d-%b-%Y"), URL); +} + +{ + printf(" { \"%s\", \"", $1); + for (i=4; i"$DSTF" +##}' >"$DSTD/$DSTF" + + +if [ $? -ne 0 ]; then + echo "$JA: $TMPF parsing error !" + exit 1 +else + echo "All OK" +## ls -oh oui.txt-* src/oui.h +fi diff --git a/netdiscover-0.3-pre-beta7-LINUXONLY.tar.gz b/netdiscover-0.3-pre-beta7-LINUXONLY.tar.gz new file mode 100644 index 0000000..3ece0cc --- /dev/null +++ b/netdiscover-0.3-pre-beta7-LINUXONLY.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01c6e090c3b06e374005f7efcead3b5b2f63f47bfb94383c1dbde9abcf1cd8aa +size 367639 diff --git a/netdiscover-upstream-20160415.patch b/netdiscover-upstream-20160415.patch new file mode 100644 index 0000000..44af167 --- /dev/null +++ b/netdiscover-upstream-20160415.patch @@ -0,0 +1,451 @@ +diff -uraN netdiscover-0.3-pre-beta7/src/data_reply.c netdiscover.svn/src/data_reply.c +--- netdiscover-0.3-pre-beta7/src/data_reply.c 2015-03-24 05:03:46.000000000 +0100 ++++ netdiscover.svn/src/data_reply.c 2016-05-22 23:54:48.803447040 +0200 +@@ -98,7 +98,7 @@ + + + /* Fill again with spaces and cut the string to fit width */ +- for (j=strlen(line); joui.txt ++# ++# Syntax: oui.txt2oui.h_netdiscover ++# ++# Script generate src/oui.h file. ++# ++# 16-May-2009 Frantisek Hanzlik (Original author) ++# 07-Jun-2001 Larry Reznick (fixes & code clean) ++#********************************************************************** ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 3 of the License, or ++# (at your option) any later version. ++# ++ ++JA=${0##*/} ++DATE=$(date +'%Y%m%d') ++ORIGF=oui.txt ++DSTD=src ++DSTF=oui.h ++URL="http://standards.ieee.org/develop/regauth/oui/oui.txt" ++TMPF=$ORIGF-$DATE ++AWK="gawk" ++#AWK="mawk" ++#AWK="awk" ++ ++[ -d "$DSTD" ] || { echo "$JA: Destdir \"$DSTD\" not exist!"; exit 1; } ++#if ! [ -f "$TMPF" -a -s "$TMPF" ]; then ++# echo "Trying download \"$ORIGF\" with lynx..." ++# if ! lynx -source $URL >"$TMPF"; then ++# echo "Trying download \"$ORIGF\" with elinks..." ++# if ! elinks -source $URL >"$TMPF"; then ++# echo "Trying download \"$ORIGF\" with wget..." ++# if ! wget --quiet --output-document="$TMPF" $URL; then ++# echo "$JA: Cann't obtain \"$URL\"!" ++# exit 1 ++# fi ++# fi ++# fi ++#else ++# echo "\"$TMPF\" already exist, skipping download..." ++#fi ++if ! [ -f "$TMPF" -a -s "$TMPF" ]; then ++ echo -n "Trying download \"$ORIGF\" with lynx..." ++ if [[ -x /usr/bin/lynx ]]; then ++ lynx -source $URL >"$TMPF" ++ else ++ echo -n " with elinks..." ++ if [[ -x /usr/bin/elinks ]]; then ++ elinks -source $URL >"$TMPF" ++ else ++ echo " with wget..." ++ if [[ -x /usr/bin/wget ]]; then ++ wget --quiet --output-document="$TMPF" $URL ++ else ++ if [[ -x /usr/bin/curl ]]; then ++ curl -s $URL >"$TMPF" ++ else ++ echo "$JA: Can't obtain \"$URL\"!" ++ exit 1 ++ fi ++ fi ++ fi ++ fi ++else ++ echo -n "\"$TMPF\" already exist, skipping download..." ++fi ++echo "" ++ ++echo "Process oui.txt (\"$TMPF\")..." ++ ++# if RS is null string, then records are separated by blank lines... ++# but this isn't true in oui.txt ++ ++LANG=C grep "base 16" $TMPF | sed "s/\"/'/g" | $AWK --re-interval --assign URL="$URL" ' ++BEGIN { ++ NN = 0; ++ printf( \ ++ "/*\n" \ ++ " * Organizationally Unique Identifier list at date %s\n" \ ++ " * Automatically generated from %s\n" \ ++ " * For Netdiscover by Jaime Penalba\n" \ ++ " *\n" \ ++ " */\n" \ ++ "\n" \ ++ "struct oui {\n" \ ++ " char *prefix; /* 24 bit global prefix */\n" \ ++ " char *vendor; /* Vendor id string */\n" \ ++ "};\n" \ ++ "\n" \ ++ "struct oui oui_table[] = {\n", strftime("%d-%b-%Y"), URL); ++} ++ ++{ ++ printf(" { \"%s\", \"", $1); ++ for (i=4; i"$DSTD/$DSTF" ++ ++ ++if [ $? -ne 0 ]; then ++ echo "$JA: $TMPF parsing error !" ++ exit 1 ++else ++ echo "All OK" ++ ls -oh oui.txt-* src/oui.h ++fi +diff -uraN netdiscover-0.3-pre-beta7/update-oui-database.sh netdiscover.svn/update-oui-database.sh +--- netdiscover-0.3-pre-beta7/update-oui-database.sh 2015-03-24 05:03:46.000000000 +0100 ++++ netdiscover.svn/update-oui-database.sh 2016-05-22 23:54:48.603446048 +0200 +@@ -1,120 +1,177 @@ + #!/bin/bash + +-# Script for generation "oui.h" file (netdiscover program at +-# http://nixgeneration.com/~jaime/netdiscover/ ++# update-oui-database-ng.sh ++# This script creates the src/oui.h file needed by netdiscover. + # +-# Obtain data from internet source at: +-# lynx -source http://standards.ieee.org/regauth/oui/oui.txt >oui.txt ++# Copyright 2016 Joao Eriberto Mota Filho ++# This file is under GPL-2+ license. + # +-# Syntax: oui.txt2oui.h_netdiscover ++# netdiscover was written by Jaime Penalba Estebanez ++# and is available at http://nixgeneration.com/~jaime/netdiscover/ + # +-# Script generate src/oui.h file. +-# +-# 16-May-2009 Frantisek Hanzlik (Original author) +-# 07-Jun-2001 Larry Reznick (fixes & code clean) +-#********************************************************************** +-# +-# This program is free software; you can redistribute it and/or modify +-# it under the terms of the GNU General Public License as published by +-# the Free Software Foundation; either version 3 of the License, or +-# (at your option) any later version. +-# +- +-JA=${0##*/} +-DATE=$(date +'%Y%m%d') +-ORIGF=oui.txt +-DSTD=src +-DSTF=oui.h +-URL="http://standards.ieee.org/develop/regauth/oui/oui.txt" +-TMPF=$ORIGF-$DATE +-AWK="gawk" +-#AWK="mawk" +-#AWK="awk" +- +-[ -d "$DSTD" ] || { echo "$JA: Destdir \"$DSTD\" not exist!"; exit 1; } +-#if ! [ -f "$TMPF" -a -s "$TMPF" ]; then +-# echo "Trying download \"$ORIGF\" with lynx..." +-# if ! lynx -source $URL >"$TMPF"; then +-# echo "Trying download \"$ORIGF\" with elinks..." +-# if ! elinks -source $URL >"$TMPF"; then +-# echo "Trying download \"$ORIGF\" with wget..." +-# if ! wget --quiet --output-document="$TMPF" $URL; then +-# echo "$JA: Cann't obtain \"$URL\"!" +-# exit 1 +-# fi +-# fi +-# fi +-#else +-# echo "\"$TMPF\" already exist, skipping download..." +-#fi +-if ! [ -f "$TMPF" -a -s "$TMPF" ]; then +- echo -n "Trying download \"$ORIGF\" with lynx..." +- if [[ -x /usr/bin/lynx ]]; then +- lynx -source $URL >"$TMPF" +- else +- echo -n " with elinks..." +- if [[ -x /usr/bin/elinks ]]; then +- elinks -source $URL >"$TMPF" +- else +- echo " with wget..." +- if [[ -x /usr/bin/wget ]]; then +- wget --quiet --output-document="$TMPF" $URL +- else +- if [[ -x /usr/bin/curl ]]; then +- curl -s $URL >"$TMPF" +- else +- echo "$JA: Can't obtain \"$URL\"!" +- exit 1 +- fi +- fi +- fi +- fi +-else +- echo -n "\"$TMPF\" already exist, skipping download..." ++# License for this script: ++# ++# This program is free software; you can redistribute it and/or ++# modify it under the terms of the GNU General Public License ++# as published by the Free Software Foundation; either version 2 ++# of the License, or (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program; if not, write to the Free Software ++# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ++ ++VERSION=0.1 ++ ++# CHANGELOG ++# ++# v0.1, 2016-04-13, Eriberto ++# ++# * Initial release. ++ ++ ++##################### ++# Initial variables # ++##################### ++ ++PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ++ ++DATE=$(date +%F | tr -d "-") ++DATE2=$(date +%F) ++NAME=oui.txt-$DATE ++OUIFILE=src/oui.h ++ ++# Minimum amount of MAC addresses for check. ++# To calculate, use "cat `oui_file` | grep "base 16" | wc -l" ++# Last definition on 2016-04-13. ++MINIMUM_MAC=21900 ++ ++# The original URL[1] redirects to this URL[2]. ++# [1] http://standards.ieee.org/develop/regauth/oui/oui.txt ++# [2] http://standards-oui.ieee.org/oui/oui.txt ++URL=http://standards-oui.ieee.org/oui/oui.txt ++ ++ ++#################### ++# Help and version # ++#################### ++ ++if [ "$1" = "--help" ] ++then ++ printf "\nupdate-oui-database-ng.sh\n\n" ++ printf "Usage: ./update-oui-database-ng.sh [OPTIONS]\n\n" ++ printf " --help Show this help.\n" ++ printf " --no-download Do not download the oui.txt to use an existent version.\n" ++ printf " --version Show version.\n" ++ exit 0 + fi +-echo "" + +-echo "Process oui.txt (\"$TMPF\")..." ++if [ "$1" = "--version" ] ++then ++ printf "\nupdate-oui-database-ng.sh\n\n" ++ printf "Version $VERSION\n\n" ++ exit 0 ++fi + +-# if RS is null string, then records are separated by blank lines... +-# but this isn't true in oui.txt + +-LANG=C grep "base 16" $TMPF | sed "s/\"/'/g" | $AWK --re-interval --assign URL="$URL" ' +-BEGIN { +- NN = 0; +- printf( \ +- "/*\n" \ +- " * Organizationally Unique Identifier list at date %s\n" \ +- " * Automatically generated from %s\n" \ +- " * For Netdiscover by Jaime Penalba\n" \ +- " *\n" \ +- " */\n" \ +- "\n" \ +- "struct oui {\n" \ +- " char *prefix; /* 24 bit global prefix */\n" \ +- " char *vendor; /* Vendor id string */\n" \ +- "};\n" \ +- "\n" \ +- "struct oui oui_table[] = {\n", strftime("%d-%b-%Y"), URL); +-} +- +-{ +- printf(" { \"%s\", \"", $1); +- for (i=4; i"$DSTD/$DSTF" +- +- +-if [ $? -ne 0 ]; then +- echo "$JA: $TMPF parsing error !" +- exit 1 +-else +- echo "All OK" +- ls -oh oui.txt-* src/oui.h ++###################### ++# Check for dos2unix # ++###################### ++ ++dos2unix -V > /dev/null 2> /dev/null || { printf "\nYou need dos2unix command to use this script.\n\n"; exit 1; } ++ ++ ++#################### ++# OUI.txt download # ++#################### ++ ++# Search for downloaders ++ ++DOWN=0 ++ ++if [ "$1" = "--no-download" ]; then DOWN=no; fi ++ ++if [ "$DOWN" = "0" ]; then axel -V > /dev/null 2> /dev/null && DOWN="axel -ao $NAME"; fi ++if [ "$DOWN" = "0" ]; then curl -V > /dev/null 2> /dev/null && DOWN="curl -Lo $NAME"; fi ++if [ "$DOWN" = "0" ]; then wget -V > /dev/null 2> /dev/null && DOWN="wget -O $NAME"; fi ++if [ "$DOWN" = "0" ]; then printf "\nYou need axel (faster!), wget or curl to use this script.\n\n" && exit 1; fi ++ ++# Download the oui.txt ++ ++if [ -f "$NAME" ] && [ "$DOWN" != "no" ] ++then ++ printf "\nThe file $NAME already exists. To run this script, remove $NAME or use --no-download option.\n\n" ++ exit 0 ++elif [ ! -f "$NAME" ] && [ "$DOWN" = "no" ] ++then ++ printf "\nThe file $NAME is missing. To download it, does not use --no-download option.\n\n" ++ exit 0 ++elif [ "$DOWN" != "no" ] ++then ++ printf "\n\nDownloading oui.txt from $URL\n" ++ printf "Downloader to be used: $(echo $DOWN | cut -d" " -f1)\n\n" ++ $DOWN $URL + fi ++ ++# Final check and conversion to Unix ++ ++TOTAL_MAC=$(cat $NAME | grep "base 16" | wc -l) ++ ++if [ "$TOTAL_MAC" -lt "$MINIMUM_MAC" ] ++then ++ printf "\nThe file $NAME seems to be corrupted. There are $TOTAL_MAC MAC addresses. However, over the $MINIMUM_MAC were expected.\n\n" ++ exit 0 ++fi ++ ++dos2unix -q $NAME ++ ++ ++###################### ++# Building src/oui.h # ++###################### ++ ++printf "\n\nBuilding the $OUIFILE.\n" ++ ++# The header ++ ++cat << EOT > $OUIFILE ++/* ++ * Organizationally Unique Identifier list downloaded on $DATE2 ++ * Automatically generated from http://standards.ieee.org/develop/regauth/oui/oui.txt ++ * For Netdiscover by Jaime Penalba ++ * ++ */ ++ ++struct oui { ++ char *prefix; /* 24 bit global prefix */ ++ char *vendor; /* Vendor id string */ ++}; ++ ++struct oui oui_table[] = { ++EOT ++ ++# The MACs ++ ++cat $NAME | grep "base 16" | tr '\t' ' ' | tr -s " " | sed 's/(base 16) //' | \ ++ grep '[0-9A-F]' | sort | sed 's/ /", "/' | sed 's/^/ { "/' | \ ++ sed -z 's/\n/" },#/g' | tr '#' '\n' >> $OUIFILE ++ ++# Total of MACs ++ ++TOTALMAC=$(cat $OUIFILE | egrep "{ .[0-9A-F]" | wc -l) ++ ++# The tail ++ ++cat << EOT >> $OUIFILE ++ { NULL, NULL } ++}; ++ ++// Total $TOTALMAC items. ++EOT ++ ++printf "Done. $OUIFILE has $TOTALMAC MAC addresses.\n" ++# END diff --git a/netdiscover.changes b/netdiscover.changes new file mode 100644 index 0000000..cdd2209 --- /dev/null +++ b/netdiscover.changes @@ -0,0 +1,54 @@ +------------------------------------------------------------------- +Thu Jun 29 08:17:32 UTC 2017 - mpluskal@suse.com + +- Cleaned up spec file with spec-cleaner + +------------------------------------------------------------------- +Sun May 22 22:09:18 UTC 2016 - AxelKoellhofer@web.de - 0.3_beta7 + +- updated sources from svn + * fix for debian bug #818791 + * updated oui update script +- updated oui database + +------------------------------------------------------------------- +Sun Jun 21 21:12:53 UTC 2015 - AxelKoellhofer@web.de - 0.3_beta7 + +- updated oui database + +------------------------------------------------------------------- +Wed May 20 10:23:57 UTC 2015 - AxelKoellhofer@web.de - 0.3_beta7 + +- updated oui database + +------------------------------------------------------------------- +Sat May 2 12:49:56 UTC 2015 - AxelKoellhofer@web.de - 0.3_beta7 + +- updated to 0.3 beta7 pre-release +- updated oui database + +------------------------------------------------------------------- +Sun Mar 24 00:00:00 UTC 2013 - blingblong + +- Initial openSUSE .spec +- Patch updates oui.h with updated MAC addresses + + +------------------------------------------------------------------- +Tue May 2 00:00:00 UTC 2006 - jpenalbae@gmail.com + +- Modified for RedHat/Fedora + + +------------------------------------------------------------------- +Wed Apr 26 00:00:00 UTC 2006 - francis.giraldeau@revolutionlinux.com + +- Correction of installation directories + + +------------------------------------------------------------------- +Mon Mar 27 00:00:00 UTC 2006 - francis.giraldeau@revolutionlinux.com + +- Initial writing + + diff --git a/netdiscover.spec b/netdiscover.spec new file mode 100644 index 0000000..3683105 --- /dev/null +++ b/netdiscover.spec @@ -0,0 +1,67 @@ +# +# 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/ +# + + +%define oui_date 20160522 +Name: netdiscover +Version: 0.3_beta7 +Release: 0 +Summary: A network address discovering/monitoring tool +License: GPL-3.0+ +Group: Productivity/Networking/Other +Url: http://nixgeneration.com/~jaime/netdiscover/ +Source0: http://nixgeneration.com/~jaime/netdiscover/releases/%{name}-0.3-pre-beta7-LINUXONLY.tar.gz +Source1: oui.h-%{oui_date}.bz2 +Source100: %{name}.changes +Patch0: %{name}-upstream-20160415.patch +BuildRequires: autoconf +BuildRequires: automake +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 +%setup -q -n netdiscover-0.3-pre-beta7 +%patch0 -p1 +# update oui database +bzcat %{SOURCE1} > src/oui.h + +%build +autoreconf -fiv +%configure +make %{?_smp_mflags} + +%install +%make_install +rm -rf %{buildroot}%{_datadir}/doc + +%files +%defattr(-,root,root) +%doc ChangeLog COPYING README AUTHORS NEWS TODO +%{_sbindir}/netdiscover +%{_mandir}/man8/*.8* + +%changelog diff --git a/oui.h-20160522.bz2 b/oui.h-20160522.bz2 new file mode 100644 index 0000000..7b10e90 --- /dev/null +++ b/oui.h-20160522.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99a8e03f932aca03c27c1df03c05b554d090b3523d6c4fca62f6214ee5ca51bd +size 190497