Index: Makefile =================================================================== RCS file: /home/pcvs/ports/net-im/jabberd/Makefile,v retrieving revision 1.73 diff -u -r1.73 Makefile --- Makefile 9 Aug 2009 17:57:08 -0000 1.73 +++ Makefile 16 Sep 2009 02:38:30 -0000 @@ -15,7 +15,6 @@ 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 @@ 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="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 @@ ${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