diff options
author | Veniamin Gvozdikov <vg@FreeBSD.org> | 2015-07-10 10:59:40 +0000 |
---|---|---|
committer | Veniamin Gvozdikov <vg@FreeBSD.org> | 2015-07-10 10:59:40 +0000 |
commit | 250458d716f53c36ad83d7846743ea761bb908aa (patch) | |
tree | da26adb92e25e0d75da97dd33b10686e917e51e8 /databases/tarantool/files | |
parent | Fix typo in variable name. (diff) |
- Fixed bug with run as daemon
- Updated description of port
- Added extra patches to change group
- Bump port revision
- Added gettext depend
Notes
Notes:
svn path=/head/; revision=391697
Diffstat (limited to 'databases/tarantool/files')
4 files changed, 88 insertions, 0 deletions
diff --git a/databases/tarantool/files/patch-extra_dist_default_tarantool.in b/databases/tarantool/files/patch-extra_dist_default_tarantool.in new file mode 100644 index 000000000000..dbf140e30408 --- /dev/null +++ b/databases/tarantool/files/patch-extra_dist_default_tarantool.in @@ -0,0 +1,13 @@ +--- extra/dist/default/tarantool.in.orig 2015-07-07 14:38:20 UTC ++++ extra/dist/default/tarantool.in +@@ -6,8 +6,9 @@ default_cfg = { + sophia_dir = "@TARANTOOL_DATADIR@", -- will become sophia_dir/sophia/instance/ + logger = "/var/log/tarantool", -- logger/instance .. '.log' + username = "tarantool", ++ groupname = "tarantool", + } + +-instance_dir = "@CMAKE_INSTALL_SYSCONFDIR@/tarantool/instances.enabled" ++instance_dir = "@CMAKE_INSTALL_SYSCONFDIR@/instances.enabled" + + -- vim: set ft=lua : diff --git a/databases/tarantool/files/patch-extra_dist_tarantoolctl b/databases/tarantool/files/patch-extra_dist_tarantoolctl new file mode 100644 index 000000000000..509da0634cfd --- /dev/null +++ b/databases/tarantool/files/patch-extra_dist_tarantoolctl @@ -0,0 +1,44 @@ +--- extra/dist/tarantoolctl.orig 2015-07-07 14:38:20 UTC ++++ extra/dist/tarantoolctl +@@ -39,6 +39,7 @@ The file contains common default instanc + logger = "/var/log/tarantool", + + username = "tarantool", ++ groupname = "tarantool", + } + + instance_dir = "/etc/tarantool/instances.enabled" +@@ -259,7 +260,8 @@ function load_default_file(default_file) + + if not usermode then + -- change user name only if not running locally +- d.username = d.username and d.username or "tarantool" ++ d.username = d.username and d.username or "tarantool" ++ d.groupname = d.groupname and d.groupname or "tarantool" + -- + -- instance_dir must be set in the defaults file, + -- but don't try to set it to the global instance dir +@@ -310,9 +312,9 @@ local function mkdir(dirname) + os.exit(-1) + end + +- if not usermode and not fio.chown(dirname, default_cfg.username, default_cfg.username) then ++ if not usermode and not fio.chown(dirname, default_cfg.username, default_cfg.groupname) then + log.error("Can't chown(%s, %s, %s): %s", +- default_cfg.username, default_cfg.username, dirname, errno.strerror()) ++ default_cfg.username, default_cfg.groupname, dirname, errno.strerror()) + end + end + +@@ -367,8 +369,9 @@ local function wrapper_cfg(cfg) + -- + -- force these startup options + -- +- cfg.pid_file = default_cfg.pid_file +- cfg.username = default_cfg.username ++ cfg.pid_file = default_cfg.pid_file ++ cfg.username = default_cfg.username ++ cfg.groupname = default_cfg.groupname + if cfg.background == nil then + cfg.background = true + end diff --git a/databases/tarantool/files/patch-src_box_lua_load__cfg.lua b/databases/tarantool/files/patch-src_box_lua_load__cfg.lua new file mode 100644 index 000000000000..0511c73d656d --- /dev/null +++ b/databases/tarantool/files/patch-src_box_lua_load__cfg.lua @@ -0,0 +1,20 @@ +--- src/box/lua/load_cfg.lua.orig 2015-05-28 22:07:40 UTC ++++ src/box/lua/load_cfg.lua +@@ -54,7 +54,8 @@ local default_cfg = { + custom_proc_title = nil, + pid_file = nil, + background = false, +- username = nil , ++ username = nil, ++ groupname = nil, + coredump = false, + + -- snapshot_daemon +@@ -101,6 +102,7 @@ local template_cfg = { + pid_file = 'string', + background = 'boolean', + username = 'string', ++ groupname = 'string', + coredump = 'boolean', + snapshot_period = 'number', + snapshot_count = 'number', diff --git a/databases/tarantool/files/patch-third__party_libev_ev.c b/databases/tarantool/files/patch-third__party_libev_ev.c new file mode 100644 index 000000000000..a1c48c7ecd35 --- /dev/null +++ b/databases/tarantool/files/patch-third__party_libev_ev.c @@ -0,0 +1,11 @@ +--- third_party/libev/ev.c.orig 2015-07-10 10:15:23 UTC ++++ third_party/libev/ev.c +@@ -2225,7 +2225,7 @@ ev_recommended_backends (void) EV_THROW + { + unsigned int flags = ev_supported_backends (); + +-#if !defined(__NetBSD__) && !defined(__FreeBSD__) ++#if !defined(__NetBSD__) + /* kqueue is borked on everything but netbsd apparently */ + /* it usually doesn't work correctly on anything but sockets and pipes */ + flags &= ~EVBACKEND_KQUEUE; |