aboutsummaryrefslogtreecommitdiffstats
path: root/net/p5-Net-ARP
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2009-05-05 08:00:28 +0800
committerleeym <leeym@FreeBSD.org>2009-05-05 08:00:28 +0800
commit5afb131fc74de74c4a401f5c3f10fa2bb2c22d04 (patch)
tree94570149ce3513f16dbfb998391c47d577f8c019 /net/p5-Net-ARP
parent0359d0bcb801ebaa7da40f07534e580f8fb9be6f (diff)
downloadfreebsd-ports-gnome-5afb131fc74de74c4a401f5c3f10fa2bb2c22d04.tar.gz
freebsd-ports-gnome-5afb131fc74de74c4a401f5c3f10fa2bb2c22d04.tar.zst
freebsd-ports-gnome-5afb131fc74de74c4a401f5c3f10fa2bb2c22d04.zip
- update to 1.0.4
Diffstat (limited to 'net/p5-Net-ARP')
-rw-r--r--net/p5-Net-ARP/Makefile4
-rw-r--r--net/p5-Net-ARP/distinfo6
-rw-r--r--net/p5-Net-ARP/files/patch-ARP.xs10
-rw-r--r--net/p5-Net-ARP/files/patch-send_packet_bsd.c17
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);