git: 9f53b59852b6 - 2023Q4 - www/mod_umask: Fix build on FreeBSD 14+

From: Renato Botelho <garga_at_FreeBSD.org>
Date: Wed, 29 Nov 2023 18:21:14 UTC
The branch 2023Q4 has been updated by garga:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9f53b59852b612bc776ff814fc934f142ec72a97

commit 9f53b59852b612bc776ff814fc934f142ec72a97
Author:     Ralf Gebhart <gebhart@secnetix.de>
AuthorDate: 2023-11-29 18:18:35 +0000
Commit:     Renato Botelho <garga@FreeBSD.org>
CommitDate: 2023-11-29 18:21:10 +0000

    www/mod_umask: Fix build on FreeBSD 14+
    
    PR:             275429
    (cherry picked from commit fc1d174e5cec8f1699f840d0216868da658aa30a)
---
 www/mod_umask/Makefile                     |  5 ++---
 www/mod_umask/files/patch-src_mod__umask.c | 19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/www/mod_umask/Makefile b/www/mod_umask/Makefile
index 5c6f97243fdd..95fab0d45927 100644
--- a/www/mod_umask/Makefile
+++ b/www/mod_umask/Makefile
@@ -11,13 +11,12 @@ WWW=		http://www.outoforder.cc/projects/httpd/mod_umask/
 
 LICENSE=	APACHE20
 
-BROKEN_FreeBSD_14=	fails to build: incompatible function pointer types
-
 USES=		apache tar:bzip2
-GNU_CONFIGURE=	yes
 
 AP_FAST_BUILD=	yes
 AP_GENPLIST=	yes
 SRC_FILE=	src/${PORTNAME}.c
 
+GNU_CONFIGURE=	yes
+
 .include <bsd.port.mk>
diff --git a/www/mod_umask/files/patch-src_mod__umask.c b/www/mod_umask/files/patch-src_mod__umask.c
new file mode 100644
index 000000000000..aeda748019bb
--- /dev/null
+++ b/www/mod_umask/files/patch-src_mod__umask.c
@@ -0,0 +1,19 @@
+--- src/mod_umask.c.orig	2004-10-12 19:03:16 UTC
++++ src/mod_umask.c
+@@ -26,6 +26,7 @@
+  *
+  */
+ 
++#include <sys/stat.h>
+ #include "httpd.h"
+ #include "http_core.h"
+ #include "http_config.h"
+@@ -42,7 +43,7 @@ struct umask_config_rec
+     long int mask;
+ };
+ 
+-static void *umask_create_config(apr_pool_t * p, char *dir)
++static void *umask_create_config(apr_pool_t * p, server_rec *dir)
+ {
+     umask_config_rec *dConfig = apr_pcalloc(p, sizeof(*dConfig));
+