File arpwatch-2.1a15-massagevendor.patch of Package arpwatch
xxxxxxxxxx
1
Author: Lars Mueller <lmuelle@suse.com>
2
Subject: Deal with added two whitespaces in more recent oui.txt versions
3
4
Index: arpwatch-2.1a15/massagevendor
5
===================================================================
6
--- arpwatch-2.1a15.orig/massagevendor
7
+++ arpwatch-2.1a15/massagevendor
8
9
# - Deal with duplicates in oui.txt (concatenate company names)
10
#
11
(sed -n \
12
- -e 's/^\([0-9A-F][0-9A-F]\)-\([0-9A-F][0-9A-F]\)-\([0-9A-F][0-9A-F]\) *(hex)[ ]*\(..*\)/\1\2\3 \4/p' \
13
+ -e 's/\([0-9A-F][0-9A-F]\)-\([0-9A-F][0-9A-F]\)-\([0-9A-F][0-9A-F]\) *(hex)[ ]*\(..*\)/\1\2\3 \4/p' \
14
$* | \
15
awk -f euppertolower.awk | \
16
sed -n \
17
- -e 's/^\([0-9A-Za-z][0-9A-Za-z]\)\([0-9A-Za-z][0-9A-Za-z]\)\([0-9A-Za-z][0-9A-Za-z]\)[ ]\(.*\)$/\1:\2:\3 \4/' \
18
- -e 's/^0//' -e 's/:0\([0-9A-Za-z]\)/:\1/g' -e p | \
19
+ -e 's/\([0-9A-Za-z][0-9A-Za-z]\)\([0-9A-Za-z][0-9A-Za-z]\)\([0-9A-Za-z][0-9A-Za-z]\)[ ]\(.*\)$/\1:\2:\3 \4/' \
20
+ -e 's/0//' -e 's/:0\([0-9A-Za-z]\)/:\1/g' -e p | \
21
sort | \
22
awk -f duplicates.awk ) | \
23
awk -f p.awk | \
24