git: 2569669c0955 - main - misc/dahdi-kmod26: unbreak, change maintainer

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Wed, 10 Nov 2021 10:56:43 UTC
The branch main has been updated by amdmi3:

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

commit 2569669c0955d53caca83563325c13a791dbca5f
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-11-09 21:03:55 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2021-11-10 10:54:51 +0000

    misc/dahdi-kmod26: unbreak, change maintainer
    
    Unbreak build by adding missing header and disabling -Werror.
    Pass maintainership to submitter due to current maintainer inactivity.
    
    PR:             252907
    Approved by:    maintainer timeout (fjoe, 9 months)
---
 misc/dahdi-kmod26/Makefile                               |  6 ++----
 misc/dahdi-kmod26/files/patch-drivers_dahdi_dahdi-base.c | 10 ++++++++++
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/misc/dahdi-kmod26/Makefile b/misc/dahdi-kmod26/Makefile
index 4c5b0a61e0ce..486cd72c1a3d 100644
--- a/misc/dahdi-kmod26/Makefile
+++ b/misc/dahdi-kmod26/Makefile
@@ -12,11 +12,9 @@ DISTFILES=	${DISTNAME}.tar.bz2\
 		oslec-linux-${OSLEC_VERSION}${EXTRACT_SUFX}\
 		zaphfc-${ZAPHFC_VERSION}${EXTRACT_SUFX}
 
-MAINTAINER=	fjoe@FreeBSD.org
+MAINTAINER=	dgilbert@eicat.ca
 COMMENT=	Digium/Asterisk Hardware Device Interface
 
-BROKEN=		does not compile: use of undeclared identifier 'thread_dtor'
-
 RUN_DEPENDS=	${LOCALBASE}/sbin/dahdi_cfg:misc/dahdi
 
 ONLY_FOR_ARCHS=		amd64 i386 powerpc64 sparc64
@@ -44,7 +42,7 @@ WRKSRC=		${WRKDIR}/${DISTNAME}
 #PATCH_STRIP=	-p1
 MAKEFILE=	BSDmakefile
 USE_RC_SUBR=	dahdi
-MAKE_ARGS=	NO_FETCH=yes WITHOUT_HEADERS=yes #ADDITIONAL_DRIVERS="wcb1xxp"
+MAKE_ARGS=	NO_FETCH=yes WITHOUT_HEADERS=yes WERROR= #ADDITIONAL_DRIVERS="wcb1xxp"
 GROUPS=		dahdi
 
 CONFLICTS=	zaptel dahdi-kmod-*
diff --git a/misc/dahdi-kmod26/files/patch-drivers_dahdi_dahdi-base.c b/misc/dahdi-kmod26/files/patch-drivers_dahdi_dahdi-base.c
new file mode 100644
index 000000000000..ea28d8210651
--- /dev/null
+++ b/misc/dahdi-kmod26/files/patch-drivers_dahdi_dahdi-base.c
@@ -0,0 +1,10 @@
+--- drivers/dahdi/dahdi-base.c.orig	2014-05-10 07:54:19 UTC
++++ drivers/dahdi/dahdi-base.c
+@@ -106,6 +106,7 @@
+ #if defined(__FreeBSD__)
+ #include <sys/filio.h>
+ #include <sys/proc.h>
++#include <sys/eventhandler.h>
+ 
+ #include "ng_dahdi_iface.h"
+