diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-07-07 17:30:12 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-07-07 17:30:12 +0000 |
commit | 15a909427cb1c88dfe1571347a451aaf61eefb5b (patch) | |
tree | d4d19e41fabea9911bfbe65808462b4bb7ffbfc2 /net/arping/patches/patch-aa | |
parent | d3d73f6357e96b1509c0bf17c8e531544e36da96 (diff) | |
download | pkgsrc-15a909427cb1c88dfe1571347a451aaf61eefb5b.tar.gz |
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 (limited to 'net/arping/patches/patch-aa')
-rw-r--r-- | net/arping/patches/patch-aa | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/net/arping/patches/patch-aa b/net/arping/patches/patch-aa new file mode 100644 index 00000000000..0bcef240adf --- /dev/null +++ b/net/arping/patches/patch-aa @@ -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 |