Index: head/databases/tarantool/Makefile =================================================================== --- head/databases/tarantool/Makefile (revision 449478) +++ head/databases/tarantool/Makefile (revision 449479) @@ -1,59 +1,60 @@ # Created by: Veniamin Gvozdikov # $FreeBSD$ PORTNAME= tarantool PORTVERSION= 1.7.4.260 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= http://download.tarantool.org/tarantool/1.7/src/ MAINTAINER= vg@FreeBSD.org COMMENT= NoSQL database running in a Lua application server LICENSE= BSD2CLAUSE NOT_FOR_ARCHS= armv6 powerpc64 sparc64 NOT_FOR_ARCHS_REASON= fails to build: Unsupported architecture MAKE_JOBS_UNSAFE=yes USES= cmake:noninja compiler:c++11-lang gettext gmake perl5 readline USE_LDCONFIG= yes USE_RC_SUBR= ${PORTNAME} SUB_FILES= pkg-message TT_DATADIR?= /var/db/tarantool TT_RUNDIR?= /var/run/tarantool TT_LOGDIR?= /var/log/tarantool CMAKE_ARGS= -DCMAKE_INSTALL_FULL_SYSCONFDIR=${ETCDIR} \ -DCMAKE_INSTALL_LOCALSTATEDIR=/var \ -DCMAKE_INSTALL_MANDIR=${MANPREFIX}/man \ -DENABLE_DIST=ON USERS= tarantool GROUPS= tarantool SUB_LIST+= PORTNAME=${PORTNAME} \ TT_USER=${USERS} \ TT_DATADIR=${TT_DATADIR} \ TT_LOGDIR=${TT_LOGDIR} \ TT_RUNDIR=${TT_RUNDIR} PLIST_SUB+= TT_USER=${USERS} \ TT_GROUP=${GROUPS} \ TT_LOGDIR=${TT_LOGDIR} \ TT_DATADIR=${TT_DATADIR} \ TT_RUNDIR=${TT_RUNDIR} OPTIONS_DEFINE= DEBUG .include .if ${PORT_OPTIONS:MDEBUG} CMAKE_BUILD_TYPE= RelWithDebugInfo CMAKE_ARGS+= -DENABLE_BACKTRACE=ON .else CMAKE_BUILD_TYPE= Rel CMAKE_ARGS+= -DENABLE_BACKTRACE=OFF .endif .include Index: head/databases/tarantool/files/tarantool.in =================================================================== --- head/databases/tarantool/files/tarantool.in (revision 449478) +++ head/databases/tarantool/files/tarantool.in (revision 449479) @@ -1,55 +1,55 @@ #!/bin/sh # # $FreeBSD$ # PROVIDE: tarantool # REQUIRE: LOGIN # KEYWORD: shutdown # # tarantool_enable="YES" # tarantool_instances="" # . /etc/rc.subr name="tarantool" rcvar=tarantool_enable load_rc_config "$name" tarantool_enable=${tarantool_enable:-"NO"} tarantool_instances=${tarantool_instances:-"%%ETCDIR%%/instances.enabled"} start_cmd="${name}_start" stop_cmd="${name}_stop" restart_cmd="${name}_restart" -INSTANCES=$(find ${tarantool_instances} -type l -name '*.lua') +INSTANCES=$(find ${tarantool_instances} -type l -name '*.lua' 2>/dev/null) TDAEMON=%%PREFIX%%/bin/tarantool TCTL=%%PREFIX%%/bin/tarantoolctl tarantool_start() { echo "tarantool: Starting instances" for inst in ${INSTANCES} do ${TDAEMON} ${TCTL} start $(basename ${inst} .lua) done } tarantool_stop() { echo "tarantool: Stopping instances" for inst in ${INSTANCES} do ${TDAEMON} ${TCTL} stop $(basename ${inst} .lua) done } tarantool_restart() { tarantool_stop tarantool_start } run_rc_command "$1"