- update to 1.0.4
This commit is contained in:
parent
f02f150fd3
commit
ac711d0446
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=233250
4 changed files with 33 additions and 4 deletions
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
10
net/p5-Net-ARP/files/patch-ARP.xs
Normal file
10
net/p5-Net-ARP/files/patch-ARP.xs
Normal file
|
@ -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"
|
17
net/p5-Net-ARP/files/patch-send_packet_bsd.c
Normal file
17
net/p5-Net-ARP/files/patch-send_packet_bsd.c
Normal file
|
@ -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);
|
Loading…
Reference in a new issue