aboutsummaryrefslogtreecommitdiffstats
path: root/main/arpwatch/13_all_arpwatch-2.1a15-scripts-awk.patch
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2013-07-08 11:33:58 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2013-07-08 11:34:11 +0000
commit411a2782aaa756b3a8f3988763ac592cff1257b3 (patch)
treef3506a151a9b2e71ed9417f298e40f11e8d66418 /main/arpwatch/13_all_arpwatch-2.1a15-scripts-awk.patch
parent0852cf7df3027cc1addd921d31c0b032983196e0 (diff)
downloadaports-411a2782aaa756b3a8f3988763ac592cff1257b3.tar.bz2
aports-411a2782aaa756b3a8f3988763ac592cff1257b3.tar.xz
main/arpwatch: added several patches for improving options and security
Diffstat (limited to 'main/arpwatch/13_all_arpwatch-2.1a15-scripts-awk.patch')
-rw-r--r--main/arpwatch/13_all_arpwatch-2.1a15-scripts-awk.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/main/arpwatch/13_all_arpwatch-2.1a15-scripts-awk.patch b/main/arpwatch/13_all_arpwatch-2.1a15-scripts-awk.patch
new file mode 100644
index 0000000000..227fd328de
--- /dev/null
+++ b/main/arpwatch/13_all_arpwatch-2.1a15-scripts-awk.patch
@@ -0,0 +1,31 @@
+diff -Naru arpwatch-2.1a15.orig/arp2ethers arpwatch-2.1a15/arp2ethers
+--- arpwatch-2.1a15.orig/arp2ethers 2002-01-05 22:40:48.000000000 +0300
++++ arpwatch-2.1a15/arp2ethers 2006-09-23 22:47:02.000000000 +0400
+@@ -13,11 +13,10 @@
+ # - sort
+ #
+
+-sort +2rn arp.dat | \
+- awk 'NF == 4 { print }' | \
++export AWKPATH="$AWKPATH:/usr/share/arpwatch/awk"
++
++sort -k 3rn ${1:-/var/lib/arpwatch/arp.dat} | \
+ awk -f p.awk | \
+- egrep -v '\.[0-9][0-9]*$' | \
+- sed -e 's/ .* / /' | \
+ awk -f d.awk | \
+ awk -f e.awk | \
+ sort
+diff -Naru arpwatch-2.1a15.orig/massagevendor arpwatch-2.1a15/massagevendor
+--- arpwatch-2.1a15.orig/massagevendor 2004-01-28 22:32:43.000000000 +0300
++++ arpwatch-2.1a15/massagevendor 2006-09-23 22:49:42.000000000 +0400
+@@ -9,6 +9,9 @@
+ #
+ # - Deal with duplicates in oui.txt (concatenate company names)
+ #
++
++export AWKPATH="$AWKPATH:/usr/share/arpwatch/awk"
++
+ (sed -n \
+ -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' \
+ $* | \