055241bbc2
from MAINTAINER Lucas (Lucas [at] sexy [dot] is) * util.stanza: Allow U+7F when constructing stazas * net.unbound: Preserve built-in defaults and Prosodys settings for luaunbound (fixes [#1763](https://issues.prosody.im/1763): luaunbound not reading resolv.conf) (thanks rgd) * mod_smacks: Disable not implemented resumption behavior on s2s * mod_http: Allow disabling CORS in the http_cors_override option and by default Full release notes can be found in https://blog.prosody.im/prosody-0.12.2-released/
66 lines
1.7 KiB
Makefile
66 lines
1.7 KiB
Makefile
COMMENT = communications server for Jabber/XMPP written in Lua
|
|
DISTNAME = prosody-0.12.2
|
|
CATEGORIES = net
|
|
HOMEPAGE = https://prosody.im/
|
|
|
|
MAINTAINER = Lucas <lucas@sexy.is>
|
|
|
|
MASTER_SITES = https://prosody.im/downloads/source/
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MODULES = lang/lua
|
|
MODLUA_VERSION = 5.3
|
|
|
|
MODLUA_RUN_DEPENDS += converters/luastruct \
|
|
databases/luadbi \
|
|
devel/luafs \
|
|
devel/luarocks \
|
|
net/luaunbound \
|
|
security/luasec \
|
|
textproc/luaexpat
|
|
LIB_DEPENDS = textproc/icu4c
|
|
|
|
# fails, depends on busted not yet in
|
|
NO_TEST = Yes
|
|
TEST_DEPENDS = ${MODLUA_RUN_DEPENDS}
|
|
|
|
WANTLIB += crypto icudata icui18n icuuc
|
|
|
|
CONFIGURE_STYLE = simple
|
|
CONFIGURE_ARGS += --prefix="${PREFIX}" \
|
|
--sysconfdir="${SYSCONFDIR}/prosody" \
|
|
--datadir="${VARBASE}/prosody" \
|
|
--with-lua="${LOCALBASE}" \
|
|
--with-lua-include="${MODLUA_INCL_DIR}" \
|
|
--lua-version="${MODLUA_VERSION}" \
|
|
--no-example-certs \
|
|
--idn-library=icu \
|
|
--c-compiler="${CC}" \
|
|
--linker="${CC}" \
|
|
--ldflags="-L/usr/lib -L${LOCALBASE}/lib -shared" \
|
|
--cflags="${CFLAGS} -I${LOCALBASE}/include -fPIC -std=c99"
|
|
|
|
MAKE_FILE = makefile
|
|
|
|
FAKE_FLAGS += CONFIG=${DESTDIR}${PREFIX}/share/examples/prosody
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC}; sed -i -e 's,^#!/usr/bin/env lua,#!${MODLUA_BIN},' -e \
|
|
's,^lua ,${MODLUA_BIN} ,' prosody prosodyctl
|
|
|
|
post-patch:
|
|
${SUBST_CMD} ${WRKSRC}/util/prosodyctl.lua
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/prosody
|
|
${INSTALL_DATA} ${WRKSRC}/README \
|
|
${PREFIX}/share/doc/prosody
|
|
${INSTALL_DATA} ${WRKSRC}/certs/makefile \
|
|
${PREFIX}/share/examples/prosody/certs/Makefile
|
|
${INSTALL_DATA} ${WRKSRC}/certs/openssl.cnf \
|
|
${PREFIX}/share/examples/prosody/certs
|
|
|
|
.include <bsd.port.mk>
|