mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
Enable optional Cyrus-SASL support.
PR: 138868 Approved by: maintainer timeout
This commit is contained in:
parent
c77f4e0d8c
commit
89aba3cbb6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=242482
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user