- Install scripts and provide instruction to update ethercodes.dat
- Bump PORTREVISION PR: ports/152624
This commit is contained in:
parent
3c3a36b653
commit
483f3faf88
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265522
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
PORTNAME= arpwatch
|
PORTNAME= arpwatch
|
||||||
PORTVERSION= 2.1.a15
|
PORTVERSION= 2.1.a15
|
||||||
PORTREVISION= 5
|
PORTREVISION= 6
|
||||||
CATEGORIES= net-mgmt
|
CATEGORIES= net-mgmt
|
||||||
MASTER_SITES= ftp://ftp.ee.lbl.gov/ \
|
MASTER_SITES= ftp://ftp.ee.lbl.gov/ \
|
||||||
${MASTER_SITE_GENTOO}
|
${MASTER_SITE_GENTOO}
|
||||||
@ -25,6 +25,7 @@ MAKE_ENV+= BINOWN="${BINOWN}" BINGRP="${BINGRP}"
|
|||||||
INSTALL_TARGET= install install-man
|
INSTALL_TARGET= install install-man
|
||||||
MAN8= arpwatch.8 arpsnmp.8
|
MAN8= arpwatch.8 arpsnmp.8
|
||||||
|
|
||||||
|
SUB_FILES= pkg-message
|
||||||
USE_RC_SUBR= arpwatch.sh
|
USE_RC_SUBR= arpwatch.sh
|
||||||
|
|
||||||
.ifdef ARPDIR
|
.ifdef ARPDIR
|
||||||
@ -39,9 +40,12 @@ post-install:
|
|||||||
fi
|
fi
|
||||||
${TOUCH} ${PREFIX}/arpwatch/arp.dat
|
${TOUCH} ${PREFIX}/arpwatch/arp.dat
|
||||||
${CHMOD} 644 ${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; \
|
${INSTALL_DATA} ${WRKSRC}/$$files ${PREFIX}/arpwatch; \
|
||||||
done
|
done
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch
|
${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/massagevendor ${PREFIX}/arpwatch
|
||||||
|
|
||||||
|
@${CAT} ${PKGMESSAGE}
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
10
net-mgmt/arpwatch/files/pkg-message.in
Normal file
10
net-mgmt/arpwatch/files/pkg-message.in
Normal 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
|
||||||
|
|
||||||
|
|
@ -1,10 +1,13 @@
|
|||||||
sbin/arpwatch
|
|
||||||
sbin/arpsnmp
|
|
||||||
arpwatch/arp2ethers
|
arpwatch/arp2ethers
|
||||||
arpwatch/ethercodes.dat
|
|
||||||
arpwatch/d.awk
|
arpwatch/d.awk
|
||||||
|
arpwatch/duplicates.awk
|
||||||
arpwatch/e.awk
|
arpwatch/e.awk
|
||||||
|
arpwatch/ethercodes.dat
|
||||||
|
arpwatch/euppertolower.awk
|
||||||
|
arpwatch/massagevendor
|
||||||
arpwatch/p.awk
|
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
|
@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
|
@exec test -f %D/arpwatch/arp.dat || touch %D/arpwatch/arp.dat
|
||||||
@dirrm arpwatch
|
@dirrm arpwatch
|
||||||
|
Loading…
Reference in New Issue
Block a user