diff options
author | Pavel Balaev <mail@void.so> | 2023-12-29 14:45:29 +0300 |
---|---|---|
committer | Gleb Popov <arrowd@FreeBSD.org> | 2023-12-29 23:10:53 +0300 |
commit | 8dbbacc797c9416640300b22cb5694a0338d3c40 (patch) | |
tree | 58199d955f8a8bff27dcb39e2886fadbff06ef7a /databases/tarantool/files | |
parent | databases/tarantool: Renamed to tarantool2 (diff) |
databases/tarantool: Update to 3.0.0
New major release:
https://github.com/tarantool/tarantool/releases/tag/3.0.0
Signed-off-by: Pavel Balaev <mail@void.so>
Diffstat (limited to 'databases/tarantool/files')
-rw-r--r-- | databases/tarantool/files/patch-include-order.cmake | 11 | ||||
-rw-r--r-- | databases/tarantool/files/patch-third_party-luajit-cmake-SetVersion.cmake | 11 | ||||
-rw-r--r-- | databases/tarantool/files/pkg-message.in | 14 | ||||
-rw-r--r-- | databases/tarantool/files/tarantool.in | 53 |
4 files changed, 89 insertions, 0 deletions
diff --git a/databases/tarantool/files/patch-include-order.cmake b/databases/tarantool/files/patch-include-order.cmake new file mode 100644 index 000000000000..2980c7efb21b --- /dev/null +++ b/databases/tarantool/files/patch-include-order.cmake @@ -0,0 +1,11 @@ +--- src/CMakeLists.txt.orig 2023-12-27 13:53:12.178934000 +0000 ++++ src/CMakeLists.txt 2023-12-27 13:53:23.287048000 +0000 +@@ -10,7 +10,7 @@ + include_directories(${READLINE_INCLUDE_DIRS}) + include_directories(${LIBYAML_INCLUDE_DIRS}) + include_directories(${MSGPUCK_INCLUDE_DIRS}) +-include_directories(BEFORE ${CURL_INCLUDE_DIRS}) ++include_directories(${CURL_INCLUDE_DIRS}) + include_directories(${ICU_INCLUDE_DIRS}) + include_directories(${ICONV_INCLUDE_DIRS}) + include_directories(${DECNUMBER_INCLUDE_DIR}) diff --git a/databases/tarantool/files/patch-third_party-luajit-cmake-SetVersion.cmake b/databases/tarantool/files/patch-third_party-luajit-cmake-SetVersion.cmake new file mode 100644 index 000000000000..0b0c0b39bbd3 --- /dev/null +++ b/databases/tarantool/files/patch-third_party-luajit-cmake-SetVersion.cmake @@ -0,0 +1,11 @@ +--- third_party/luajit/cmake/SetVersion.cmake.orig 2021-04-19 14:24:28 UTC ++++ third_party/luajit/cmake/SetVersion.cmake +@@ -4,7 +4,7 @@ + # Copyright (C) 2015-2020 IPONWEB Ltd. + + function(SetVersion version majver minver patchver tweakver prerel) +- find_package(Git QUIET REQUIRED) ++ find_package(Git QUIET) + if(EXISTS ${CMAKE_SOURCE_DIR}/.git AND Git_FOUND) + # Read version from the project's VCS and store the result + # into version. diff --git a/databases/tarantool/files/pkg-message.in b/databases/tarantool/files/pkg-message.in new file mode 100644 index 000000000000..7f0d47f82080 --- /dev/null +++ b/databases/tarantool/files/pkg-message.in @@ -0,0 +1,14 @@ +[ +{ type: install + message: <<EOM + After install, you'll need: + + Configuration at /etc/rc.conf: + + * Enable tarantool on startup: + tarantool_enable="yes" + * Path to storage link files of instances: + tarantool_instances="%%ETCDIR%%/instances.enabled" +EOM +} +] diff --git a/databases/tarantool/files/tarantool.in b/databases/tarantool/files/tarantool.in new file mode 100644 index 000000000000..19a793b2c96a --- /dev/null +++ b/databases/tarantool/files/tarantool.in @@ -0,0 +1,53 @@ +#!/bin/sh + +# 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' 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" |