git: b3a3ffe42735 - main - irc/inspircd: add missing options

From: Dries Michiels <driesm_at_FreeBSD.org>
Date: Wed, 26 Jul 2023 17:49:29 UTC
The branch main has been updated by driesm:

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

commit b3a3ffe42735a8dc79156e8298dec8b03d263205
Author:     Dries Michiels <driesm@FreeBSD.org>
AuthorDate: 2023-07-26 17:29:58 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2023-07-26 17:49:21 +0000

    irc/inspircd: add missing options
    
    PR:     272349
---
 irc/inspircd/Makefile | 29 +++++++++++++++++++++--------
 1 file changed, 21 insertions(+), 8 deletions(-)

diff --git a/irc/inspircd/Makefile b/irc/inspircd/Makefile
index 67d1764fa382..00f3ef87b341 100644
--- a/irc/inspircd/Makefile
+++ b/irc/inspircd/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	inspircd
 DISTVERSIONPREFIX=	v
 DISTVERSION=	3.16.1
+PORTREVISION=	1
 CATEGORIES=	irc
 
 MAINTAINER=	driesm@FreeBSD.org
@@ -10,7 +11,7 @@ WWW=		https://www.inspircd.org/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/docs/LICENSE.txt
 
-USES=		compiler:c++11-lang cpe gmake localbase:ldflags perl5
+USES=		compiler:c++11-lang cpe gmake localbase:ldflags perl5 pkgconfig
 USE_GITHUB=	yes
 USE_PERL5=	build
 USE_RC_SUBR=	${PORTNAME}
@@ -48,42 +49,54 @@ PLIST_SUB=	INSPIRCD_DBDIR=${_INSPIRCD_DBDIR} \
 		INSPIRCD_RUNDIR=${_INSPIRCD_RUNDIR} \
 		INSPIRCD_USER=${USERS}
 
-OPTIONS_DEFINE=		GNUTLS LDAP MBEDTLS MYSQL OPENSSL PCRE PGSQL POSIX \
-			SQLITE SSLREHASH
+OPTIONS_DEFINE=		ARGON GNUTLS JSON LDAP MAXMIND MBEDTLS MYSQL OPENSSL \
+			PCRE PGSQL POSIX RE2 SQLITE SSLREHASH SYSLOG
 OPTIONS_DEFAULT=	OPENSSL POSIX
 OPTIONS_SUB=		yes
 
+ARGON_DESC=	Build m_argon2 module
 GNUTLS_DESC=	Build m_ssl_gnutls module
+JSON_DESC=	Build m_log_json module
 LDAP_DESC=	Build m_ldap module
+MAXMIND_DESC=	Build m_geo_maxmind module
 MBEDTLS_DESC=	Build m_ssl_mbedtls module
 MYSQL_DESC=	Build m_mysql module
 OPENSSL_DESC=	Build m_ssl_openssl module
 PCRE_DESC=	Build m_regex_pcre module
 PGSQL_DESC=	Build m_pgsql module
 POSIX_DESC=	Build m_regex_posix module
+RE2_DESC=	Build m_regex_re2 module
 SQLITE_DESC=	Build m_sqlite3 module
 SSLREHASH_DESC=	Build m_sslrehashsignal module
+SYSLOG_DESC=	Build m_log_syslog module
 
+ARGON_LIB_DEPENDS=	libargon2.so:security/libargon2
+ARGON_VARS=		EXTRAS+=m_argon2.cpp
 GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
-GNUTLS_USES=		pkgconfig
 GNUTLS_VARS=		EXTRAS+=m_ssl_gnutls.cpp
-
+JSON_BUILD_DEPENDS=	rapidjson>0:devel/rapidjson
+JSON_VARS=		EXTRAS+=m_log_json.cpp
 LDAP_USES=		ldap
 LDAP_VARS=		EXTRAS+=m_ldap.cpp
+MAXMIND_LIB_DEPENDS=	libmaxminddb.so:net/libmaxminddb
+MAXMIND_VARS=		EXTRAS+=m_geo_maxmind.cpp
 MBEDTLS_LIB_DEPENDS=	libmbedtls.so:security/mbedtls
 MBEDTLS_VARS=		EXTRAS+=m_ssl_mbedtls.cpp
 MYSQL_USES=		mysql
 MYSQL_VARS=		EXTRAS+=m_mysql.cpp
-OPENSSL_USES=		pkgconfig ssl
+OPENSSL_USES=		ssl
 OPENSSL_VARS=		EXTRAS+=m_ssl_openssl.cpp
 PCRE_LIB_DEPENDS=	libpcre.so:devel/pcre
 PCRE_VARS=		EXTRAS+=m_regex_pcre.cpp
 PGSQL_USES=		pgsql
 PGSQL_VARS=		EXTRAS+=m_pgsql.cpp
 POSIX_VARS=		EXTRAS+=m_regex_posix.cpp
-SQLITE_USES=		pkgconfig sqlite
+RE2_LIB_DEPENDS=	libre2.so:devel/re2
+RE2_VARS=		EXTRAS+=m_regex_re2.cpp
+SQLITE_USES=		sqlite
 SQLITE_VARS=		EXTRAS+=m_sqlite3.cpp
-SSLREHASH_VARS+=	EXTRAS+=m_sslrehashsignal.cpp
+SSLREHASH_VARS=		EXTRAS+=m_sslrehashsignal.cpp
+SYSLOG_VARS=		EXTRAS+=m_log_syslog.cpp
 
 _INSPIRCD_DBDIR?=	/var/db/${PORTNAME}
 _INSPIRCD_LOGDIR?=	/var/log/${PORTNAME}