summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/file2pcap/Makefile8
-rw-r--r--net/file2pcap/distinfo6
-rw-r--r--net/file2pcap/files/patch-file2pcap.c11
-rw-r--r--net/file2pcap/files/patch-file2pcap.h24
4 files changed, 43 insertions, 6 deletions
diff --git a/net/file2pcap/Makefile b/net/file2pcap/Makefile
index 72e975722cdc..4123efb49d57 100644
--- a/net/file2pcap/Makefile
+++ b/net/file2pcap/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= file2pcap
-PORTVERSION= 1.25
+PORTVERSION= 1.27.b.${SNAPDATE}
CATEGORIES= net
MAINTAINER= nobutaka@FreeBSD.org
@@ -11,10 +11,12 @@ COMMENT= Tool to make packet captures containing the content of specified file
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
+USE_GITHUB= yes
+
GH_ACCOUNT= Cisco-Talos
GH_PROJECT= file2pcap
-
-USE_GITHUB= yes
+GH_TAGNAME= 0f694c0
+SNAPDATE= 20191122
ALL_TARGET= file2pcap
diff --git a/net/file2pcap/distinfo b/net/file2pcap/distinfo
index 98312f4584f9..a479c5438585 100644
--- a/net/file2pcap/distinfo
+++ b/net/file2pcap/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1508678999
-SHA256 (Cisco-Talos-file2pcap-1.25_GH0.tar.gz) = 77a9cc8e2bf70fb88c140785a3f3f964aba16ed34844d12987a19cabf7b43d48
-SIZE (Cisco-Talos-file2pcap-1.25_GH0.tar.gz) = 27561
+TIMESTAMP = 1598371850
+SHA256 (Cisco-Talos-file2pcap-1.27.b.20191122-0f694c0_GH0.tar.gz) = cb377219eaf2606c8424b67499bc7b242d77c77a1ce95d96decf95d01a6e52b6
+SIZE (Cisco-Talos-file2pcap-1.27.b.20191122-0f694c0_GH0.tar.gz) = 34383
diff --git a/net/file2pcap/files/patch-file2pcap.c b/net/file2pcap/files/patch-file2pcap.c
new file mode 100644
index 000000000000..2f07ecd0703d
--- /dev/null
+++ b/net/file2pcap/files/patch-file2pcap.c
@@ -0,0 +1,11 @@
+--- file2pcap.c.orig 2019-11-21 15:44:46 UTC
++++ file2pcap.c
+@@ -61,6 +61,8 @@ const int packetLen4 = (sizeof(SRC_ETHER)-1 + sizeof(D
+ const int packetLen6 = (sizeof(SRC_ETHER)-1 + sizeof(DST_ETHER)-1 + sizeof(PROTO_ETHER6)-1 + sizeof(struct ip6_hdr) + sizeof(struct tcphdr));
+
+
++struct pcap_packet_header ph;
++unsigned short srcport, dstport;
+ struct handover hoFtp;
+
+
diff --git a/net/file2pcap/files/patch-file2pcap.h b/net/file2pcap/files/patch-file2pcap.h
new file mode 100644
index 000000000000..0d3162413a75
--- /dev/null
+++ b/net/file2pcap/files/patch-file2pcap.h
@@ -0,0 +1,24 @@
+--- file2pcap.h.orig 2019-11-21 15:44:46 UTC
++++ file2pcap.h
+@@ -81,7 +81,7 @@ struct pcap_packet_header
+ int usec;
+ int length1;
+ int length2;
+- } ph;
++ };
+
+ struct v6_pseudo_header
+ {
+@@ -90,10 +90,10 @@ struct v6_pseudo_header
+ int length;
+ char zeroes[3];
+ char next_header;
+- } v6ph;
++ };
+
+
+-unsigned short srcport, dstport;
++extern unsigned short srcport, dstport;
+
+
+ int craftTcp(char *payload, int payloadSize, char direction, unsigned char flags, struct handover *ho);