diff options
author | brian <brian@FreeBSD.org> | 1997-03-31 01:19:56 +0800 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-03-31 01:19:56 +0800 |
commit | ba251791e5515dcb721b1be157f5d4e8a7226dcc (patch) | |
tree | 6f83a056e2881a8ff88186ba36e13475fe2df774 /net/arpwatch-devel | |
parent | 3b30be6faec3ab569070fbeecb3a11a8fe7db42f (diff) | |
download | freebsd-ports-gnome-ba251791e5515dcb721b1be157f5d4e8a7226dcc.tar.gz freebsd-ports-gnome-ba251791e5515dcb721b1be157f5d4e8a7226dcc.tar.zst freebsd-ports-gnome-ba251791e5515dcb721b1be157f5d4e8a7226dcc.zip |
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.
Diffstat (limited to 'net/arpwatch-devel')
-rw-r--r-- | net/arpwatch-devel/Makefile | 30 | ||||
-rw-r--r-- | net/arpwatch-devel/distinfo | 1 | ||||
-rw-r--r-- | net/arpwatch-devel/files/patch-aa | 18 | ||||
-rw-r--r-- | net/arpwatch-devel/pkg-comment | 2 | ||||
-rw-r--r-- | net/arpwatch-devel/pkg-descr | 33 | ||||
-rw-r--r-- | net/arpwatch-devel/pkg-plist | 4 |
6 files changed, 88 insertions, 0 deletions
diff --git a/net/arpwatch-devel/Makefile b/net/arpwatch-devel/Makefile new file mode 100644 index 000000000000..71e3fdafe0a0 --- /dev/null +++ b/net/arpwatch-devel/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-devel/distinfo b/net/arpwatch-devel/distinfo new file mode 100644 index 000000000000..1db7ad78bc50 --- /dev/null +++ b/net/arpwatch-devel/distinfo @@ -0,0 +1 @@ +MD5 (arpwatch-2.0.1a1.tar.Z) = 8b5b85103c754907cb0299e40000b944 diff --git a/net/arpwatch-devel/files/patch-aa b/net/arpwatch-devel/files/patch-aa new file mode 100644 index 000000000000..990e0b88b273 --- /dev/null +++ b/net/arpwatch-devel/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-devel/pkg-comment b/net/arpwatch-devel/pkg-comment new file mode 100644 index 000000000000..72a872aee3d6 --- /dev/null +++ b/net/arpwatch-devel/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-devel/pkg-descr b/net/arpwatch-devel/pkg-descr new file mode 100644 index 000000000000..4d625bc60690 --- /dev/null +++ b/net/arpwatch-devel/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-devel/pkg-plist b/net/arpwatch-devel/pkg-plist new file mode 100644 index 000000000000..94e26bc31a3a --- /dev/null +++ b/net/arpwatch-devel/pkg-plist @@ -0,0 +1,4 @@ +sbin/arpwatch +sbin/arpsnmp +man/man8/arpwatch.8 +man/man8/arpsnmp.8 |