View | Details | Raw Unified | Return to bug 249276
Collapse All | Expand All

(-)net-im/prosody/Makefile (-2 / +4 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	prosody
4
PORTNAME=	prosody
5
PORTVERSION=	0.11.6
5
PORTVERSION=	0.11.6
6
PORTREVISION=	1
6
CATEGORIES=	net-im
7
CATEGORIES=	net-im
7
MASTER_SITES=	https://prosody.im/downloads/source/
8
MASTER_SITES=	https://prosody.im/downloads/source/
8
9
Lines 19-25 Link Here
19
		${LUA_REFMODLIBDIR}/bit.so:devel/lua-bitop@${LUA_FLAVOR}
20
		${LUA_REFMODLIBDIR}/bit.so:devel/lua-bitop@${LUA_FLAVOR}
20
LIB_DEPENDS=	libidn.so:dns/libidn
21
LIB_DEPENDS=	libidn.so:dns/libidn
21
22
22
USES=		compiler:c11 cpe gmake lua:52 ssl
23
USES=		compiler:c11 cpe gmake lua:52 shebangfix ssl
24
SHEBANG_FILES=	prosody prosodyctl tools/migration/prosody-migrator.lua
23
LUA_PREMK=	yes
25
LUA_PREMK=	yes
24
HAS_CONFIGURE=	yes
26
HAS_CONFIGURE=	yes
25
CONFIGURE_ARGS=	--prefix="${PREFIX}" \
27
CONFIGURE_ARGS=	--prefix="${PREFIX}" \
Lines 43-49 Link Here
43
45
44
USE_RC_SUBR=	prosody
46
USE_RC_SUBR=	prosody
45
SUB_FILES=	pkg-deinstall
47
SUB_FILES=	pkg-deinstall
46
SUB_LIST=	USERS=${USERS} GROUPS=${GROUPS}
48
SUB_LIST=	USERS=${USERS} GROUPS=${GROUPS} LUA_PREFIX=${LUA_PREFIX} LUA_CMD=${LUA_CMD}
47
PLIST_SUB=	PROSODY_USER=${USERS} \
49
PLIST_SUB=	PROSODY_USER=${USERS} \
48
		PROSODY_USER_regex=\b${USERS}\b \
50
		PROSODY_USER_regex=\b${USERS}\b \
49
		PROSODY_GROUP=${GROUPS} \
51
		PROSODY_GROUP=${GROUPS} \
(-)net-im/prosody/files/prosody.in (-15 / +6 lines)
Lines 16-22 Link Here
16
16
17
name="prosody"
17
name="prosody"
18
rcvar="prosody_enable"
18
rcvar="prosody_enable"
19
command="%%PREFIX%%/bin/prosodyctl"
19
command="%%PREFIX%%/bin/prosody"
20
command_args="-D"
21
command_interpreter="%%LUA_PREFIX%%/bin/%%LUA_CMD%%"
22
extra_commands="reload"
23
prosody_user="%%USERS%%"
24
prosody_group="%%GROUPS%%"
20
25
21
load_rc_config $name
26
load_rc_config $name
22
27
Lines 23-40 Link Here
23
prosody_enable=${prosody_enable:-"NO"}
28
prosody_enable=${prosody_enable:-"NO"}
24
pidfile=${prosody_pidfile:-"/var/run/prosody/prosody.pid"}
29
pidfile=${prosody_pidfile:-"/var/run/prosody/prosody.pid"}
25
30
26
extra_commands="reload"
27
start_cmd="prosody_cmd start"
28
stop_cmd="prosody_cmd stop"
29
reload_cmd="prosody_cmd reload"
30
restart_cmd="prosody_cmd restart"
31
status_cmd="prosody_cmd status"
32
33
export PATH="%%PREFIX%%/bin:$PATH"
34
35
prosody_cmd()
36
{
37
	$command $1
38
}
39
40
run_rc_command "$1"
31
run_rc_command "$1"
(-)net-im/prosody/pkg-message (-4 / +12 lines)
Lines 1-12 Link Here
1
[
1
[
2
{ type: install
2
{ type: install
3
  message: <<EOM
3
  message: <<EOM
4
    If you're running Prosody in a jail and experience problems, please add
4
If you're running Prosody in a jail and experience problems, please add
5
    the following to the global section of your prosody.cfg.lua:
5
the following to the global section of your prosody.cfg.lua:
6
6
7
    interfaces = { 'x.x.x.x' }
7
interfaces = { 'x.x.x.x' }
8
8
9
    where 'x.x.x.x' is the public IP you wish Prosody to bind to.
9
where 'x.x.x.x' is the public IP you wish Prosody to bind to.
10
EOM
10
EOM
11
},
12
{ type: install
13
  message: <<EOM
14
Make sure your prosody.cfg.lua contains the following line
15
or else the init script won't work:
16
17
pidfile = "/var/run/prosody/prosody.pid"
18
EOM
11
}
19
}
12
]
20
]

Return to bug 249276