FreeBSD Bugzilla – Attachment 217913 Details for
Bug 249276
net-im/prosody: do not use prosodyctl in init script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
do not use prosodyctl in init script
deprecate-prosodyctl.patch (text/plain), 2.78 KB, created by
Thomas Morper
on 2020-09-12 10:10:46 UTC
(
hide
)
Description:
do not use prosodyctl in init script
Filename:
MIME Type:
Creator:
Thomas Morper
Created:
2020-09-12 10:10:46 UTC
Size:
2.78 KB
patch
obsolete
>Index: net-im/prosody/Makefile >=================================================================== >--- net-im/prosody/Makefile (revision 548261) >+++ net-im/prosody/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= prosody > PORTVERSION= 0.11.6 >+PORTREVISION= 1 > CATEGORIES= net-im > MASTER_SITES= https://prosody.im/downloads/source/ > >@@ -19,7 +20,8 @@ > ${LUA_REFMODLIBDIR}/bit.so:devel/lua-bitop@${LUA_FLAVOR} > LIB_DEPENDS= libidn.so:dns/libidn > >-USES= compiler:c11 cpe gmake lua:52 ssl >+USES= compiler:c11 cpe gmake lua:52 shebangfix ssl >+SHEBANG_FILES= prosody prosodyctl tools/migration/prosody-migrator.lua > LUA_PREMK= yes > HAS_CONFIGURE= yes > CONFIGURE_ARGS= --prefix="${PREFIX}" \ >@@ -43,7 +45,7 @@ > > USE_RC_SUBR= prosody > SUB_FILES= pkg-deinstall >-SUB_LIST= USERS=${USERS} GROUPS=${GROUPS} >+SUB_LIST= USERS=${USERS} GROUPS=${GROUPS} LUA_PREFIX=${LUA_PREFIX} LUA_CMD=${LUA_CMD} > PLIST_SUB= PROSODY_USER=${USERS} \ > PROSODY_USER_regex=\b${USERS}\b \ > PROSODY_GROUP=${GROUPS} \ >Index: net-im/prosody/files/prosody.in >=================================================================== >--- net-im/prosody/files/prosody.in (revision 548261) >+++ net-im/prosody/files/prosody.in (working copy) >@@ -16,7 +16,12 @@ > > name="prosody" > rcvar="prosody_enable" >-command="%%PREFIX%%/bin/prosodyctl" >+command="%%PREFIX%%/bin/prosody" >+command_args="-D" >+command_interpreter="%%LUA_PREFIX%%/bin/%%LUA_CMD%%" >+extra_commands="reload" >+prosody_user="%%USERS%%" >+prosody_group="%%GROUPS%%" > > load_rc_config $name > >@@ -23,18 +28,4 @@ > prosody_enable=${prosody_enable:-"NO"} > pidfile=${prosody_pidfile:-"/var/run/prosody/prosody.pid"} > >-extra_commands="reload" >-start_cmd="prosody_cmd start" >-stop_cmd="prosody_cmd stop" >-reload_cmd="prosody_cmd reload" >-restart_cmd="prosody_cmd restart" >-status_cmd="prosody_cmd status" >- >-export PATH="%%PREFIX%%/bin:$PATH" >- >-prosody_cmd() >-{ >- $command $1 >-} >- > run_rc_command "$1" >Index: net-im/prosody/pkg-message >=================================================================== >--- net-im/prosody/pkg-message (revision 548261) >+++ net-im/prosody/pkg-message (working copy) >@@ -1,12 +1,20 @@ > [ > { type: install > message: <<EOM >- If you're running Prosody in a jail and experience problems, please add >- the following to the global section of your prosody.cfg.lua: >+If you're running Prosody in a jail and experience problems, please add >+the following to the global section of your prosody.cfg.lua: > >- interfaces = { 'x.x.x.x' } >+interfaces = { 'x.x.x.x' } > >- where 'x.x.x.x' is the public IP you wish Prosody to bind to. >+where 'x.x.x.x' is the public IP you wish Prosody to bind to. > EOM >+}, >+{ type: install >+ message: <<EOM >+Make sure your prosody.cfg.lua contains the following line >+or else the init script won't work: >+ >+pidfile = "/var/run/prosody/prosody.pid" >+EOM > } > ]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
thomas
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 249276
: 217913