diff --git a/net/sniffit/Makefile b/net/sniffit/Makefile index 57f1896e65fa..8db83095cc65 100644 --- a/net/sniffit/Makefile +++ b/net/sniffit/Makefile @@ -1,5 +1,5 @@ PORTNAME= sniffit -PORTVERSION= 0.6 +DISTVERSION= 0.7 DISTVERSIONPREFIX= ${PORTNAME}- CATEGORIES= net security @@ -18,13 +18,6 @@ GNU_CONFIGURE= yes OPTIONS_DEFINE= DOCS EXAMPLES -.include - -.if ${OPSYS} == FreeBSD -CFLAGS+= -Wno-error=int-conversion -CFLAGS+= -Wno-error=incompatible-function-pointer-types -.endif - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/sniffit ${STAGEDIR}${PREFIX}/sbin ${INSTALL_MAN} ${WRKSRC}/man/sniffit.5 ${STAGEDIR}${PREFIX}/share/man/man5 diff --git a/net/sniffit/distinfo b/net/sniffit/distinfo index adb70c16f655..5a39acd0730c 100644 --- a/net/sniffit/distinfo +++ b/net/sniffit/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1714413613 -SHA256 (resurrecting-open-source-projects-sniffit-sniffit-0.6_GH0.tar.gz) = 1e2857d0960078315ec002125b2965563546e146c5f33a9831ca7be0b166b221 -SIZE (resurrecting-open-source-projects-sniffit-sniffit-0.6_GH0.tar.gz) = 60163 +TIMESTAMP = 1758606858 +SHA256 (resurrecting-open-source-projects-sniffit-sniffit-0.7_GH0.tar.gz) = 9a8c3472414e105479296b6ca83be419cfd37551982e6ddaca34dfa4916a4c47 +SIZE (resurrecting-open-source-projects-sniffit-sniffit-0.7_GH0.tar.gz) = 59904 diff --git a/net/sniffit/files/patch-src_sn__data.h b/net/sniffit/files/patch-src_sn__data.h index 1c193502c468..69df46af8c6f 100644 --- a/net/sniffit/files/patch-src_sn__data.h +++ b/net/sniffit/files/patch-src_sn__data.h @@ -1,24 +1,28 @@ ---- src/sn_data.h.orig 2020-04-20 01:57:30 UTC +--- src/sn_data.h.orig 2025-09-22 23:50:28 UTC +++ src/sn_data.h -@@ -38,9 +38,9 @@ int HEADSIZE[]={0 ,14}; /* ppp: 4 or 0 or nothing - char *NETDEV[]={"ppp","ed"}; - int HEADSIZE[]={4 ,14}; - */ +@@ -32,15 +32,10 @@ int HEADSIZE[]={0 ,14}; /* ppp: 4 or 0 or nothing + int HEADSIZE[]={0 ,14}; /* ppp: 4 or 0 or nothing */ + #endif + +-#ifdef FREEBSD /* ppp: 4 or 0 ? */ +-/* +-#define NETDEV_NR 2 +-char *NETDEV[]={"ppp","ed"}; +-int HEADSIZE[]={4 ,14}; +-*/ -#define NETDEV_NR 1 -char *NETDEV[]={"ed"}; -int HEADSIZE[]={14}; -++#define NETDEV_NR 6 -++char *NETDEV[]={"fxp","re","em","ppp","tun","lo"}; -++int HEADSIZE[]={14 ,14 ,14 ,4 ,4 ,4 }; ++#ifdef __FreeBSD__ /* ppp: 4 or 0 ? */ ++#define NETDEV_NR 6 ++char *NETDEV[]={"fxp","re","em","ppp","tun","lo"}; ++int HEADSIZE[]={14 ,14 ,14 ,4 ,4 ,4 }; #endif #ifdef BSDI /* ppp: 4 or 0 ? */ -@@ -155,7 +155,7 @@ char *SHARED, *connection_data, *timing, *running_conn - *logged_connections; - int *LISTlength, *DATAlength, memory_id; - unsigned int *TCP_nr_of_packets, *ICMP_nr_of_packets, *UDP_nr_of_packets; --extern unsigned int *IP_nr_of_packets; -+unsigned int *IP_nr_of_packets; - unsigned long *TCP_bytes_in_packets, *UDP_bytes_in_packets; - int *DESC_LEN; - +@@ -203,5 +198,3 @@ unsigned int debug_cnt=0; + FILE *debug_dev; + unsigned int debug_cnt=0; + #endif +- +- diff --git a/net/sniffit/files/patch-src_sn__interface.c b/net/sniffit/files/patch-src_sn__interface.c index 7430c44da01a..18eb2e21d80a 100644 --- a/net/sniffit/files/patch-src_sn__interface.c +++ b/net/sniffit/files/patch-src_sn__interface.c @@ -1,15 +1,6 @@ ---- src/sn_interface.c.orig 2020-04-20 01:57:30 UTC +--- src/sn_interface.c.orig 2025-09-22 23:50:28 UTC +++ src/sn_interface.c -@@ -22,7 +22,7 @@ - extern char *SHARED, *connection_data, *timing, *running_connections, - *logged_connections; - extern int *LISTlength, *DATAlength, memory_id; --extern unsigned int *TCP_nr_of_packets, *ICMP_nr_of_packets, *UDP_nr_of_packets; unsigned int *IP_nr_of_packets; -+extern unsigned int *TCP_nr_of_packets, *ICMP_nr_of_packets, *UDP_nr_of_packets, *IP_nr_of_packets; - extern unsigned long *TCP_bytes_in_packets, *UDP_bytes_in_packets; - extern int *DESC_LEN; /* For the connection desciption */ - -@@ -526,7 +526,7 @@ reset_shell_mode(); +@@ -535,7 +535,7 @@ if(shmctl(memory_id,IPC_RMID,0)<0) void mem_exit (void) { if(shmctl(memory_id,IPC_RMID,0)<0)