Date: Mon, 18 May 2026 10:08:05 +0000 From: Emanuel Haupt <ehaupt@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: bc54f2aaf2d3 - main - net-mgmt/driftnet: Unbreak build Message-ID: <6a0ae505.3ea78.4e3e864a@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by ehaupt: URL: https://cgit.FreeBSD.org/ports/commit/?id=bc54f2aaf2d3a81484734f953b7e2adbf7edeb93 commit bc54f2aaf2d3a81484734f953b7e2adbf7edeb93 Author: Emanuel Haupt <ehaupt@FreeBSD.org> AuthorDate: 2026-05-18 10:07:45 +0000 Commit: Emanuel Haupt <ehaupt@FreeBSD.org> CommitDate: 2026-05-18 10:08:03 +0000 net-mgmt/driftnet: Unbreak build --- net-mgmt/driftnet/Makefile | 2 -- .../driftnet/files/patch-src_http__display_httpd.c | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/net-mgmt/driftnet/Makefile b/net-mgmt/driftnet/Makefile index d2790bffe983..4651e306e9c1 100644 --- a/net-mgmt/driftnet/Makefile +++ b/net-mgmt/driftnet/Makefile @@ -7,8 +7,6 @@ MAINTAINER= ehaupt@FreeBSD.org COMMENT= Tool to grab images out of (your) TCP connections WWW= https://www.ex-parrot.com/~chris/driftnet/ -BROKEN= Fails to build, error: incompatible pointer to integer conversion initializing 'unsigned char' with an expression of type 'void *' - LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING diff --git a/net-mgmt/driftnet/files/patch-src_http__display_httpd.c b/net-mgmt/driftnet/files/patch-src_http__display_httpd.c new file mode 100644 index 000000000000..bb163a97b720 --- /dev/null +++ b/net-mgmt/driftnet/files/patch-src_http__display_httpd.c @@ -0,0 +1,38 @@ +--- src/http_display/httpd.c.orig 2025-05-01 10:34:03 UTC ++++ src/http_display/httpd.c +@@ -176,27 +176,14 @@ static void * http_server_dispatch(void *arg) + { NULL, NULL, ".webp", "image/webp" } + }; + +- const struct lws_http_mount mount = { +- (struct lws_http_mount *)NULL, /* linked-list pointer to next*/ +- "/", /* mountpoint in URL namespace on this vhost */ +- server_root, /* where to go on the filesystem for that */ +- "index.html", /* default filename if none given */ +- NULL, +- NULL, +- mime_types, +- NULL, +- 0, +- 0, +- 0, +- 0, +- 0, +- 0, +- LWSMPRO_FILE, /* mount type is a directory in a filesystem */ +- 1, /* strlen("/"), ie length of the mountpoint */ +- NULL, +-#if LWS_LIBRARY_VERSION_MAJOR <= 4 && LWS_LIBRARY_VERSION_MINOR < 3 +- { NULL, NULL } // sentinel +-#endif ++ const struct lws_http_mount mount = { ++ .mount_next = NULL, ++ .mountpoint = "/", ++ .origin = server_root, ++ .def = "index.html", ++ .extra_mimetypes = mime_types, ++ .origin_protocol = LWSMPRO_FILE, ++ .mountpoint_len = 1, + }; + + memset(&info, 0, sizeof info);home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a0ae505.3ea78.4e3e864a>
