Friday, June 18, 2021

Re: net/prosody: use Lua 5.2 (from MAINTAINER)

Bump

-Lucas

Index: Makefile
===================================================================
RCS file: /home/cvs/ports/net/prosody/Makefile,v
retrieving revision 1.61
diff -u -p -r1.61 Makefile
--- Makefile 14 May 2021 07:45:26 -0000 1.61
+++ Makefile 15 May 2021 19:01:27 -0000
@@ -1,45 +1,49 @@
# $OpenBSD: Makefile,v 1.61 2021/05/14 07:45:26 solene Exp $

-COMMENT= communications server for Jabber/XMPP written in Lua
-DISTNAME= prosody-0.11.9
-CATEGORIES= net
-MASTER_SITES= https://prosody.im/downloads/source/
+COMMENT = communications server for Jabber/XMPP written in Lua
+DISTNAME = prosody-0.11.9
+CATEGORIES = net
+HOMEPAGE = https://prosody.im/
+REVISION = 0

-HOMEPAGE= https://prosody.im/
+MAINTAINER = Lucas <lucas@sexy.is>

-MAINTAINER= Lucas <lucas@sexy.is>
+MASTER_SITES = https://prosody.im/downloads/source/

# MIT
-PERMIT_PACKAGE= Yes
+PERMIT_PACKAGE = Yes

-FIX_EXTRACT_PERMISSIONS= Yes
+MODULES = lang/lua
+MODLUA_VERSION = 5.2

-MAKE_FILE= makefile
-MODULES= lang/lua
-LIB_DEPENDS= devel/libidn
-MODLUA_RUN_DEPENDS+= databases/luadbi \
- devel/lua-bitop \
- devel/luafs \
- security/luasec \
- textproc/luaexpat>=1.3.0
+MODLUA_RUN_DEPENDS += databases/luadbi \
+ devel/lua-bitop \
+ devel/luafs \
+ security/luasec \
+ textproc/luaexpat
+LIB_DEPENDS = devel/libidn

# fails, depends on busted not yet in
-TEST_DEPENDS = ${MODLUA_RUN_DEPENDS}
+TEST_DEPENDS = ${MODLUA_RUN_DEPENDS}

-WANTLIB+= crypto idn
+WANTLIB += crypto idn

-CONFIGURE_STYLE=simple
-CONFIGURE_ARGS+=--prefix="${PREFIX}" \
- --sysconfdir="${SYSCONFDIR}/prosody" \
- --datadir="${VARBASE}/prosody" \
- --with-lua="${LOCALBASE}" \
- --with-lua-include="${MODLUA_INCL_DIR}" \
- --c-compiler="${CC}" \
- --linker="${CC}" \
- --ldflags="-L/usr/lib -L${LOCALBASE}/lib -shared" \
- --cflags="${CFLAGS} -I${LOCALBASE}/include -fPIC -std=c99"
+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 \
+ --c-compiler="${CC}" \
+ --linker="${CC}" \
+ --ldflags="-L/usr/lib -L${LOCALBASE}/lib -shared" \
+ --cflags="${CFLAGS} -I${LOCALBASE}/include -fPIC -std=c99"

-FAKE_FLAGS+= CONFIG=${DESTDIR}${PREFIX}/share/examples/prosody
+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 \
Index: pkg/PLIST
===================================================================
RCS file: /home/cvs/ports/net/prosody/pkg/PLIST,v
retrieving revision 1.17
diff -u -p -r1.17 PLIST
--- pkg/PLIST 6 Mar 2021 18:43:56 -0000 1.17
+++ pkg/PLIST 15 May 2021 19:03:57 -0000
@@ -237,16 +237,6 @@ share/examples/prosody/certs/
@sample ${SYSCONFDIR}/prosody/certs/
share/examples/prosody/certs/Makefile
@sample ${SYSCONFDIR}/prosody/certs/Makefile
-share/examples/prosody/certs/example.com.crt
-share/examples/prosody/certs/example.com.key
-share/examples/prosody/certs/localhost.crt
-@sample ${SYSCONFDIR}/prosody/certs/localhost.crt
-@mode 400
-@owner _prosody
-share/examples/prosody/certs/localhost.key
-@sample ${SYSCONFDIR}/prosody/certs/localhost.key
-@mode
-@owner
share/examples/prosody/certs/openssl.cnf
@sample ${SYSCONFDIR}/prosody/certs/openssl.cnf
share/examples/prosody/prosody.cfg.lua

No comments:

Post a Comment