# $OpenBSD$ COMMENT= jabber server written in Erlang V= 20.04 CATEGORIES= net HOMEPAGE= https://www.ejabberd.im/ # GPLv2+ PERMIT_PACKAGE= Yes GH_ACCOUNT= processone GH_PROJECT= ejabberd GH_TAGNAME= ${V} WANTLIB+= c m ${COMPILER_LIBCXX} crypto expat ssl z MASTER_SITES0 https://github.com/ MODULES= lang/erlang MODERL_VERSION= 21 BUILD_DEPENDS= devel/libyaml MAKE_FLAGS+= EJABBERDDIR=${PREFIX}/lib/ejabberd \ LOGDIR=${EJLOGDIR} \ ETCDIR=${SYSCONFDIR}/ejabberd \ SPOOLDIR=${EJDBDIR} FAKE_FLAGS+= EJABBERDDIR=${WRKINST}/${PREFIX}/lib/ejabberd \ LOGDIR=${WRKINST}${EJLOGDIR} \ ETCDIR=${WRKINST}/${PREFIX}/share/examples/ejabberd \ SPOOLDIR=${WRKINST}/${EJDBDIR} AUTOCONF_VERSION = 2.69 AUTOMAKE_VERSION = 1.16 CONFIGURE_STYLE= autoreconf CONFIGURE_ARGS+= --enable-pgsql \ --enable-mysql \ --disable-sqlite \ --enable-odbc \ --enable-iconv \ --disable-pam \ --disable-tools \ --disable-roster-gateway-workaround \ --enable-mssql CONFIGURE_ENV+= HOME=${WRKDIST} \ ERL=${MODERL_ERL} \ ERLC=${MODERL_ERLC} \ ac_cv_header_openssl_md2_h=no BUILD_DEPENDS= devel/git RUN_DEPENDS= shells/bash JABBERDUSER= _ejabberd JABBERDGROUP= _ejabberd EJDBDIR= /var/db/ejabberd EJLOGDIR= /var/log/ejabberd SUBST_VARS= EJDBDIR EJLOGDIR JABBERDUSER NO_TEST= Yes post-configure: cd ${WRKSRC} && ${GMAKE} deps patch -d "${WRKSRC}" \ <./files/patch_deps_jiffy_c_src_doube-conversion_strtod.cc.patch cd ${WRKSRC}/deps/fast_yaml && ${SETENV} ${CONFIGURE_ENV} \ CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \ ./configure post-install: cd ${WRKDIST}/examples && \ find . -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ejabberd/{} \; && \ find . ! -type d -exec ${SUBST_CMD} -c {} ${PREFIX}/share/examples/ejabberd/{} \; ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ejabberd/sql cd ${WRKSRC}/sql && \ find . -name '*.sql' -exec ${INSTALL_DATA} {} ${PREFIX}/share/examples/ejabberd/sql/{} \; @chmod 755 ${PREFIX}/sbin/ejabberdctl @chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/ejabberd @chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/ejabberd @chmod ${SHAREMODE} ${PREFIX}/share/examples/ejabberd/*.cfg @find ${WRKINST} -type f -name '*.beforesubst' -exec rm -f {} \; .include