- Install scripts and provide instruction to update ethercodes.dat

- Bump PORTREVISION

PR:		ports/152624
This commit is contained in:
Thomas Abthorpe 2010-12-01 19:34:48 +00:00
parent 3c3a36b653
commit 483f3faf88
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265522
3 changed files with 22 additions and 5 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= arpwatch
PORTVERSION= 2.1.a15
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= net-mgmt
MASTER_SITES= ftp://ftp.ee.lbl.gov/ \
${MASTER_SITE_GENTOO}
@ -25,6 +25,7 @@ MAKE_ENV+= BINOWN="${BINOWN}" BINGRP="${BINGRP}"
INSTALL_TARGET= install install-man
MAN8= arpwatch.8 arpsnmp.8
SUB_FILES= pkg-message
USE_RC_SUBR= arpwatch.sh
.ifdef ARPDIR
@ -39,9 +40,12 @@ post-install:
fi
${TOUCH} ${PREFIX}/arpwatch/arp.dat
${CHMOD} 644 ${PREFIX}/arpwatch/arp.dat
for files in ethercodes.dat d.awk e.awk p.awk; do \
for files in ethercodes.dat d.awk duplicates.awk euppertolower.awk e.awk p.awk; do \
${INSTALL_DATA} ${WRKSRC}/$$files ${PREFIX}/arpwatch; \
done
${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch
${INSTALL_SCRIPT} ${WRKSRC}/massagevendor ${PREFIX}/arpwatch
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
You can update the ethercodes.dat file executing the following steps
cd %%PREFIX%%/arpwatch
fetch http://standards.ieee.org/regauth/oui/oui.txt
./massagevendor oui.txt > ethercodes.dat
rm oui.txt

View File

@ -1,10 +1,13 @@
sbin/arpwatch
sbin/arpsnmp
arpwatch/arp2ethers
arpwatch/ethercodes.dat
arpwatch/d.awk
arpwatch/duplicates.awk
arpwatch/e.awk
arpwatch/ethercodes.dat
arpwatch/euppertolower.awk
arpwatch/massagevendor
arpwatch/p.awk
sbin/arpsnmp
sbin/arpwatch
@unexec test -f %D/arpwatch/arp.dat && test -s %D/arpwatch/arp.dat || rm -f %D/arpwatch/arp.dat
@exec test -f %D/arpwatch/arp.dat || touch %D/arpwatch/arp.dat
@dirrm arpwatch