pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/arping Initial import of arping-2.01 from pkgsrc-w...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/938c9c66717c
branches:  trunk
changeset: 477717:938c9c66717c
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Wed Jul 07 17:30:12 2004 +0000

description:
Initial import of arping-2.01 from pkgsrc-wip, contributed by
Quentin Garnier.

Arping can be used to find out it a specific IP address on the LAN is 'taken'
and what MAC address owns it.  Sure, you *could* just use 'ping' to find out if
it's taken and even if the computer blocks ping (and everything else) you still
get an entry in your ARP cache.  But what if you aren't on a routable net?  Or
the host blocks ping (all ICMP even)?  Then you're screwed.  Or you use arping.

diffstat:

 net/arping/DESCR            |   5 +++
 net/arping/Makefile         |  32 +++++++++++++++++++++++
 net/arping/PLIST            |   3 ++
 net/arping/distinfo         |   6 ++++
 net/arping/patches/patch-aa |  61 +++++++++++++++++++++++++++++++++++++++++++++
 net/arping/patches/patch-ab |  13 +++++++++
 6 files changed, 120 insertions(+), 0 deletions(-)

diffs (144 lines):

diff -r 87d2a19c9c30 -r 938c9c66717c net/arping/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/arping/DESCR  Wed Jul 07 17:30:12 2004 +0000
@@ -0,0 +1,5 @@
+Arping can be used to find out it a specific IP address on the LAN is 'taken'
+and what MAC address owns it.  Sure, you *could* just use 'ping' to find out if
+it's taken and even if the computer blocks ping (and everything else) you still
+get an entry in your ARP cache.  But what if you aren't on a routable net?  Or
+the host blocks ping (all ICMP even)?  Then you're screwed.  Or you use arping.
diff -r 87d2a19c9c30 -r 938c9c66717c net/arping/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/arping/Makefile       Wed Jul 07 17:30:12 2004 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/07 17:30:12 xtraeme Exp $
+#
+
+PKGNAME=               arping-1.08
+DISTNAME=              arping-2.01
+CATEGORIES=            net
+MASTER_SITES=          ftp://ftp.habets.pp.se/pub/synscan/
+
+MAINTAINER=            cube%NetBSD.org@localhost
+HOMEPAGE=              ftp://ftp.habets.pp.se/pub/synscan/
+COMMENT=               ARP-level ping utility
+
+USE_BUILDLINK3=                yes
+NO_CONFIGURE=          yes
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
+ALL_TARGET=            openbsd
+.elif ${OPSYS} == "Linux"
+ALL_TARGET=            linux
+.elif ${OPSYS} == "FreeBSD"
+ALL_TARGET=            freebsd
+.elif ${OPSYS} == "SunOS"
+ALL_TARGET=            solaris
+.elif ${OPSYS} == "Darwin"
+ALL_TARGET=            macosx
+.endif
+
+.include "../../devel/libnet/buildlink3.mk"
+.include "../../net/libpcap/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 87d2a19c9c30 -r 938c9c66717c net/arping/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/arping/PLIST  Wed Jul 07 17:30:12 2004 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/07 17:30:12 xtraeme Exp $
+bin/arping
+man/man8/arping.8
diff -r 87d2a19c9c30 -r 938c9c66717c net/arping/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/arping/distinfo       Wed Jul 07 17:30:12 2004 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/07/07 17:30:12 xtraeme Exp $
+
+SHA1 (arping-2.01.tar.gz) = 00a84f390c9f9b5c9ac2ce457f0bd405bab2a63b
+Size (arping-2.01.tar.gz) = 31366 bytes
+SHA1 (patch-aa) = 3c6b4d78ddec573527c9f59173b17427ffc678d1
+SHA1 (patch-ab) = 17ef8cc62a202589bb9efb276d1bd99772648a22
diff -r 87d2a19c9c30 -r 938c9c66717c net/arping/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/arping/patches/patch-aa       Wed Jul 07 17:30:12 2004 +0000
@@ -0,0 +1,61 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/07/07 17:30:12 xtraeme Exp $
+
+--- Makefile.orig      2003-08-04 01:20:07.000000000 +0200
++++ Makefile
+@@ -9,9 +9,9 @@ SOLARIS=0
+ FREEBSD=0
+ MACOSX=0
+ 
+-CC=gcc
++#CC=gcc
+ # explicit pcap include dir is for redhat which is fux0red
+-CFLAGS=-g -I/usr/local/include -L/usr/local/lib -DFINDIF=$(FINDIF) -DUSE_NETIF=$(USE_NETIF) -DOPENBSD=$(OPENBSD) -DLINUX=$(LINUX) -DSOLARIS=$(SOLARIS) -DFREEBSD=$(FREEBSD) -DMACOSX=$(MACOSX) 
-I/usr/include/pcap
++CFLAGS=-I$(BUILDLINK_DIR)/include -L$(BUILDLINK_DIR)/lib -DFINDIF=$(FINDIF) -DUSE_NETIF=$(USE_NETIF) -DOPENBSD=$(OPENBSD) -DLINUX=$(LINUX) -DSOLARIS=$(SOLARIS) -DFREEBSD=$(FREEBSD) 
-DMACOSX=$(MACOSX)
+ 
+ all: message arping2
+ 
+@@ -54,34 +54,34 @@ doc: arping.yodl
+       yodl2man -o arping.8 arping.yodl
+ 
+ linux-nofindif:
+-      make USE_NETIF=1 LINUX=1 FINDIF=0 arping1-make
++      $(MAKE) USE_NETIF=1 LINUX=1 FINDIF=0 arping1-make
+ linux:
+-      make USE_NETIF=1 LINUX=1 arping1-make
++      $(MAKE) USE_NETIF=1 LINUX=1 arping1-make
+ 
+ freebsd:
+-      make USE_NETIF=1 FREEBSD=1 arping1-make
++      $(MAKE) USE_NETIF=1 FREEBSD=1 arping1-make
+ 
+ macosx:
+-      make USE_NETIF=1 MACOSX=1 arping1-make
++      $(MAKE) USE_NETIF=1 MACOSX=1 arping1-make
+ 
+ openbsd:
+-      make OPENBSD=1 arping1-make
++      $(MAKE) OPENBSD=1 arping1-make
+ netbsd:
+-      make openbsd
++      $(MAKE) openbsd
+ 
+ solaris:
+-      make USE_NETIF=0 SOLARIS=1 arping1-make
++      $(MAKE) USE_NETIF=0 SOLARIS=1 arping1-make
+ 
+ install:
+-      install -c arping /usr/local/bin/arping
+-      install arping.8 /usr/local/man/man8/arping.8
++      $(BSD_INSTALL) -c arping $(PREFIX)/bin/arping
++      $(BSD_INSTALL) -c arping.8 $(PREFIX)/man/man8/arping.8
+ 
+ arping.o: arping.c
+       $(CC) -Wall $(CFLAGS) -c `libnet-config --defines` `libnet-config --cflags` arping.c
+ 
+ O_arping=arping.o
+ arping1-make: $(O_arping)
+-      $(CC) $(CFLAGS) -g -o arping $(O_arping) `libnet-config --libs` -lpcap
++      $(CC) $(CFLAGS) -o arping $(O_arping) `libnet-config --libs` -lpcap
+ 
+ O_arping2=arping-2/arping.c
+ arping2: arping-2/arping
diff -r 87d2a19c9c30 -r 938c9c66717c net/arping/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/arping/patches/patch-ab       Wed Jul 07 17:30:12 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/07/07 17:30:12 xtraeme Exp $
+
+--- openbsd.h.orig     2000-09-15 19:22:30.000000000 +0200
++++ openbsd.h
+@@ -22,7 +22,7 @@ struct icmphdr {
+               } echo;
+               __u32 gateway;
+               struct {
+-                      __u16 __unused;
++                      __u16 arping__unused;
+                       __u16 mtu;
+               } frag;
+       } un;



Home | Main Index | Thread Index | Old Index