<pre style='margin:0'>
Ryan Carsten Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a97a1bc9426b59e33bf6fd4c875696fa2697b0ac">https://github.com/macports/macports-ports/commit/a97a1bc9426b59e33bf6fd4c875696fa2697b0ac</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new a97a1bc9426 tcpxtract: Fix implicit function declarations
</span>a97a1bc9426 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit a97a1bc9426b59e33bf6fd4c875696fa2697b0ac
</span>Author: Ryan Carsten Schmidt <ryandesign@macports.org>
AuthorDate: Fri Aug 2 22:03:14 2024 -0500
<span style='display:block; white-space:pre;color:#404040;'> tcpxtract: Fix implicit function declarations
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> And fix implicit int, add modeline, modernize checksums, remove
</span><span style='display:block; white-space:pre;color:#404040;'> platforms darwin line, and avoid HTTP redirects.
</span>---
net/tcpxtract/Portfile | 17 ++++----
net/tcpxtract/files/implicit.patch | 81 ++++++++++++++++++++++++++++++++++++++
2 files changed, 91 insertions(+), 7 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/tcpxtract/Portfile b/net/tcpxtract/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1599bb10097..aad3ffbff81 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/tcpxtract/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/tcpxtract/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,11 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> PortSystem 1.0
name tcpxtract
version 1.0.1
revision 1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 0577bdaa1ab57457c805fb49376aa305ae4d9457 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 613aa6be39772b236d89c5ef377c27b10ac44d1c34731105599283862dfc05be \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 127102
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> categories net security
license GPL-2+
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> maintainers nomaintainer
description tool for extracting files from network traffic based \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -29,16 +34,14 @@ long_description ${name} is a ${description}. Extracting files based \
</span> also not scalable and does not search across packet \
boundaries.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://tcpxtract.sourceforge.net/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites sourceforge
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums md5 1d8fe172d4590c33a157798e08dc0ccd \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha1 48fce86ac87e5467cb671236a7247474f69bac9d \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 0577bdaa1ab57457c805fb49376aa305ae4d9457
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://tcpxtract.sourceforge.net
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites sourceforge:project/${name}/${name}/${version}
</span>
depends_build port:flex
depends_lib port:libpcap
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append implicit.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args-append --mandir=${prefix}/share/man
post-destroot {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/tcpxtract/files/implicit.patch b/net/tcpxtract/files/implicit.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..807e62d10ce
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/tcpxtract/files/implicit.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,81 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: implicit declaration of function 'yylex' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: implicit declaration of function 'yyerror' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: implicit declaration of function 'yyparse' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: implicitly declaring library function 'strdup' with type 'char *(const char *)' [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Includes changes from:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066484
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://bugs.launchpad.net/bugs/2061589
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig 2005-10-05 20:53:20.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2024-08-02 21:48:39.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3906,6 +3906,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cat >>conftest.$ac_ext <<_ACEOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* end confdefs.h. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <ctype.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if ((' ' & 0x0FF) == 0x020)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3919,7 +3920,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-main ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++main (void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int i;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for (i = 0; i < 256; i++)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- conf.h.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ conf.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -24,5 +24,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define CONF_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern void config_type(char *, char *, char *, char *);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int yyparse(void);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int yyerror(char *s);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int yylex(void);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif /* CONF_H */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- confl.l.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ confl.l
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -20,6 +20,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Tcpxtract, a sniffer that extracts files based on headers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ by Nick Harbour
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "confy.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ %}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- confy.y.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ confy.y
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23,6 +23,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "conf.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include "confy.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ %}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ %union {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -55,6 +56,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ %%
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ yyerror(char *s)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ printf("%s\n", s);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- tcpxtract.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ tcpxtract.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -44,6 +44,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "sessionlist.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "util.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include "conf.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "confy.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "search.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>