git: 43293f045cc5 - main - irc/anope: fix build error with SASL option enabled

From: Rodrigo Osorio <rodrigo_at_FreeBSD.org>
Date: Thu, 30 Nov 2023 12:11:49 UTC
The branch main has been updated by rodrigo:

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

commit 43293f045cc51f73af6262e1603f420425dd9644
Author:     Rodrigo Osorio <rodrigo@FreeBSD.org>
AuthorDate: 2023-11-30 10:56:39 +0000
Commit:     Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2023-11-30 12:11:25 +0000

    irc/anope: fix build error with SASL option enabled
    
    Also did some Makefile cleanup and reordering to make linters happy
    
    PR:             275399
    Reported by:    Siva Mahadevan <me@svmhdvn.name>
    Approved by:    Rafael Grether <devnull@apt322.org> (maintainer)
---
 irc/anope/Makefile                   | 25 +++++++++++--------------
 irc/anope/files/patch-CMakeLists.txt |  4 ++--
 irc/anope/pkg-plist                  |  2 --
 3 files changed, 13 insertions(+), 18 deletions(-)

diff --git a/irc/anope/Makefile b/irc/anope/Makefile
index 76108afc175b..aad0e43fd65a 100644
--- a/irc/anope/Makefile
+++ b/irc/anope/Makefile
@@ -12,18 +12,19 @@ LICENSE_FILE=	${WRKSRC}/docs/COPYING
 USES=		cmake localbase:ldflags shebangfix
 USE_GITHUB=	yes
 USE_RC_SUBR=	anope
+SHEBANG_FILES=	${WRKSRC}/src/tools/*.sh
 
 CMAKE_ARGS=	-DINSTDIR:STRING="${PREFIX}/anope"
-SHEBANG_FILES=	${WRKSRC}/src/tools/*.sh
 CFLAGS_amd64=	-fPIC
 SUB_FILES=	pkg-message
 
-OPTIONS_DEFINE=	GNUTLS LDAP MYSQL NLS OPENSSL PCRE POSIX REDIS SASL SQLITE STATS TRE
+OPTIONS_DEFINE=		GNUTLS LDAP MYSQL NLS OPENSSL PCRE POSIX REDIS SASL \
+			SQLITE STATS TRE
 OPTIONS_DEFAULT=	MYSQL OPENSSL POSIX
-OPTIONS_SUB=	yes
-POSIX_DESC=	POSIX Regex Module
-STATS_DESC=	Channel Statistics Module
-TRE_DESC=	Tre Regex Module
+OPTIONS_SUB=		yes
+POSIX_DESC=		POSIX Regex Module
+STATS_DESC=		Channel Statistics Module
+TRE_DESC=		Tre Regex Module
 
 GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
 
@@ -35,10 +36,10 @@ NLS_USES=	gettext
 
 OPENSSL_USES=	ssl
 
-REDIS_RUN_DEPENDS=	redis>=0:databases/redis
-
 PCRE_LIB_DEPENDS=	libpcre.so:devel/pcre
 
+REDIS_RUN_DEPENDS=	redis>=0:databases/redis
+
 SASL_LIB_DEPENDS=	libsasl2.so:security/cyrus-sasl2
 
 SQLITE_USES=	sqlite
@@ -67,18 +68,14 @@ post-patch-MYSQL-on:
 post-patch-OPENSSL-on:
 	${LN} -s ${WRKSRC}/modules/extra/m_ssl_openssl.cpp ${WRKSRC}/modules/
 
-post-patch-SQLITE-on:
-	${LN} -s ${WRKSRC}/modules/extra/m_sqlite.cpp ${WRKSRC}/modules/
-
 post-patch-PCRE-on:
 	${LN} -s ${WRKSRC}/modules/extra/m_regex_pcre.cpp ${WRKSRC}/modules/
 
 post-patch-POSIX-on:
 	${LN} -s ${WRKSRC}/modules/extra/m_regex_posix.cpp ${WRKSRC}/modules/
 
-post-patch-SASL-on:
-	${LN} -s ${WRKSRC}/modules/extra/m_sasl_dh-aes.cpp ${WRKSRC}/modules/
-	${LN} -s ${WRKSRC}/modules/extra/m_sasl_dh-blowfish.cpp ${WRKSRC}/modules/
+post-patch-SQLITE-on:
+	${LN} -s ${WRKSRC}/modules/extra/m_sqlite.cpp ${WRKSRC}/modules/
 
 post-patch-STATS-on:
 	${LN} -s ${WRKSRC}/modules/extra/stats ${WRKSRC}/modules/
diff --git a/irc/anope/files/patch-CMakeLists.txt b/irc/anope/files/patch-CMakeLists.txt
index 9dc5fb37c0b4..dadac3edd3c4 100644
--- a/irc/anope/files/patch-CMakeLists.txt
+++ b/irc/anope/files/patch-CMakeLists.txt
@@ -1,5 +1,5 @@
---- CMakeLists.txt.orig	2023-06-02 15:14:06.209032000 +0000
-+++ CMakeLists.txt	2023-06-02 15:15:18.248991000 +0000
+--- CMakeLists.txt.orig	2023-06-02 15:14:06 UTC
++++ CMakeLists.txt
 @@ -486,16 +486,16 @@
  get_filename_component(SERVICES_BINARY ${SERVICES_BINARY} NAME)
  
diff --git a/irc/anope/pkg-plist b/irc/anope/pkg-plist
index a8d83b95eee0..ba0abaa06aa3 100644
--- a/irc/anope/pkg-plist
+++ b/irc/anope/pkg-plist
@@ -126,8 +126,6 @@ anope/lib/modules/m_redis.so
 %%TRE%%anope/lib/modules/m_regex_tre.so
 anope/lib/modules/m_rewrite.so
 anope/lib/modules/m_sasl.so
-%%SASL%%anope/lib/modules/m_sasl_dh-aes.so
-%%SASL%%anope/lib/modules/m_sasl_dh-blowfish.so
 %%GNUTLS%%anope/lib/modules/m_ssl_gnutls.so
 %%OPENSSL%%anope/lib/modules/m_ssl_openssl.so
 %%MYSQL%%anope/lib/modules/m_sql_authentication.so