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 @@ -1,40 +1,38 @@ PORTNAME= driftnet DISTVERSIONPREFIX= v DISTVERSION= 1.6.0 CATEGORIES= net-mgmt 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 BUILD_DEPENDS= makedepend:devel/makedepend LIB_DEPENDS= libgif.so:graphics/giflib \ libpng.so:graphics/png \ libwebp.so:graphics/webp \ libwebsockets.so:net/libwebsockets USES= autoreconf gettext-runtime gmake gnome jpeg localbase:ldflags \ pkgconfig xorg USE_CSTD= c99 USE_GITHUB= yes GH_ACCOUNT= deiv USE_GNOME= gtk30 USE_XORG= x11 xext xi GNU_CONFIGURE= yes CONFIGURE_ARGS+= --disable-debug INSTALL_TARGET= install-strip PLIST_FILES= bin/driftnet \ share/man/man1/driftnet.1.gz PORTDOCS= * OPTIONS_DEFINE= DOCS .include 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);