diff options
author | Brian Somers <brian@FreeBSD.org> | 1997-03-30 17:19:56 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1997-03-30 17:19:56 +0000 |
commit | 4155dab552effcfc9649b1b079121ff7f4c19974 (patch) | |
tree | 88d272acfd87fd8c8910b7331f4206abadfcde70 /net/arpwatch | |
parent | Fix name of include file. Packaging now works, so we can close PR (diff) |
Import arpwatch version 2.0.1a1, a tool for monitoring
a network interface and maintaining a table of MAC
addresses against IP numbers and host names.
Notes
Notes:
svn path=/head/; revision=6070
Diffstat (limited to 'net/arpwatch')
-rw-r--r-- | net/arpwatch/Makefile | 30 | ||||
-rw-r--r-- | net/arpwatch/distinfo | 1 | ||||
-rw-r--r-- | net/arpwatch/files/patch-aa | 18 | ||||
-rw-r--r-- | net/arpwatch/pkg-comment | 2 | ||||
-rw-r--r-- | net/arpwatch/pkg-descr | 33 | ||||
-rw-r--r-- | net/arpwatch/pkg-plist | 4 |
6 files changed, 88 insertions, 0 deletions
diff --git a/net/arpwatch/Makefile b/net/arpwatch/Makefile new file mode 100644 index 000000000000..71e3fdafe0a0 --- /dev/null +++ b/net/arpwatch/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: arpwatch +# Version required: 2.0.1a1 +# Date created: March 24 1997 +# Whom: Brian Somers <brian@awfulhak.demon.co.uk> +# +# $Id$ +# + +DISTNAME= arpwatch-2.0.1a1 +PKGNAME= arpwatch-2.0.1a1 +CATEGORIES+= net +MASTER_SITES= ftp://ftp.ee.lbl.gov/ \ + ftp://ftp.cso.uiuc.edu/pub/security/coast/unix/arpwatch/ +EXTRACT_SUFX= .tar.Z +MAINTAINER= brian@awfulhak.demon.co.uk +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --quiet +MAKE_FLAGS+= CCOPT="-O2 -DPATH_SENDMAIL=\\\"/usr/sbin/sendmail\\\"" + +post-install: + cd ${WRKSRC}; make install-man + if [ ! -d ${PREFIX}/arpwatch ]; then \ + mkdir ${PREFIX}/arpwatch; \ + chmod 775 ${PREFIX}/arpwatch; \ + chown root.operator ${PREFIX}/arpwatch; \ + fi + touch ${PREFIX}/arpwatch/arp.dat + chmod 644 ${PREFIX}/arpwatch/arp.dat + +.include <bsd.port.mk> diff --git a/net/arpwatch/distinfo b/net/arpwatch/distinfo new file mode 100644 index 000000000000..1db7ad78bc50 --- /dev/null +++ b/net/arpwatch/distinfo @@ -0,0 +1 @@ +MD5 (arpwatch-2.0.1a1.tar.Z) = 8b5b85103c754907cb0299e40000b944 diff --git a/net/arpwatch/files/patch-aa b/net/arpwatch/files/patch-aa new file mode 100644 index 000000000000..990e0b88b273 --- /dev/null +++ b/net/arpwatch/files/patch-aa @@ -0,0 +1,18 @@ +*** arpwatch.c.orig Thu Jan 2 04:57:42 1997 +--- arpwatch.c Sun Mar 30 13:21:09 1997 +*************** +*** 43,48 **** +--- 43,55 ---- + #endif + #include <net/if.h> + ++ #ifdef __FreeBSD__ ++ #include <osreldate.h> ++ #if __FreeBSD_version >= 199702 ++ #include <net/if_var.h> ++ #endif ++ #endif ++ + #include <netinet/in.h> + #include <netinet/if_ether.h> + diff --git a/net/arpwatch/pkg-comment b/net/arpwatch/pkg-comment new file mode 100644 index 000000000000..72a872aee3d6 --- /dev/null +++ b/net/arpwatch/pkg-comment @@ -0,0 +1,2 @@ +Monitor arp & rarp requests, building a table of known +IP resolutions and DNS entries on the local network. diff --git a/net/arpwatch/pkg-descr b/net/arpwatch/pkg-descr new file mode 100644 index 000000000000..4d625bc60690 --- /dev/null +++ b/net/arpwatch/pkg-descr @@ -0,0 +1,33 @@ +Maintained under FreeBSD by: brian@awfulhak.demon.co.uk + +ARPWATCH 2.0 +Lawrence Berkeley National Laboratory +Network Research Group +arpwatch@ee.lbl.gov +ftp://ftp.ee.lbl.gov/arpwatch.tar.Z + +This directory contains source code for arpwatch and arpsnmp, tools +that monitors ethernet activity and maintain a database of ethernet/ip +address pairings. It also reports certain changes via email. + +Arpwatch uses libpcap, a system-independent interface for user-level +packet capture. Before building arpwatch, you must first retrieve and +build libpcap, also from LBL, in: + + ftp://ftp.ee.lbl.gov/libpcap.tar.Z. + +Once libpcap is built (either install it or make sure arpwatch and +libpcap share the same parent directory), you can build arpwatch using +the procedure in the INSTALL file. + +Arpsnmp has the same database features of arpwatch but relies on an +external agent to collect the arp data. This distribution contains a +script, arpfetch, that uses snmpwalk from the CMU SNMP package. This +package is available from: + + ftp://ftp.net.cmu.edu/pub/snmp-dist/cmu-snmp*.tar.Z + +It should be trivial to adaptive the output of any snmp query program +for use with arpsnmp. + +Please send bugs and comments to arpwatch@ee.lbl.gov. diff --git a/net/arpwatch/pkg-plist b/net/arpwatch/pkg-plist new file mode 100644 index 000000000000..94e26bc31a3a --- /dev/null +++ b/net/arpwatch/pkg-plist @@ -0,0 +1,4 @@ +sbin/arpwatch +sbin/arpsnmp +man/man8/arpwatch.8 +man/man8/arpsnmp.8 |