60dc26dd79
ChangeLog: https://prosody.im/doc/release/0.12.2 Fixes and improvements * util.stanza: Allow U+7F when constructing stazas * net.unbound: Preserve built-in defaults and Prosodys settings for luaunbound * mod_smacks: Disable not implemented resumption behavior on s2s * mod_http: Allow disabling CORS in the http_cors_override option and by default Minor changes * util.json: Accept empty arrays with whitespace * util.stanza: Adjust number of return values to handle change in dependency of test suite * util.startup: Ensure import() is available in prosodyctl * mod_storage_sql: Fix initialization when called from prosodyctl * mod_storage_sql: Fix the summary API with Postgres * mod_admin_shell: Fixes for showing data related to disconnected sessions * core.s2smanager: Don’t remove unrelated session on close of bidi session * mod_smacks: Don’t send redundant requests for acknowledgement * mod_admin_shell: Rename commands user:roles() to user:setroles() and user:showroles() to user:roles() * mod_smacks: Bounce unhandled stanzas from local origin * mod_bookmarks: Reduce log level of message about not having any bookmarks * mod_s2s: Fix firing buffer drain events * mod_http_files: Log warning about legacy modules using mod_http_files * util.startup: Wait for last shutdown steps * util.datamapper: Improve handling of schemas with non-obvious “type” * util.jsonschema: Fix validation to not assume presence of “type” field * util.jsonschema: Use same integer/float logic on Lua 5.2 and 5.3 PR: 268382 Reported by: thomas@beingboiled.info (maintainer)
59 lines
2.0 KiB
Makefile
59 lines
2.0 KiB
Makefile
PORTNAME= prosody
|
|
DISTVERSION= 0.12.2
|
|
CATEGORIES= net-im
|
|
MASTER_SITES= https://prosody.im/downloads/source/
|
|
|
|
MAINTAINER= thomas@beingboiled.info
|
|
COMMENT= Simple extensible XMPP server written in Lua
|
|
WWW= https://www.prosody.im/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libicudata.so:devel/icu \
|
|
libicui18n.so:devel/icu \
|
|
libicuuc.so:devel/icu
|
|
RUN_DEPENDS= ${LUA_REFMODLIBDIR}/bit.so:devel/lua-bitop@${LUA_FLAVOR} \
|
|
${LUA_REFMODLIBDIR}/lfs.so:devel/luafilesystem@${LUA_FLAVOR} \
|
|
${LUA_REFMODLIBDIR}/luaevent/core.so:devel/lua-libevent@${LUA_FLAVOR} \
|
|
${LUA_REFMODLIBDIR}/lunbound.so:dns/luaunbound@${LUA_FLAVOR} \
|
|
${LUA_REFMODLIBDIR}/lxp.so:textproc/luaexpat@${LUA_FLAVOR} \
|
|
${LUA_REFMODLIBDIR}/socket/core.so:net/luasocket@${LUA_FLAVOR} \
|
|
${LUA_REFMODLIBDIR}/ssl.so:security/luasec@${LUA_FLAVOR}
|
|
|
|
USES= cpe gmake lua:54 shebangfix ssl
|
|
SHEBANG_FILES= prosody prosodyctl tools/migration/prosody-migrator.lua
|
|
LUA_PREMK= yes
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --prefix="${PREFIX}" \
|
|
--datadir="/var/db/prosody" \
|
|
--lua-version="${LUA_VER}" \
|
|
--lua-suffix="${LUA_VER_STR}" \
|
|
--with-lua-include="${LUA_INCDIR}" \
|
|
--with-lua-lib="${LUA_LIBDIR}" \
|
|
--with-random=arc4random \
|
|
--c-compiler="${CC}" \
|
|
--cflags="${CFLAGS}" \
|
|
--add-cflags="-fPIC -I${LOCALBASE}/include -I${OPENSSLINC}" \
|
|
--linker="${CC}" \
|
|
--ldflags="${LDFLAGS}" \
|
|
--add-ldflags="-shared -L${LOCALBASE}/lib -L${OPENSSLLIB}" \
|
|
--no-example-certs
|
|
|
|
MAKEFILE= GNUmakefile
|
|
USERS= prosody
|
|
GROUPS= ${USERS}
|
|
|
|
USE_RC_SUBR= prosody
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= USERS=${USERS} GROUPS=${GROUPS} LUA_PREFIX=${LUA_PREFIX} LUA_CMD=${LUA_CMD} PORTNAME="${PORTNAME}"
|
|
PLIST_SUB= PROSODY_USER=${USERS} PROSODY_GROUP=${GROUPS}
|
|
|
|
post-install:
|
|
@${REINPLACE_CMD} -e "s|\"luarocks |\"luarocks${LUA_VER_STR} |" ${STAGEDIR}${PREFIX}/lib/prosody/util/prosodyctl.lua
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/prosody/util/*.so
|
|
@${MKDIR} ${STAGEDIR}/var/run/prosody
|
|
@${RM} ${STAGEDIR}${ETCDIR}/certs/*
|
|
|
|
.include <bsd.port.mk>
|