aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Grosbein <eugen@FreeBSD.org>2023-06-18 07:22:19 +0000
committerEugene Grosbein <eugen@FreeBSD.org>2023-06-18 07:22:19 +0000
commita5c2ca9eefbc427074af49dd4b2630b0b58f6d80 (patch)
treefc3b9046643a1e75b97d6502702e5cd1fa5823a0
parent73f13ae4a53f1be5315c0f90779cd0cf7c1a7ce2 (diff)
downloadports-a5c2ca9eefbc427074af49dd4b2630b0b58f6d80.tar.gz
ports-a5c2ca9eefbc427074af49dd4b2630b0b58f6d80.zip
net-im/jabberd: fix build with MySQL 8.0
PORTREVISION not bumped.
-rw-r--r--net-im/jabberd/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/net-im/jabberd/Makefile b/net-im/jabberd/Makefile
index 13f766d673de..419aec13cda0 100644
--- a/net-im/jabberd/Makefile
+++ b/net-im/jabberd/Makefile
@@ -75,7 +75,6 @@ SQLITE_LIB_DEPENDS= libsqlite3.so:databases/sqlite3
MYSQL_USES= mysql
MYSQL_CONFIGURE_ENABLE= mysql
-MYSQL_VARS= IGNORE_WITH_MYSQL=80
BDB_USES= bdb
BDB_CONFIGURE_ENABLE= db
@@ -129,11 +128,17 @@ SUB_LIST+= REQUIRE="LOGIN"
.endif
REQUIRES_DESC= Add backend requires to startup script
+.include <bsd.port.pre.mk>
+
post-patch:
.for FILE in c2s.xml jabberd.cfg router-filter.xml router-users.xml \
router.xml s2s.xml sm.xml templates/roster.xml
@${MV} ${WRKSRC}/etc/${FILE}.dist.in ${WRKSRC}/etc/${FILE}.sample.in
.endfor
+.if ${PORT_OPTIONS:MMYSQL} && ${MYSQL_VER:U} == 80
+ cd ${WRKSRC}/storage && \
+ ${REINPLACE_CMD} 's/my_bool/_Bool/g' authreg_mysql.c storage_mysql.c
+.endif
post-install:
.for DIR in db logs pid