View | Details | Raw Unified | Return to bug 241619 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-28 / +19 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	prosody
4
PORTNAME=	prosody
5
PORTVERSION=	0.11.2
5
PORTVERSION=	0.11.3
6
PORTREVISION=	2
6
PORTREVISION=	0
7
CATEGORIES=	net-im
7
CATEGORIES=	net-im
8
MASTER_SITES=	http://prosody.im/downloads/source/ \
8
MASTER_SITES=	http://prosody.im/downloads/source/ \
9
		http://redundancy.redundancy.org/mirror/
9
		http://redundancy.redundancy.org/mirror/
Lines 14-40 Link Here
14
LICENSE=	MIT
14
LICENSE=	MIT
15
LICENSE_FILE=	${WRKSRC}/COPYING
15
LICENSE_FILE=	${WRKSRC}/COPYING
16
16
17
RUN_DEPENDS=	${LUA_MODLIBDIR}/socket/core.so:net/luasocket-51 \
17
RUN_DEPENDS=	${LUA_MODLIBDIR}/socket/core.so:net/luasocket \
18
		${LUA_MODLIBDIR}/ssl.so:security/luasec-51 \
18
		${LUA_MODLIBDIR}/ssl.so:security/luasec \
19
		${LUA_MODLIBDIR}/lxp.so:textproc/luaexpat-51 \
19
		${LUA_MODLIBDIR}/lxp.so:textproc/luaexpat \
20
		${LUA_MODLIBDIR}/lfs.so:devel/luafilesystem-51 \
20
		${LUA_MODLIBDIR}/lfs.so:devel/luafilesystem \
21
		${LUA_MODLIBDIR}/bit.so:devel/lua51-bitop
21
		${LUA_MODLIBDIR}/bit.so:devel/lua-bitop
22
LIB_DEPENDS=	libidn.so:dns/libidn
22
LIB_DEPENDS=	libidn.so:dns/libidn
23
23
24
USES=		compiler:c11 cpe gmake lua:51 shebangfix ssl
24
USES=		compiler:c11 cpe gmake lua:52 ssl
25
SHEBANG_FILES=	prosody prosodyctl
26
LUA_PREMK=	yes
25
LUA_PREMK=	yes
27
HAS_CONFIGURE=	yes
26
HAS_CONFIGURE=	yes
28
CFLAGS+=	-I${OPENSSLINC}
27
CONFIGURE_ARGS=	--prefix="${PREFIX}" \
29
LDFLAGS+=	-L${OPENSSLLIB}
28
		--datadir="/var/db/prosody" \
30
CONFIGURE_ARGS=	--ostype=freebsd \
29
		--lua-version="${LUA_VER}" \
31
		--c-compiler="${CC}" \
32
		--linker="${CC}" \
33
		--with-lua-include="${LUA_INCDIR}" \
34
		--lua-suffix="${LUA_VER_STR}" \
30
		--lua-suffix="${LUA_VER_STR}" \
35
		--with-lua-include="${LUA_INCDIR}" \
31
		--with-lua-include="${LUA_INCDIR}" \
36
		--with-lua-lib="${LUA_LIBDIR}" \
32
		--with-lua-lib="${LUA_LIBDIR}" \
37
		--prefix="${PREFIX}" 
33
		--with-random=arc4random \
34
		--c-compiler="${CC}" \
35
		--cflags="${CFLAGS}" \
36
		--add-cflags="-fPIC -std=c99 -I/usr/local/include -I${OPENSSLINC}" \
37
		--linker="${CC}" \
38
		--ldflags="${LDFLAGS}" \
39
		--add-ldflags="-shared -L/usr/local/lib -L${OPENSSLLIB}" \
40
		--no-example-certs
38
41
39
MAKEFILE=       GNUmakefile
42
MAKEFILE=       GNUmakefile
40
USERS=		prosody
43
USERS=		prosody
Lines 48-65 Link Here
48
		PROSODY_GROUP=${GROUPS} \
51
		PROSODY_GROUP=${GROUPS} \
49
		PROSODY_GROUP_regex=\b${GROUPS}\b
52
		PROSODY_GROUP_regex=\b${GROUPS}\b
