aboutsummaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
Diffstat (limited to 'net-im')
-rw-r--r--net-im/jabberd/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/net-im/jabberd/Makefile b/net-im/jabberd/Makefile
index 1274e22400c7..d8ef31c1704b 100644
--- a/net-im/jabberd/Makefile
+++ b/net-im/jabberd/Makefile
@@ -15,7 +15,6 @@ MAINTAINER= mm@FreeBSD.org
COMMENT= Online presence and instant messaging server
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 \
- gsasl.13:${PORTSDIR}/security/gsasl \
idn.16:${PORTSDIR}/dns/libidn \
udns.0:${PORTSDIR}/dns/udns
@@ -29,7 +28,8 @@ OPTIONS= MYSQL "Support MySQL (storage/auth/reg)" on \
ANON "Enable anonymous (auth/reg)" off \
FS "Filesystem storage (only for testing)" off \
DEBUG "Compile with debug messages" on \
- REQUIRES "Add backend requires to startup script" off
+ REQUIRES "Add backend requires to startup script" off \
+ CYRUS "Use Cyrus SASL backend (not supported)" off
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
@@ -166,6 +166,14 @@ SUB_LIST+= REQUIRE="${_REQUIRE}"
SUB_LIST+= REQUIRE="LOGIN"
.endif
+.if defined(WITH_CYRUS)
+CONFIGURE_ARGS+= --with-sasl=cyrus
+LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
+.else
+CONFIGURE_ARGS+= --with-sasl=gsasl
+LIB_DEPENDS+= gsasl.13:${PORTSDIR}/security/gsasl
+.endif
+
MAN8= c2s.8 jabberd.8 router.8 s2s.8 sm.8
post-patch:
@@ -173,6 +181,10 @@ post-patch:
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|%%PERL%%|${PERL}|g' \
${WRKSRC}/tools/jabberd.in
+.if defined(WITH_CYRUS)
+ @${REINPLACE_CMD} -e '/^#error /d' \
+ ${WRKSRC}/sx/sasl_cyrus.c
+.endif
post-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL