aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/arpwatch-devel/files
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-07-01 10:05:06 +0800
committerbrian <brian@FreeBSD.org>1997-07-01 10:05:06 +0800
commitc60e057e262e6fb5a15f1d0e075c86389d74b1f0 (patch)
tree48f97efb94ed30929d875df1affab9182e317eea /net-mgmt/arpwatch-devel/files
parente4b8c8f963bdbb7c89bd88907ff848c52b62a017 (diff)
downloadfreebsd-ports-gnome-c60e057e262e6fb5a15f1d0e075c86389d74b1f0.tar.gz
freebsd-ports-gnome-c60e057e262e6fb5a15f1d0e075c86389d74b1f0.tar.zst
freebsd-ports-gnome-c60e057e262e6fb5a15f1d0e075c86389d74b1f0.zip
Patch and add arp2ethers & ethercodes.dat installation.
Suggested by: neil.long@materials.oxford.ac.uk (Neil J Long) Add etc/rc.d/arpwatch.sh Don't mention arp.dat as an "installed" file - we may want this after pkg_delete.
Diffstat (limited to 'net-mgmt/arpwatch-devel/files')
-rw-r--r--net-mgmt/arpwatch-devel/files/arpwatch.sh4
-rw-r--r--net-mgmt/arpwatch-devel/files/patch-ab19
2 files changed, 23 insertions, 0 deletions
diff --git a/net-mgmt/arpwatch-devel/files/arpwatch.sh b/net-mgmt/arpwatch-devel/files/arpwatch.sh
new file mode 100644
index 000000000000..2214ebee3d92
--- /dev/null
+++ b/net-mgmt/arpwatch-devel/files/arpwatch.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+if [ -x /usr/local/sbin/arpwatch -a -d /usr/local/arpwatch ]; then
+ arpwatch && echo -n ' arpwatch'
+fi
diff --git a/net-mgmt/arpwatch-devel/files/patch-ab b/net-mgmt/arpwatch-devel/files/patch-ab
new file mode 100644
index 000000000000..354bd448d8c3
--- /dev/null
+++ b/net-mgmt/arpwatch-devel/files/patch-ab
@@ -0,0 +1,19 @@
+*** arp2ethers.orig Tue Mar 29 11:44:52 1994
+--- arp2ethers Tue Jul 1 02:34:40 1997
+***************
+*** 14,20 ****
+ #
+
+ sort +2rn arp.dat | \
+! awk -e 'NF == 4 { print }' | \
+ awk -f p.awk | \
+ egrep -v '\.[0-9][0-9]*$' | \
+ sed -e 's/ .* / /' | \
+--- 14,20 ----
+ #
+
+ sort +2rn arp.dat | \
+! awk 'NF == 4 { print }' | \
+ awk -f p.awk | \
+ egrep -v '\.[0-9][0-9]*$' | \
+ sed -e 's/ .* / /' | \