diff options
author | Yen-Ming Lee <leeym@FreeBSD.org> | 2009-05-05 00:00:28 +0000 |
---|---|---|
committer | Yen-Ming Lee <leeym@FreeBSD.org> | 2009-05-05 00:00:28 +0000 |
commit | ac711d0446e19109f37e02ad1c91c784bd236afe (patch) | |
tree | 09e15aa8cc8170ac3fe41a73bf2d266f564fc8aa /net/p5-Net-ARP | |
parent | f02f150fd3705e1dba76a220c0b64c78eabca6e9 (diff) | |
download | ports-ac711d0446e19109f37e02ad1c91c784bd236afe.tar.gz ports-ac711d0446e19109f37e02ad1c91c784bd236afe.zip |
Notes
Diffstat (limited to 'net/p5-Net-ARP')
-rw-r--r-- | net/p5-Net-ARP/Makefile | 4 | ||||
-rw-r--r-- | net/p5-Net-ARP/distinfo | 6 | ||||
-rw-r--r-- | net/p5-Net-ARP/files/patch-ARP.xs | 10 | ||||
-rw-r--r-- | net/p5-Net-ARP/files/patch-send_packet_bsd.c | 17 |
4 files changed, 33 insertions, 4 deletions
diff --git a/net/p5-Net-ARP/Makefile b/net/p5-Net-ARP/Makefile index eb3712abae28..a3e0018c30d9 100644 --- a/net/p5-Net-ARP/Makefile +++ b/net/p5-Net-ARP/Makefile @@ -6,7 +6,7 @@ # PORTNAME= Net-ARP -PORTVERSION= 1.0.3 +PORTVERSION= 1.0.4 CATEGORIES= net perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -15,6 +15,8 @@ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= Perl extension for creating ARP packets +BUILD_DEPENDS= p5-Net-Pcap>=0:${PORTSDIR}/net/p5-Net-Pcap + PERL_CONFIGURE= yes WRKSRC= ${WRKDIR}/${PORTNAME} diff --git a/net/p5-Net-ARP/distinfo b/net/p5-Net-ARP/distinfo index c1dc99c98f75..0d54f1a70d4b 100644 --- a/net/p5-Net-ARP/distinfo +++ b/net/p5-Net-ARP/distinfo @@ -1,3 +1,3 @@ -MD5 (Net-ARP-1.0.3.tgz) = 6c58e0596b301d3b39651901b531dfbe -SHA256 (Net-ARP-1.0.3.tgz) = a4f594c1429d76dbf20828234d8e0bf70cc9e12ee26e12e64be460e5dbe39367 -SIZE (Net-ARP-1.0.3.tgz) = 17018 +MD5 (Net-ARP-1.0.4.tgz) = 8cb4d9d0785c9b3ce8bfff7cf5e0924e +SHA256 (Net-ARP-1.0.4.tgz) = 9a99af116dd8b91addda289a9016753ff51e8d48d4caeb0f852a036e21122c4a +SIZE (Net-ARP-1.0.4.tgz) = 16415 diff --git a/net/p5-Net-ARP/files/patch-ARP.xs b/net/p5-Net-ARP/files/patch-ARP.xs new file mode 100644 index 000000000000..38100d6a5c9d --- /dev/null +++ b/net/p5-Net-ARP/files/patch-ARP.xs @@ -0,0 +1,10 @@ +--- ARP.xs.orig 2009-05-04 16:08:52.000000000 -0700 ++++ ARP.xs 2009-05-04 16:08:58.000000000 -0700 +@@ -27,7 +27,6 @@ + #include <string.h> + #include <errno.h> + #include <net/ethernet.h> +-#include <netinet/ether.h> + #include <net/if.h> + #include <arpa/inet.h> + #include "arp.h" diff --git a/net/p5-Net-ARP/files/patch-send_packet_bsd.c b/net/p5-Net-ARP/files/patch-send_packet_bsd.c new file mode 100644 index 000000000000..88313c1a1624 --- /dev/null +++ b/net/p5-Net-ARP/files/patch-send_packet_bsd.c @@ -0,0 +1,17 @@ +--- send_packet_bsd.c.orig 2009-05-04 16:27:55.000000000 -0700 ++++ send_packet_bsd.c 2009-05-04 16:28:43.000000000 -0700 +@@ -56,7 +56,13 @@ + flock(bpffd,LOCK_EX); + + // Bind it to a device +- ioctl(bpffd,BIOCSETIF,dev); ++ if (ioctl(bpffd,BIOCSETIF,dev) == -1) ++ { ++ flock(bpffd,LOCK_UN); ++ close(bpffd); ++ perror("open bpf"); ++ return 0; ++ } + + // Send the packet and unlock + write(bpffd,packet,packetsize); |