mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
Update to 0.9.4, rc file notice about daemonize, and support for LUAJIT.
PR: 188223 Submitted by: dar
This commit is contained in:
parent
d7f3a971c0
commit
e9d98ae62d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356555
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= prosody
|
||||
PORTVERSION= 0.9.3
|
||||
PORTVERSION= 0.9.4
|
||||
CATEGORIES= net-im
|
||||
MASTER_SITES= http://prosody.im/downloads/source/ \
|
||||
http://redundancy.redundancy.org/mirror/
|
||||
@ -25,13 +25,23 @@ GROUPS= ${USERS}
|
||||
USE_RC_SUBR= prosody
|
||||
MANCOMPRESSED= no
|
||||
|
||||
USES= gmake lua:51 shebangfix
|
||||
SHEBANG_LANG= lua
|
||||
SHEBANG_FILES= prosody prosodyctl
|
||||
lua_OLD_CMD= ${SETENV} lua
|
||||
lua_CMD= ${LUA_CMD}
|
||||
OPTIONS_DEFINE= LUAJIT
|
||||
LUAJIT_DESC= Run prosody using luajit
|
||||
LUAJIT_LIB_DEPENDS= libluajit-5.1.so:${PORTSDIR}/lang/luajit
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
USES= gmake lua:51
|
||||
LUA_PREMK= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
.if ${PORT_OPTIONS:MLUAJIT}
|
||||
CONFIGURE_ARGS+= --runwith=`which luajit`
|
||||
.else
|
||||
CONFIGURE_ARGS+= --runwith=`which ${LUA_CMD}`
|
||||
.endif
|
||||
CONFIGURE_ARGS+= --ostype=freebsd --c-compiler="${CC}" --linker="${LD}"
|
||||
CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}" PREFIX="${PREFIX}" LUA_SUFFIX="-${LUA_VER}" LUA_LIBDIR="${LUA_LIBDIR}" LUA_INCDIR="${LUA_INCDIR}"
|
||||
|
||||
@ -39,4 +49,4 @@ SUB_FILES= pkg-deinstall
|
||||
SUB_LIST= USERS=${USERS} GROUPS=${GROUPS}
|
||||
PLIST_SUB= PROSODY_USER=${USERS} PROSODY_GROUP=${GROUPS}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (prosody-0.9.3.tar.gz) = 22d2427fae4858d15b4f695348fb7781e4c65c04a24171837985024e76799ea0
|
||||
SIZE (prosody-0.9.3.tar.gz) = 264318
|
||||
SHA256 (prosody-0.9.4.tar.gz) = be87cf31901a25477869b4ebd52e298f63a5effacae526911a0be876cc82e1c6
|
||||
SIZE (prosody-0.9.4.tar.gz) = 265898
|
||||
|
@ -25,14 +25,25 @@ pidfile=${prosody_pidfile:-"%%PREFIX%%/var/lib/prosody/prosody.pid"}
|
||||
|
||||
extra_commands="status"
|
||||
|
||||
start_cmd="prosody_cmd start"
|
||||
start_cmd="prosody_start"
|
||||
stop_cmd="prosody_cmd stop"
|
||||
restart_cmd="$stop_cmd; $start_cmd"
|
||||
status_cmd="prosody_cmd status"
|
||||
|
||||
prosody_start()
|
||||
{
|
||||
config="%%PREFIX%%/etc/prosody/prosody.cfg.lua"
|
||||
if grep -q '^daemonize[[:blank:]]*=[[:blank:]]*false' $config; then
|
||||
# Prosody's not going to daemonize on its own, use daemon(8)
|
||||
daemon $command start
|
||||
else
|
||||
$command start
|
||||
fi
|
||||
}
|
||||
|
||||
prosody_cmd()
|
||||
{
|
||||
%%PREFIX%%/bin/prosodyctl $1
|
||||
$command $1
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user