git: feedba692d73 - main - net/avahi-app: Reapply patch enabling Netlink support

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Tue, 25 Feb 2025 18:10:18 UTC
The branch main has been updated by arrowd:

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

commit feedba692d73ae3c0041c2d64d73a256ad747523
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-02-25 18:09:20 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-02-25 18:10:10 +0000

    net/avahi-app: Reapply patch enabling Netlink support
    
    Fixes:  20ff0309ec1ab4ffbc5bffcc6eed6dc20e5b3257
    Sponsored by:   Future Crew, LLC
---
 net/avahi-app/Makefile              |  4 +---
 net/avahi-app/files/patch-configure | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/net/avahi-app/Makefile b/net/avahi-app/Makefile
index 543e9d491f45..5d3390bfbd54 100644
--- a/net/avahi-app/Makefile
+++ b/net/avahi-app/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	avahi
 PORTVERSION=	0.8
-PORTREVISION?=	4	# don't delete, reset to 0, check slave ports
+PORTREVISION?=	5	# don't delete, reset to 0, check slave ports
 CATEGORIES?=	net dns
 MASTER_SITES=	http://www.avahi.org/download/
 PKGNAMESUFFIX?=	-app
@@ -106,8 +106,6 @@ avahi-post-patch:
 		${WRKSRC}/configure \
 		${WRKSRC}/avahi-client/Makefile.in \
 		${WRKSRC}/avahi-daemon/Makefile.in
-	@${REINPLACE_CMD} -e 's|have_inotify=yes|have_inotify=no|' \
-		${WRKSRC}/configure
 	@${REINPLACE_CMD} -e 's|%%GNOME_SUBR%%|${GNOME_SUBR}|' \
 		${WRKSRC}/initscript/freebsd/avahi-dnsconfd.sh.in \
 		${WRKSRC}/initscript/freebsd/avahi-daemon.sh.in
diff --git a/net/avahi-app/files/patch-configure b/net/avahi-app/files/patch-configure
new file mode 100644
index 000000000000..bef4e30f1239
--- /dev/null
+++ b/net/avahi-app/files/patch-configure
@@ -0,0 +1,22 @@
+--- configure.orig	2025-02-22 16:31:36 UTC
++++ configure
+@@ -17758,9 +17758,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+ #
+ # Check for netlink.h
+ #
+-ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
+-#include <sys/socket.h>
+-#include <asm/types.h>
++ac_fn_c_check_header_compile "$LINENO" "netlink/netlink.h" "ac_cv_header_linux_netlink_h" "
+ 
+ "
+ if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
+@@ -19409,7 +19407,7 @@ _ACEOF
+   cat >>confdefs.h <<_ACEOF
+ #define HAVE_SYS_INOTIFY_H 1
+ _ACEOF
+- have_inotify=yes
++ have_inotify=no
+ fi
+ 
+ done