Lines 23-54
RUN_DEPENDS= ${LUA_REFMODLIBDIR}/bit.so:devel/lua-bitop@${LUA_FLAVOR} \
Link Here
|
23 |
${LUA_REFMODLIBDIR}/ssl.so:security/luasec@${LUA_FLAVOR} |
23 |
${LUA_REFMODLIBDIR}/ssl.so:security/luasec@${LUA_FLAVOR} |
24 |
|
24 |
|
25 |
USES= cpe gmake lua:54 shebangfix ssl |
25 |
USES= cpe gmake lua:54 shebangfix ssl |
|
|
26 |
USE_RC_SUBR= prosody |
27 |
|
26 |
SHEBANG_FILES= prosody prosodyctl tools/migration/prosody-migrator.lua |
28 |
SHEBANG_FILES= prosody prosodyctl tools/migration/prosody-migrator.lua |
27 |
LUA_PREMK= yes |
29 |
|
28 |
HAS_CONFIGURE= yes |
30 |
HAS_CONFIGURE= yes |
29 |
CONFIGURE_ARGS= --prefix="${PREFIX}" \ |
31 |
CONFIGURE_ARGS= --add-cflags="-fPIC -I${LOCALBASE}/include -I${OPENSSLINC}" \ |
|
|
32 |
--add-ldflags="-shared -L${LOCALBASE}/lib -L${OPENSSLLIB}" \ |
33 |
--c-compiler="${CC}" \ |
34 |
--cflags="${CFLAGS}" \ |
30 |
--datadir="/var/db/prosody" \ |
35 |
--datadir="/var/db/prosody" \ |
31 |
--lua-version="${LUA_VER}" \ |
36 |
--ldflags="${LDFLAGS}" \ |
|
|
37 |
--linker="${CC}" \ |
32 |
--lua-suffix="${LUA_VER_STR}" \ |
38 |
--lua-suffix="${LUA_VER_STR}" \ |
|
|
39 |
--lua-version="${LUA_VER}" \ |
40 |
--no-example-certs \ |
41 |
--prefix="${PREFIX}" \ |
33 |
--with-lua-include="${LUA_INCDIR}" \ |
42 |
--with-lua-include="${LUA_INCDIR}" \ |
34 |
--with-lua-lib="${LUA_LIBDIR}" \ |
43 |
--with-lua-lib="${LUA_LIBDIR}" \ |
35 |
--with-random=arc4random \ |
44 |
--with-random=arc4random |
36 |
--c-compiler="${CC}" \ |
|
|
37 |
--cflags="${CFLAGS}" \ |
38 |
--add-cflags="-fPIC -I${LOCALBASE}/include -I${OPENSSLINC}" \ |
39 |
--linker="${CC}" \ |
40 |
--ldflags="${LDFLAGS}" \ |
41 |
--add-ldflags="-shared -L${LOCALBASE}/lib -L${OPENSSLLIB}" \ |
42 |
--no-example-certs |
43 |
|
45 |
|
44 |
MAKEFILE= GNUmakefile |
46 |
MAKEFILE= GNUmakefile |
|
|
47 |
|
48 |
SUB_FILES= pkg-deinstall |
49 |
SUB_LIST= GROUPS=${GROUPS} \ |
50 |
LUA_CMD=${LUA_CMD} \ |
51 |
LUA_PREFIX=${LUA_PREFIX} \ |
52 |
USERS=${USERS} |
53 |
|
45 |
USERS= prosody |
54 |
USERS= prosody |
46 |
GROUPS= ${USERS} |
55 |
GROUPS= ${USERS} |
47 |
|
56 |
|
48 |
USE_RC_SUBR= prosody |
57 |
PLIST_SUB= PROSODY_GROUP=${GROUPS} \ |
49 |
SUB_FILES= pkg-deinstall |
58 |
PROSODY_USER=${USERS} |
50 |
SUB_LIST= USERS=${USERS} GROUPS=${GROUPS} LUA_PREFIX=${LUA_PREFIX} LUA_CMD=${LUA_CMD} |
59 |
|
51 |
PLIST_SUB= PROSODY_USER=${USERS} PROSODY_GROUP=${GROUPS} |
60 |
LUA_PREMK= yes |
52 |
|
61 |
|
53 |
post-install: |
62 |
post-install: |
54 |
@${REINPLACE_CMD} -e "s|\"luarocks |\"luarocks${LUA_VER_STR} |" ${STAGEDIR}${PREFIX}/lib/prosody/util/prosodyctl.lua |
63 |
@${REINPLACE_CMD} -e "s|\"luarocks |\"luarocks${LUA_VER_STR} |" ${STAGEDIR}${PREFIX}/lib/prosody/util/prosodyctl.lua |