diff options
author | bland <bland@FreeBSD.org> | 2009-10-05 15:12:56 +0800 |
---|---|---|
committer | bland <bland@FreeBSD.org> | 2009-10-05 15:12:56 +0800 |
commit | 3f87a488cf1a1bdf44ea14293e53ce68769e0f98 (patch) | |
tree | 84e245a73db9e6e6d51ce2d7b462349c87d36551 /net-im | |
parent | b17654d88130989920dbdb205fbf6596857937ff (diff) | |
download | freebsd-ports-gnome-3f87a488cf1a1bdf44ea14293e53ce68769e0f98.tar.gz freebsd-ports-gnome-3f87a488cf1a1bdf44ea14293e53ce68769e0f98.tar.zst freebsd-ports-gnome-3f87a488cf1a1bdf44ea14293e53ce68769e0f98.zip |
Enable optional Cyrus-SASL support.
PR: 138868
Approved by: maintainer timeout
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/jabberd/Makefile | 16 |
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 |