diff options
author | Brian Somers <brian@FreeBSD.org> | 1997-07-01 02:05:06 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1997-07-01 02:05:06 +0000 |
commit | 1f4132c7d8c4394c2b2f5b21bbf699df04d7a499 (patch) | |
tree | 518945368514394337071d43e6836b36ae030ce3 /net-mgmt | |
parent | a58aeceed287ba8d7c3092871cdac838ee526341 (diff) | |
download | ports-1f4132c7d8c4394c2b2f5b21bbf699df04d7a499.tar.gz ports-1f4132c7d8c4394c2b2f5b21bbf699df04d7a499.zip |
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/arpwatch-devel/Makefile | 15 | ||||
-rw-r--r-- | net-mgmt/arpwatch-devel/files/arpwatch.sh | 4 | ||||
-rw-r--r-- | net-mgmt/arpwatch-devel/files/patch-ab | 19 | ||||
-rw-r--r-- | net-mgmt/arpwatch-devel/pkg-plist | 7 | ||||
-rw-r--r-- | net-mgmt/arpwatch/Makefile | 15 | ||||
-rw-r--r-- | net-mgmt/arpwatch/files/arpwatch.sh | 4 | ||||
-rw-r--r-- | net-mgmt/arpwatch/files/patch-ab | 19 | ||||
-rw-r--r-- | net-mgmt/arpwatch/pkg-plist | 7 |
8 files changed, 78 insertions, 12 deletions
diff --git a/net-mgmt/arpwatch-devel/Makefile b/net-mgmt/arpwatch-devel/Makefile index 5d9e457f13b8..b46d80a25461 100644 --- a/net-mgmt/arpwatch-devel/Makefile +++ b/net-mgmt/arpwatch-devel/Makefile @@ -3,7 +3,7 @@ # Date created: March 24 1997 # Whom: Brian Somers <brian@awfulhak.org> # -# $Id: Makefile,v 1.4 1997/04/13 16:01:12 brian Exp $ +# $Id: Makefile,v 1.5 1997/05/28 22:52:20 fenner Exp $ # DISTNAME= arpwatch-2.0.2a1 @@ -22,12 +22,17 @@ MAN8= arpwatch.8 arpsnmp.8 post-install: - if [ ! -d ${PREFIX}/arpwatch ]; then \ - ${MKDIR} ${PREFIX}/arpwatch; \ - chmod 775 ${PREFIX}/arpwatch; \ - /usr/sbin/chown root.operator ${PREFIX}/arpwatch; \ + if [ ! -d ${PREFIX}/arpwatch ]; then \ + ${MKDIR} ${PREFIX}/arpwatch; \ + chmod 775 ${PREFIX}/arpwatch; \ + /usr/sbin/chown root.operator ${PREFIX}/arpwatch; \ fi touch ${PREFIX}/arpwatch/arp.dat chmod 644 ${PREFIX}/arpwatch/arp.dat + for file in ethercodes.dat d.awk e.awk p.awk; do \ + ${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/arpwatch/.; \ + done + ${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch/. + ${INSTALL_SCRIPT} ${FILESDIR}/arpwatch.sh ${PREFIX}/etc/rc.d/. .include <bsd.port.mk> 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/ .* / /' | \ diff --git a/net-mgmt/arpwatch-devel/pkg-plist b/net-mgmt/arpwatch-devel/pkg-plist index 95c1f249e5c6..7cd10c65b24b 100644 --- a/net-mgmt/arpwatch-devel/pkg-plist +++ b/net-mgmt/arpwatch-devel/pkg-plist @@ -2,4 +2,9 @@ sbin/arpwatch sbin/arpsnmp man/man8/arpwatch.8.gz man/man8/arpsnmp.8.gz -arpwatch/arp.dat +arpwatch/arp2ethers +arpwatch/ethercodes.dat +arpwatch/d.awk +arpwatch/e.awk +arpwatch/p.awk +etc/rc.d/arpwatch.sh diff --git a/net-mgmt/arpwatch/Makefile b/net-mgmt/arpwatch/Makefile index 5d9e457f13b8..b46d80a25461 100644 --- a/net-mgmt/arpwatch/Makefile +++ b/net-mgmt/arpwatch/Makefile @@ -3,7 +3,7 @@ # Date created: March 24 1997 # Whom: Brian Somers <brian@awfulhak.org> # -# $Id: Makefile,v 1.4 1997/04/13 16:01:12 brian Exp $ +# $Id: Makefile,v 1.5 1997/05/28 22:52:20 fenner Exp $ # DISTNAME= arpwatch-2.0.2a1 @@ -22,12 +22,17 @@ MAN8= arpwatch.8 arpsnmp.8 post-install: - if [ ! -d ${PREFIX}/arpwatch ]; then \ - ${MKDIR} ${PREFIX}/arpwatch; \ - chmod 775 ${PREFIX}/arpwatch; \ - /usr/sbin/chown root.operator ${PREFIX}/arpwatch; \ + if [ ! -d ${PREFIX}/arpwatch ]; then \ + ${MKDIR} ${PREFIX}/arpwatch; \ + chmod 775 ${PREFIX}/arpwatch; \ + /usr/sbin/chown root.operator ${PREFIX}/arpwatch; \ fi touch ${PREFIX}/arpwatch/arp.dat chmod 644 ${PREFIX}/arpwatch/arp.dat + for file in ethercodes.dat d.awk e.awk p.awk; do \ + ${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/arpwatch/.; \ + done + ${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch/. + ${INSTALL_SCRIPT} ${FILESDIR}/arpwatch.sh ${PREFIX}/etc/rc.d/. .include <bsd.port.mk> diff --git a/net-mgmt/arpwatch/files/arpwatch.sh b/net-mgmt/arpwatch/files/arpwatch.sh new file mode 100644 index 000000000000..2214ebee3d92 --- /dev/null +++ b/net-mgmt/arpwatch/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/files/patch-ab b/net-mgmt/arpwatch/files/patch-ab new file mode 100644 index 000000000000..354bd448d8c3 --- /dev/null +++ b/net-mgmt/arpwatch/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/ .* / /' | \ diff --git a/net-mgmt/arpwatch/pkg-plist b/net-mgmt/arpwatch/pkg-plist index 95c1f249e5c6..7cd10c65b24b 100644 --- a/net-mgmt/arpwatch/pkg-plist +++ b/net-mgmt/arpwatch/pkg-plist @@ -2,4 +2,9 @@ sbin/arpwatch sbin/arpsnmp man/man8/arpwatch.8.gz man/man8/arpsnmp.8.gz -arpwatch/arp.dat +arpwatch/arp2ethers +arpwatch/ethercodes.dat +arpwatch/d.awk +arpwatch/e.awk +arpwatch/p.awk +etc/rc.d/arpwatch.sh |