50
53
51
OPTIONS_DEFINE=	LUAJIT
52
LUAJIT_DESC=		Run prosody using luajit
53
LUAJIT_LIB_DEPENDS=	libluajit-5.1.so:lang/luajit
54
55
.include <bsd.port.options.mk>
56
57
.if ${PORT_OPTIONS:MLUAJIT}
58
lua_CMD=	${LOCALBASE}/bin/luajit
59
.else
60
lua_CMD=	${LOCALBASE}/bin/${LUA_CMD}
61
.endif
62
63
post-install:
54
post-install:
64
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/prosody/util/*.so
55
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/prosody/util/*.so
65
56
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1548801952
1
TIMESTAMP = 1572266441
2
SHA256 (prosody-0.11.2.tar.gz) = 8911f6dc29b9e0c4edf9e61dc23fa22d77bc42c4caf28b809ab843b2f08e4831
2
SHA256 (prosody-0.11.3.tar.gz) = cfdabd6f42a9fc5db300221967c518c26bd4b6e62def721c1626894d6325bf87
3
SIZE (prosody-0.11.2.tar.gz) = 420689
3
SIZE (prosody-0.11.3.tar.gz) = 424098
(-)files/patch-GNUmakefile (-3 / +6 lines)
Lines 1-5 Link Here
1
--- GNUmakefile.orig	2018-12-01 14:51:46.042219000 +0000
1
--- GNUmakefile.orig	2019-10-28 19:01:52.415208000 +0100
2
+++ GNUmakefile	2018-12-01 14:52:30.212140000 +0000
2
+++ GNUmakefile	2019-10-28 19:02:47.367580000 +0100
3
@@ -6,7 +6,7 @@
3
@@ -6,7 +6,7 @@
4
 MODULES = $(DESTDIR)$(LIBDIR)/prosody/modules
4
 MODULES = $(DESTDIR)$(LIBDIR)/prosody/modules
5
 SOURCE = $(DESTDIR)$(LIBDIR)/prosody
5
 SOURCE = $(DESTDIR)$(LIBDIR)/prosody
Lines 9-15 Link Here
9
 
9
 
10
 INSTALLEDSOURCE = $(LIBDIR)/prosody
10
 INSTALLEDSOURCE = $(LIBDIR)/prosody
11
 INSTALLEDCONFIG = $(SYSCONFDIR)
11
 INSTALLEDCONFIG = $(SYSCONFDIR)
12
@@ -57,7 +57,7 @@
12
@@ -57,9 +57,10 @@
13
 	$(INSTALL_DATA) plugins/mod_mam/*.lua $(MODULES)/mod_mam
13
 	$(INSTALL_DATA) plugins/mod_mam/*.lua $(MODULES)/mod_mam
14
 	$(INSTALL_DATA) certs/* $(CONFIG)/certs
14
 	$(INSTALL_DATA) certs/* $(CONFIG)/certs
15
 	$(INSTALL_DATA) man/prosodyctl.man $(MAN)/man1/prosodyctl.1
15
 	$(INSTALL_DATA) man/prosodyctl.man $(MAN)/man1/prosodyctl.1
Lines 17-20 Link Here
17
+	$(INSTALL_DATA) prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua.sample
17
+	$(INSTALL_DATA) prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua.sample
18
 	-test -f prosody.version && $(INSTALL_DATA) prosody.version $(SOURCE)/prosody.version
18
 	-test -f prosody.version && $(INSTALL_DATA) prosody.version $(SOURCE)/prosody.version
19
 	$(MAKE) install -C util-src
19
 	$(MAKE) install -C util-src
20
+	$(MAKE) install -C tools/migration
20
 
21
 
22
 clean:
23
 	rm -f prosody.install
(-)files/pkg-deinstall.in (-1 / +1 lines)
Lines 17-23 Link Here
17
	echo "     pw groupdel -n %%GROUPS%%"
17
	echo "     pw groupdel -n %%GROUPS%%"
18
	echo ""
18
	echo ""
19
	echo "     and to remove all server data:"
19
	echo "     and to remove all server data:"
20
	echo "     rm -rf  /usr/local/var/lib/prosody"
20
	echo "     rm -rf  /var/db/prosody"
21
	echo ""
21
	echo ""
22
	;;
22
	;;
23
esac
23
esac
(-)files/prosody.in (-3 / +5 lines)
Lines 15-27 Link Here
15
. /etc/rc.subr
15
. /etc/rc.subr
16
16
17
name="prosody"
17
name="prosody"
18
rcvar=prosody_enable
18
rcvar="prosody_enable"
19
command="%%PREFIX%%/bin/prosodyctl"
19
command="prosodyctl"
20
20
21
load_rc_config $name
21
load_rc_config $name
22
22
23
prosody_enable=${prosody_enable:-"NO"}
23
prosody_enable=${prosody_enable:-"NO"}
24
pidfile=${prosody_pidfile:-"%%PREFIX%%/var/lib/prosody/prosody.pid"}
24
pidfile=${prosody_pidfile:-"/var/db/prosody/prosody.pid"}
25
25
26
extra_commands="reload status"
26
extra_commands="reload status"
27
27
Lines 31-36 Link Here
31
restart_cmd="$stop_cmd; $start_cmd"
31
restart_cmd="$stop_cmd; $start_cmd"
32
status_cmd="prosody_cmd status"
32
status_cmd="prosody_cmd status"
33
33
34
export PATH="%%PREFIX%%/bin:$PATH"
35
34
prosody_start()
36
prosody_start()
35
{
37
{
36
	config="%%PREFIX%%/etc/prosody/prosody.cfg.lua"
38
	config="%%PREFIX%%/etc/prosody/prosody.cfg.lua"
(-)pkg-plist (-5 / +8 lines)
Lines 1-13 Link Here
1
bin/prosody
1
bin/prosody
2
bin/prosodyctl
2
bin/prosodyctl
3
bin/prosody-migrator
3
%%ETCDIR%%/certs/GNUmakefile
4
%%ETCDIR%%/certs/GNUmakefile
4
%%ETCDIR%%/certs/example.com.crt
5
%%ETCDIR%%/certs/example.com.key
6
%%ETCDIR%%/certs/localhost.cnf
5
%%ETCDIR%%/certs/localhost.cnf
7
%%ETCDIR%%/certs/localhost.crt
8
%%ETCDIR%%/certs/localhost.key
9
%%ETCDIR%%/certs/makefile
6
%%ETCDIR%%/certs/makefile
10
%%ETCDIR%%/certs/openssl.cnf
7
%%ETCDIR%%/certs/openssl.cnf
8
@sample %%ETCDIR%%/migrator.cfg.lua.sample
11
@sample %%ETCDIR%%/prosody.cfg.lua.sample
9
@sample %%ETCDIR%%/prosody.cfg.lua.sample
12
%%LUA_LIBDIR%%/prosody/core/certmanager.lua
10
%%LUA_LIBDIR%%/prosody/core/certmanager.lua
13
%%LUA_LIBDIR%%/prosody/core/configmanager.lua
11
%%LUA_LIBDIR%%/prosody/core/configmanager.lua
Lines 23-28 Link Here
23
%%LUA_LIBDIR%%/prosody/core/statsmanager.lua
21
%%LUA_LIBDIR%%/prosody/core/statsmanager.lua
24
%%LUA_LIBDIR%%/prosody/core/storagemanager.lua
22
%%LUA_LIBDIR%%/prosody/core/storagemanager.lua
25
%%LUA_LIBDIR%%/prosody/core/usermanager.lua
23
%%LUA_LIBDIR%%/prosody/core/usermanager.lua
24
%%LUA_LIBDIR%%/prosody/migrator/jabberd14.lua
25
%%LUA_LIBDIR%%/prosody/migrator/mtools.lua
26
%%LUA_LIBDIR%%/prosody/migrator/prosody_files.lua
27
%%LUA_LIBDIR%%/prosody/migrator/prosody_sql.lua
26
%%LUA_LIBDIR%%/prosody/modules/adhoc/adhoc.%%LUA_LIBDIR%%.lua
28
%%LUA_LIBDIR%%/prosody/modules/adhoc/adhoc.%%LUA_LIBDIR%%.lua
27
%%LUA_LIBDIR%%/prosody/modules/adhoc/mod_adhoc.lua
29
%%LUA_LIBDIR%%/prosody/modules/adhoc/mod_adhoc.lua
28
%%LUA_LIBDIR%%/prosody/modules/mod_admin_adhoc.lua
30
%%LUA_LIBDIR%%/prosody/modules/mod_admin_adhoc.lua
Lines 144-149 Link Here
144
%%LUA_LIBDIR%%/prosody/util/cache.lua
146
%%LUA_LIBDIR%%/prosody/util/cache.lua
145
%%LUA_LIBDIR%%/prosody/util/caps.lua
147
%%LUA_LIBDIR%%/prosody/util/caps.lua
146
%%LUA_LIBDIR%%/prosody/util/compat.so
148
%%LUA_LIBDIR%%/prosody/util/compat.so
149
%%LUA_LIBDIR%%/prosody/util/crand.so
147
%%LUA_LIBDIR%%/prosody/util/dataforms.lua
150
%%LUA_LIBDIR%%/prosody/util/dataforms.lua
148
%%LUA_LIBDIR%%/prosody/util/datamanager.lua
151
%%LUA_LIBDIR%%/prosody/util/datamanager.lua
149
%%LUA_LIBDIR%%/prosody/util/datetime.lua
152
%%LUA_LIBDIR%%/prosody/util/datetime.lua
Lines 216-219 Link Here
216
%%LUA_LIBDIR%%/prosody/util/xmppstream.lua
219
%%LUA_LIBDIR%%/prosody/util/xmppstream.lua
217
%%LUA_LIBDIR%%/prosody/util/xpcall.lua
220
%%LUA_LIBDIR%%/prosody/util/xpcall.lua
218
man/man1/prosodyctl.1.gz
221
man/man1/prosodyctl.1.gz
219
@dir(%%PROSODY_USER%%,%%PROSODY_GROUP%%,) var/%%LUA_LIBDIR%%/prosody
222
@dir(%%PROSODY_USER%%,%%PROSODY_GROUP%%,) /var/db/prosody

Return to bug 241619