1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- COMMENT= jabber server written in Erlang
- V= 21.12
- 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
- WANTLIB += yaml-0
- MASTER_SITES0 https://github.com/
- MODULES= lang/erlang
- MODERL_VERSION= 21
- 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 \
- devel/libyaml
- LIB_DEPENDS+= devel/libyaml
- 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
- patch -d "${WRKSRC}" \
- <./files/patch_deps_fast_tls_c_src_fast_tls_c.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 <bsd.port.mk>
|