debian/0000755000000000000000000000000012244310615007164 5ustar debian/tarantool-common.cron.hourly0000644000000000000000000000022412202131537014655 0ustar #!/bin/sh test -x /usr/bin/tarantool_box || exit 0 test -x /usr/sbin/tarantool_snapshot_rotate || exit 0 exec /usr/sbin/tarantool_snapshot_rotate debian/tarantool-common.logrotate0000644000000000000000000000033212202131537014373 0ustar /var/log/tarantool/*.log { daily size 512k missingok rotate 10 compress delaycompress create 0640 tarantool adm postrotate /usr/lib/tarantool/tarantool_logrotate endscript } debian/tarantool-common.manpages0000644000000000000000000000015012202131537014164 0ustar build-area/tarantool_instance.1 build-area/tarantool_logrotate.1 build-area/tarantool_snapshot_rotate.1 debian/tarantool.README.Debian0000644000000000000000000000043012202131537013222 0ustar To create new instance You should: 1. place instance_name.cfg into /etc/tarantool/instances.available/ 2. create symlink /etc/tarantool/instances.available/instance_name.cfg -> /etc/tarantool/instances.enabled/instance_name.cfg 3. do invoke-rc.d tarantool restart debian/copyright0000644000000000000000000006366112212057124011131 0ustar Format: http://dep.debian.net/deps/dep5/ Debianized-By: Dmitry E. Oboukhov Upstream-Name: tarantool, tarantool-box Upstream-Contact: tarantool-developers@lists.launchpad.net Source: https://github.com/tarantool/tarantool Files: third_party/libev/* third_party/coro/* third_party/libeio/* Copyright: 2007-2012 Marc Alexander Lehmann. License: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. . Alternatively, the contents of this package may be used under the terms of the GNU General Public License ("GPL") version 2 or any later version, in which case the provisions of the GPL are applicable instead of the above. If you wish to allow the use of your version of this package only under the terms of the GPL and not to allow others to use your version of this file under the BSD license, indicate your decision by deleting the provisions above and replace them with the notice and other provisions required by the GPL in this and the other files of this package. If you do not delete the provisions above, a recipient may use your version of this file under either the BSD or the GPL. . Debian systems, full text of GPLv2 license is alailable in /usr/share/common-licenses/GPL-2. Files: third_party/libev/event_compat.h Copyright: 2000-2004 Niels Provos , 2008 Marc Alexander Lehmann License: All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: third_party/libev/ev.c Copyright: 2007-2012 Marc Alexander Lehmann , 2011 Emanuele Giaquinta License: Redistribution and use in source and binary forms, with or without modifica- tion, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MER- CHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPE- CIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTH- ERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: third_party/coro/conftest.c Copyright: 1999-2001 Ralf S. Engelschall License: This file is part of GNU Pth, a non-preemptive thread scheduling library which can be found at http://www.gnu.org/software/pth/. . This file is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA, or contact Marc Lehmann . . Debian systems, full text of LGPLv2.1 license is alailable in /usr/share/common-licenses/LGPL-2.1 Files: third_party/crc32.c Copyright: 1986 Gary S. Brown. 2004-2006 Intel Corporation - All Rights Reserved License: You may use this program, or code or tables extracted from it, as desired without restriction. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: third_party/memrchr.c third_party/memmem.c Copyright: 2008 The NetBSD Foundation, Inc. License: All rights reserved. . This code is derived from software contributed to The NetBSD Foundation by Christos Zoulas. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: third_party/memcached/* Copyright: 2003, Danga Interactive, Inc. License: Copyright (c) 2003, Danga Interactive, Inc. All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * Neither the name of the Danga Interactive nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: third_party/luajit/* Copyright: 2005-2011 Mike Pall. All rights reserved. 1994-2011 Lua.org, PUC-Rio. License: LuaJIT -- a Just-In-Time Compiler for Lua. http://luajit.org/ . Copyright (C) 2005-2011 Mike Pall. All rights reserved. . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. . [ MIT license: http://www.opensource.org/licenses/mit-license.php ] . [ LuaJIT includes code from Lua 5.1/5.2, which has this license statement: ] . Copyright (C) 1994-2011 Lua.org, PUC-Rio. . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. . [ LuaJIT includes code from dlmalloc, which has this license statement: ] . This is a version (aka dlmalloc) of malloc/free/realloc written by Doug Lea and released to the public domain, as explained at http://creativecommons.org/licenses/publicdomain Files: test/lib/yapps/* Copyright: 1999-2003 Amit J. Patel 2003-2004 by Matthias Urlichs License: The MIT License (MIT) . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: third_party/qsort_arg.c third_party/queue.h connector/c/tntsql/include/tnt_queue.h Copyright: 1992, 1993 The Regents of the University of California. License: All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: third_party/valgrind/* Copyright: 2000-2010 Julian Seward. License: All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. . 3. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. . 4. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: third_party/sptree.h Copyright: 2010 Mail.RU 2010 Teodor Sigaev License: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: third_party/proctitle.c Copyright: 2000-2010 PostgreSQL Global Development Group License: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: third_party/lua-cjson/* Copyright: 2010-2012 Mark Pulford License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: third_party/lua-cjson/g_fmt.c Copyright: 1991, 1996 by Lucent Technologies. License: The author of this software is David M. Gay. . Permission to use, copy, modify, and distribute this software for any purpose without fee is hereby granted, provided that this entire notice is included in all copies of any software which is or includes a copy or modification of this software and in all copies of the supporting documentation for such software. . THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR LUCENT MAKES ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. Files: src/rope.c Copyright: 1993-1994 by Xerox Corporation. License: Author: Hans-J. Boehm . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. . THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED OR IMPLIED. ANY USE IS AT YOUR OWN RISK. . Permission is hereby granted to use or copy this program for any purpose, provided the above notices are retained on all copies. Permission to modify the code and to distribute modified code is granted, provided the above notices are retained, and a notice that the code was modified is included with the above copyright notice. Files: debian/* * Copyright: Aleksey Demakov, Aleksey Mashanov, Alexandre Kalendarev, Damien Lefortier, Dmitry E. Oboukhov, Dmitry Simonenko, Fedor Sigaev, Konstantin Osipov, Konstantin Shulgin, Yuri Nevinitsin, Pavel Cherenkov, Roman Antipin, Roman Tokarev, Teodor Sigaev, Timofey Khryukin, Yuriy Nevinitsin, Yuriy Vostrikov License: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/tarantool.manpages0000644000000000000000000000004412202131537012700 0ustar build-area/doc/man/tarantool_box.1 debian/libtarantoolnet1.install0000644000000000000000000000020012202131537014024 0ustar build-area/connector/c/tntnet/libtarantoolnet.so.1.1 /usr/lib/ build-area/connector/c/tntnet/libtarantoolnet.so.1 /usr/lib/ debian/source/0000755000000000000000000000000012212057124010462 5ustar debian/source/options0000644000000000000000000000015312212057124012077 0ustar # don't pack some non-free and generated files for Debian --extend-diff-ignore=rfc4627\.txt|www-data/ycsb debian/source/format0000644000000000000000000000001412202131537011670 0ustar 3.0 (quilt) debian/tarantool.install0000644000000000000000000000002612202131537012553 0ustar usr/bin/tarantool_box debian/changelog0000644000000000000000000003034312244310602011035 0ustar tarantool (1.5.1.218.g1a69fd6-1ubuntu1) trusty; urgency=low * Switch from binutils-dev build-dep to libiberty-dev instead. -- Adam Conrad Sat, 23 Nov 2013 22:41:14 -0700 tarantool (1.5.1.218.g1a69fd6-1build1) trusty; urgency=low * No-change rebuild against new binutils-dev. -- Adam Conrad Sat, 23 Nov 2013 22:21:34 -0700 tarantool (1.5.1.218.g1a69fd6-1) unstable; urgency=low * New Debian snapshot - patch for OpenVZ (disable MAP_SHARED mmap flag with OpenVZ). - fix socket:readline(..., timeout) bug. - suggests -dbg version of package. -- Dmitry E. Oboukhov Tue, 19 Nov 2013 16:17:23 +0400 tarantool (1.5.1.150.g029f82f-1) unstable; urgency=low * New Debian snapshot (fix memory corruption). -- Dmitry E. Oboukhov Fri, 25 Oct 2013 15:26:36 +0400 tarantool (1.5.1.148.g6dddbc7-1) unstable; urgency=low * New Debian snapshot. -- Dmitry E. Oboukhov Wed, 23 Oct 2013 13:46:46 +0400 tarantool (1.5.1.84.g9f2e646-1) unstable; urgency=low * Drop BSD dependencies in Debian/kFreeBSD (try to fix FTBFS with Debian/BSD). -- Dmitry E. Oboukhov Mon, 09 Sep 2013 15:52:39 +0400 tarantool (1.5.1.82.ga064ebe-1) unstable; urgency=low * Remove tarantool/config.h pointedly (try to fix FTBFS with Debian/kFreeBSD). -- Dmitry E. Oboukhov Mon, 09 Sep 2013 13:35:06 +0400 tarantool (1.5.1.81.g4382f16-1) unstable; urgency=low * Fix debian/rules clean section (cleanup CMake files). -- Dmitry E. Oboukhov Sun, 08 Sep 2013 23:05:29 +0400 tarantool (1.5.1.80.gc84e35c-1) unstable; urgency=low * New snapshot (try to fix FTBFS with Debian/kFreeBSD). -- Dmitry E. Oboukhov Sun, 08 Sep 2013 22:14:09 +0400 tarantool (1.5.1.78.g2e82d26-1) unstable; urgency=low * New snapshot. Integration upload. - Add missing copyright holders, closes: #722059 - Drop non-free materials from tarbal, closes: #722060 - Fix memory leak in box.ipc.channel:put. -- Dmitry E. Oboukhov Sun, 08 Sep 2013 02:00:51 +0400 tarantool (1.5.1.76.g5ed3fbe-1) unstable; urgency=low * New snapshot. - Fix memory leak in box.ipc.channel:put(v, 0) -- Dmitry E. Oboukhov Thu, 05 Sep 2013 14:36:52 +0400 tarantool (1.5.1.73.gd1b3db6-1) unstable; urgency=low * New snapshot - Fix crashes with broken snapshot. - Cleanup debian/copyright (drop php-connector section). - Drop empty TODO files from binary packages. - debian/* relicensed as tarantool. - tarantool-plugins has 'any' architecture: it depends on plugins that contain ELF-files. - Fix FTBFS with Debian/kFreeBSD, closes: #715358. - Drop irrelevant debian/README.source. - Add postgresql-plugin package. - Add mysql-plugin package. - Add -plugins package (Now it depends on other plugin. Then it will contain some internal tarantool plugins). - Remove non-free rfc4627.txt. - Update debian/copyright. -- Dmitry E. Oboukhov Wed, 04 Sep 2013 12:45:34 +0400 tarantool (1.4.9+20130611.2012-1) unstable; urgency=low * New snapshot, fix crash with gcc-4.7.3. -- Dmitry E. Oboukhov Tue, 11 Jun 2013 20:12:22 +0400 tarantool (1.4.9+20130608.2059-1) unstable; urgency=low * New upstream release: move to C++ from ObjectC. Add box.cjson module. -- Dmitry E. Oboukhov Sat, 08 Jun 2013 20:59:30 +0400 tarantool (1.4.9+20130415.1808-1) unstable; urgency=low * New upstream release (fix disconnect bug). https://bugs.launchpad.net/tarantool/+bug/1168076 -- Dmitry E. Oboukhov Mon, 15 Apr 2013 18:08:14 +0400 tarantool (1.4.9-1) unstable; urgency=low * New upstream release. + Apply patch from Colin Watson , closes: #703044, + Fix VCS-link, closes: #681703 + Fix FTBFS (kfreebsd), patch from Steven Chamberlain , closes: 695541 -- Dmitry E. Oboukhov Wed, 10 Apr 2013 12:08:49 +0400 tarantool (1.4.8+20130306.1415-1) unstable; urgency=low * New snapshot (some fixes in iproto). -- Dmitry E. Oboukhov Wed, 06 Mar 2013 14:15:10 +0400 tarantool (1.4.8+20130212.1728-1) unstable; urgency=low * Rebuilt last snapshot for Debian. -- Dmitry E. Oboukhov Tue, 12 Feb 2013 17:27:48 +0400 tarantool (1.4.8+20130212.1647-1) nowtaxi; urgency=low * New snapshot (fix async I/O bugs). -- Roman V. Nikolaev Tue, 12 Feb 2013 16:47:10 +0400 tarantool (1.4.8+20130122.1705-1) unstable; urgency=low * New snapshot (fix spam in tarantool.log). -- Dmitry E. Oboukhov Tue, 22 Jan 2013 17:05:18 +0400 tarantool (1.4.8+20130122-1) unstable; urgency=low * New snapshot (fix in box.session triggers). -- Dmitry E. Oboukhov Tue, 22 Jan 2013 16:40:25 +0400 tarantool (1.4.8+20130110-1) unstable; urgency=low * New snapshot (Implement box.session, on_connect and on_disconnect triggers.) -- Dmitry E. Oboukhov Thu, 10 Jan 2013 23:03:42 +0400 tarantool (1.4.8+20130104-1) unstable; urgency=low * New snapshot (segfault in tree iterator). -- Dmitry E. Oboukhov Fri, 04 Jan 2013 01:29:54 +0400 tarantool (1.4.8+20121214-1) unstable; urgency=low * New snapshot (fix segfault with box.ipc.channel). -- Dmitry E. Oboukhov Fri, 14 Dec 2012 16:39:02 +0400 tarantool (1.4.8+20121207-1) unstable; urgency=low * New snapshot (add box.time64 needed by queues). -- Dmitry E. Oboukhov Fri, 07 Dec 2012 14:45:38 +0400 tarantool (1.4.8-1) unstable; urgency=low * New tarantool release. -- Dmitry E. Oboukhov Fri, 23 Nov 2012 11:56:02 +0400 tarantool (1.4.7+20121010.2202-1) unstable; urgency=low * New snapshot (Don't exit on a trivial socket error). -- Dmitry E. Oboukhov Wed, 10 Oct 2012 22:01:58 +0400 tarantool (1.4.7+20121010-1) unstable; urgency=low * New snapshot. -- Dmitry E. Oboukhov Wed, 10 Oct 2012 17:22:26 +0400 tarantool (1.4.7+20120918-1) unstable; urgency=low * New snapshot (some fixes in lua:box.slab). -- Dmitry E. Oboukhov Tue, 18 Sep 2012 21:57:51 +0400 tarantool (1.4.7+20120915-1) unstable; urgency=low * New snapshot (enable box.info, box.slab, box.stat, etc) -- Dmitry E. Oboukhov Sat, 15 Sep 2012 00:02:10 +0400 tarantool (1.4.7+20120905-1) unstable; urgency=low * New snapshot. -- Dmitry E. Oboukhov Wed, 05 Sep 2012 15:36:27 +0400 tarantool (1.4.7+20120829-1) unstable; urgency=low * New snapshot (some fixes, add box.uuid() and box.uuid_hex() functions). -- Dmitry E. Oboukhov Wed, 29 Aug 2012 16:46:58 +0400 tarantool (1.4.7+20120820-1) unstable; urgency=low * New snapshot (fixed tuple:transform crash). -- Dmitry E. Oboukhov Mon, 20 Aug 2012 21:42:21 +0400 tarantool (1.4.7+20120817-1) unstable; urgency=low * New upstream version. + Add WAL rotate script. * Add all contributors to debian/copyright (fix lintian warning). -- Dmitry E. Oboukhov Fri, 03 Aug 2012 12:09:14 +0400 tarantool (1.4.7+20120714-1) unstable; urgency=low * Fixed memcached space and some troubles in build system. -- Dmitry E. Oboukhov Sat, 14 Jul 2012 10:05:37 +0400 tarantool (1.4.7-1) unstable; urgency=low * New upstream stable version. - can be built by gcc-4.7; - new transaction processor; - add libtarantoolrpl library (provides replication protocol); - extract perl and php drivers to their own repositaries. - etc -- Dmitry E. Oboukhov Wed, 11 Jul 2012 10:06:52 +0400 tarantool (1.4.6+20120629+2158-1) unstable; urgency=low * Some fixes for Objective C 2.0. -- Dmitry E. Oboukhov Fri, 29 Jun 2012 21:58:42 +0400 tarantool (1.4.6+20120629+2112-1) unstable; urgency=low * Package is built by gcc-4.7. -- Dmitry E. Oboukhov Fri, 29 Jun 2012 21:11:30 +0400 tarantool (1.4.6+20120629+2105-1) unstable; urgency=low * Really fixed FTBFS with BSD (#679317). -- Dmitry E. Oboukhov Fri, 29 Jun 2012 21:05:21 +0400 tarantool (1.4.6+20120629-1) unstable; urgency=low * New upstream version: fixed FTBFS with Debian/kFreeBSD. closes: #679317. -- Dmitry E. Oboukhov Fri, 29 Jun 2012 17:26:03 +0400 tarantool (1.4.6+20120626-1) unstable; urgency=low * New upstream version. * Add libtarantoolrpl package: (replication protocol). * Fixed segfaults by adminport. * Upstream added some checks for requests, closes: #672327. -- Dmitry E. Oboukhov Tue, 26 Jun 2012 15:30:02 +0400 tarantool (1.4.6+20120524-1) unstable; urgency=low * Fix version number. * Fix tarantool_instance: user could not to define 'file_descriptors' -- Dmitry E. Oboukhov Thu, 24 May 2012 12:57:27 +0400 tarantool (1.4.5+20120522-1) unstable; urgency=low * New git snapshot: upstream upgraded libtarantool. -- Dmitry E. Oboukhov Tue, 22 May 2012 22:55:07 +0400 tarantool (1.4.5+20120510-1) unstable; urgency=low * New git snapshot (it provides script_dir option). * Add binutils-dev to B-D list (for debugging crashes, #672327). -- Dmitry E. Oboukhov Thu, 10 May 2012 10:23:28 +0400 tarantool (1.4.5+20120503-2) unstable; urgency=low * Add librt to linklist (fix FTBFS with Debian/kFreeBSD). -- Dmitry E. Oboukhov Fri, 04 May 2012 09:27:04 +0400 tarantool (1.4.5+20120503-1) unstable; urgency=low * New upstream snapshot. * Add Priority for sources. * Add libtarantool* packages that weren't be packaged earlier: upstream renamed them, now we have no conflicts with the other debian packages. * Add libncurses5-dev into Build-Depends. -- Dmitry E. Oboukhov Thu, 03 May 2012 17:35:18 +0400 tarantool (1.4.4+20120127-1) unstable; urgency=low * Merge with upstream. * Package can purge not owned files, closes: #657132. -- Dmitry E. Oboukhov Fri, 27 Jan 2012 23:37:53 +0400 tarantool (1.4.4+20120117-1) unstable; urgency=low * Merge my changes with upstream. * Disable tests after building process. -- Dmitry E. Oboukhov Mon, 16 Jan 2012 22:35:44 +0400 tarantool (1.4.4+20120116-2) unstable; urgency=low * Add rt into Debian/kFreeBSD likdepends. -- Dmitry E. Oboukhov Mon, 16 Jan 2012 16:54:17 +0400 tarantool (1.4.4+20120116-1) unstable; urgency=low * New git snapshot. -- Dmitry E. Oboukhov Mon, 16 Jan 2012 11:36:19 +0400 tarantool (1.4.4+20111229+2-2) unstable; urgency=low * use cd instead chdir, closes: 653611; * use spaces instead '\t' symbol, closes: 653607; * use readlink instead perl command, closes: 653613. thanks to Norbert Kiesel for all bugreports. * add libmr-tarantool-perl to 'suggests' section of debian/control. -- Dmitry E. Oboukhov Thu, 29 Dec 2011 23:21:06 +0400 tarantool (1.4.4+20111229+2-1) unstable; urgency=low * Debian/kFreeBSD doesn't have proctitle. -- Dmitry E. Oboukhov Thu, 29 Dec 2011 17:18:51 +0400 tarantool (1.4.4+20111229+1-1) unstable; urgency=low * Try to patch build-system for Debian kFreeBSD. -- Dmitry E. Oboukhov Thu, 29 Dec 2011 13:41:48 +0400 tarantool (1.4.4+20111229-1) unstable; urgency=low * Fix test box/args.test. -- Dmitry E. Oboukhov Thu, 29 Dec 2011 08:49:34 +0400 tarantool (1.4.4+20111228-3) unstable; urgency=low * kFreeBSD: uses glibc, amd64 is x86 architecture. -- Dmitry E. Oboukhov Wed, 28 Dec 2011 23:38:12 +0400 tarantool (1.4.4+20111228-2) unstable; urgency=low * Specify architectures. -- Dmitry E. Oboukhov Wed, 28 Dec 2011 22:40:28 +0400 tarantool (1.4.4+20111228-1) unstable; urgency=low * Fix build system for kFreeBSD. -- Dmitry E. Oboukhov Wed, 28 Dec 2011 21:36:33 +0400 tarantool (1.4.4-1) unstable; urgency=low * Init debian release, closes: #652911. -- Dmitry E. Oboukhov Sun, 18 Dec 2011 11:35:37 +0400 debian/compat0000644000000000000000000000000212202131537010360 0ustar 8 debian/tarantool-client.install0000644000000000000000000000002212202131537014023 0ustar usr/bin/tarantool debian/tarantool-common.postrm0000644000000000000000000000027012202131537013720 0ustar #!/bin/sh set -e case "$1" in purge) rm -fr \ /var/log/tarantool \ /var/run/tarantool \ /var/lib/tarantool ;; esac #DEBHELPER# debian/tarantool-common.tarantool.init0000644000000000000000000000310412202131537015340 0ustar #! /bin/sh # /etc/init.d/tarantool ### BEGIN INIT INFO # Provides: tarantool # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Tarantool init script # Description: This file should be used to construct scripts to be # placed in /etc/init.d. ### END INIT INFO # Author: Dmitry E. Oboukhov PATH=/sbin:/usr/sbin:/bin:/usr/bin CONF_DIR=/etc/tarantool/instances.enabled SCRIPTNAME=/etc/init.d/tarantool DAEMON=/usr/bin/tarantool_box INSTANCES=`find $CONF_DIR -xtype f -name '*.cfg'` INSTSCRIPT=/usr/sbin/tarantool_instance # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 . /lib/init/vars.sh if test -z "$INSTANCES"; then echo "tarantool: There are no instances in $CONF_DIR" exit 0 fi # # Function that starts the daemon/service # do_start() { echo "tarantool: Staring instances" for inst in $INSTANCES; do $INSTSCRIPT $inst start done return 0 } # # Function that stops the daemon/service # do_stop() { echo "tarantool: Stopping instances" for inst in $INSTANCES; do $INSTSCRIPT $inst stop done return 0 } # # Function that sends a SIGHUP to the daemon/service # do_reload() { do_stop do_start } case "$1" in start) do_start ;; stop) do_stop ;; status) ;; restart|force-reload) do_stop do_start ;; *) echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/tarantool-common.dirs0000644000000000000000000000012712202131537013336 0ustar /etc/tarantool/instances.available /etc/tarantool/instances.enabled /usr/lib/tarantool debian/rules0000755000000000000000000000421712213313365010251 0ustar #!/usr/bin/make -f #DPKG_EXPORT_BUILDFLAGS = 1 #include /usr/share/dpkg/buildflags.mk VERSION := $(shell dpkg-parsechangelog|grep ^Version|awk '{print $$2}') UVERSION := $(shell echo $(VERSION)|sed 's/-[[:digit:]]\+$$//') DEB_CMAKE_EXTRA_FLAGS := \ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ -DENABLE_CLIENT=true DEB_DH_INSTALLINIT_ARGS := --name=tarantool DEB_CMAKE_INSTALL_PREFIX := /usr DEB_CMAKE_NORMAL_ARGS := -DCMAKE_INSTALL_PREFIX="$(DEB_CMAKE_INSTALL_PREFIX)" \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DCMAKE_SYSCONF_DIR=/etc/tarantool \ -DCMAKE_LOCALSTATE_DIR=/var # -DCMAKE_C_FLAGS="$(CFLAGS)" \ # -DCMAKE_LD_FLAGS="$(LDFLAGS)" \ # -DENABLE_STATIC=ON # -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \ # -DCMAKE_CPP_FLAGS="$(CPPFLAGS)" \ # -DCMAKE_C_COMPILER:FILEPATH="$(CC)" \ # -DCMAKE_CXX_COMPILER:FILEPATH="$(CXX)" \ DEB_SHLIBDEPS_INCLUDE := /usr/lib/tarantool/plugins DEB_INSTALL_DOCS_ALL := -XTODO -XAUTHORS include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/cmake.mk DEB_BUILDDIR := build-area tarball: clean git describe > VERSION cd .. && tar --exclude=.git --exclude=debian \ --exclude=rfc4627.txt \ --exclude=doc/www-data/ycsb \ -czf tarantool_$(UVERSION).orig.tar.gz tarantool-$(UVERSION) clean:: find -type f -name \*.pyc -delete find -type d -name CMakeFiles -exec rm -fr '{}' + rm -f CMakeCache.txt rm -f CPackConfig.cmake rm -f CPackSourceConfig.cmake rm -f include/tarantool/config.h rm -f doc/tnt.ent rm -f www-data.in/download install/tarantool-dbg:: rm -fr debian/tarantool-dbg/usr/share/doc/tarantool-dbg install/tarantool:: # make -C build-area test-force || /bin/true install/tarantool-common:: pod2man -c 'tarantool instances control' \ debian/tarantool_instance.pod > build-area/tarantool_instance.1 pod2man -c 'tarantool log rotation' \ debian/scripts/tarantool_logrotate \ > build-area/tarantool_logrotate.1 pod2man -c 'snapshot rotate' \ debian/scripts/tarantool_snapshot_rotate \ > build-area/tarantool_snapshot_rotate.1 install -m0755 extra/logger.pl \ debian/tarantool-common/usr/lib/tarantool/logger debian/libtarantool-dev.install0000644000000000000000000000076512202131537014030 0ustar build-area/connector/c/tnt/*.so /usr/lib/ build-area/connector/c/tnt/*.a /usr/lib/ build-area/connector/c/tntnet/*.so /usr/lib/ build-area/connector/c/tntnet/*.a /usr/lib/ build-area/connector/c/tntsql/*.so /usr/lib/ build-area/connector/c/tntsql/*.a /usr/lib/ build-area/connector/c/tntrpl/*.so /usr/lib/ build-area/connector/c/tntrpl/*.a /usr/lib/ connector/c/include/tarantool/* /usr/include/tarantool/ debian/libtarantool1.install0000644000000000000000000000016412202131537013326 0ustar build-area/connector/c/tnt/libtarantool.so.1.1 /usr/lib/ build-area/connector/c/tnt/libtarantool.so.1 /usr/lib/ debian/control0000644000000000000000000001722712244310624010600 0ustar Source: tarantool Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Dmitry E. Oboukhov Build-Depends: cdbs, debhelper (>= 8), cmake, libreadline-dev, python-yaml, python-daemon, python-pexpect, libncurses5-dev, libiberty-dev, libmysqlclient-dev, libpq-dev Section: database Standards-Version: 3.9.3 Homepage: http://tarantool.org/ VCS-Browser: https://github.com/tarantool/tarantool VCS-Git: git://github.com/tarantool/tarantool.git Package: tarantool-common Architecture: all Priority: optional Depends: ${misc:Depends}, adduser Description: Tarantool in-memory database - common files Tarantool is an in-memory database and Lua application server. This package provides scripts to work with tarantool configuration and log files. Package: tarantool Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends}, tarantool-common Suggests: tarantool-dbg, tarantool-client, libdr-tarantool-perl Description: In-memory database with Lua application server Tarantool is an in-memory database and Lua application server. Its key properties include: . * flexible data model * multiple index types: HASH, TREE, BITSET * optional persistence and strong data durability * log streaming replication * Lua functions, procedures, triggers, with rich access to database API, JSON support, inter-procedure and network communication libraries * a command line client supporting simple SQL and a native Lua console . This package provides Tarantool server. Package: tarantool-plugins Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends}, tarantool (= ${binary:Version}), tarantool-postgresql-plugin, tarantool-mysql-plugin Suggests: tarantool-dbg, libdr-tarantool-perl Description: Tarantool in-memory database - all plug-ins bundle Tarantool is an in-memory database and Lua application server. This package provides (or depends on) all Tarantool plug-ins. Package: tarantool-postgresql-plugin Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends}, tarantool (= ${binary:Version}) Suggests: tarantool-dbg, libdr-tarantool-perl Description: Tarantool in-memory database - PostgreSQL connector Tarantool is an in-memory database and Lua application server. This package contains a connector to PostgreSQL database for Tarantool Lua stored procedures. Package: tarantool-mysql-plugin Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends}, tarantool (= ${binary:Version}) Suggests: tarantool-dbg, libdr-tarantool-perl Description: Tarantool in-memory database - MySQL connector Tarantool is an in-memory database and Lua application server. This package contains a connector to MySQL database for Tarantool Lua stored procedures. Package: tarantool-dbg Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: extra Section: debug Depends: ${shlibs:Depends}, ${misc:Depends}, tarantool (= ${binary:Version}) Description: Tarantool in-memory database - debugging symbols Tarantool is an in-memory database and Lua application server. This package provides debugging symbols for Tarantool server. Package: tarantool-client Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: tarantool-client-dbg Description: Tarantool in-memory database - command line client Tarantool is an in-memory database and Lua application server. This package provides a command line client for Tarantool server with support of readline, command history, reader of server binary logs and snapshot files. Package: tarantool-client-dbg Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: extra Section: debug Depends: ${shlibs:Depends}, ${misc:Depends}, tarantool-client (= ${binary:Version}) Description: Tarantool in-memory database - client debugging symbols Tarantool is an in-memory database and Lua application server. This package provides debugging symbols for the command line client. Package: libtarantool1 Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends} Description: Tarantool in-memory database - C client library Tarantool is an in-memory database and Lua application server. This package provides C-connector library for Tarantool. Package: libtarantool1-dbg Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: extra Section: debug Depends: ${shlibs:Depends}, ${misc:Depends}, libtarantool1 (= ${binary:Version}) Description: Tarantool in-memory database - C client library debugging symbols Tarantool is an in-memory database and Lua application server. This package provides debugging symbols for libtarantool1. Package: libtarantool-dev Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: optional Section: libdevel Depends: ${shlibs:Depends}, ${misc:Depends}, libtarantool1 (= ${binary:Version}), libtarantoolnet1 (= ${binary:Version}), libtarantoolsql1 (= ${binary:Version}), libtarantoolrpl1 (= ${binary:Version}) Description: Tarantool in-memory database - development headers Tarantool is an in-memory database and Lua application server. This package provides headers for libtarantool* libraries. Package: libtarantoolnet1 Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends} Description: Tarantool in-memory database - networking client Tarantool is an in-memory database and Lua application server. This package provides C-connector library for Tarantool (network). Package: libtarantoolnet1-dbg Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: extra Section: debug Depends: ${shlibs:Depends}, ${misc:Depends}, libtarantoolnet1 (= ${binary:Version}) Description: Tarantool in-memory database - client library - debug symbols Tarantool is an in-memory database and Lua application server. This package provides debugging symbols for libtarantoolnet1. Package: libtarantoolsql1 Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends} Description: Tarantool in-memory database - SQL library This package provides SQL-parser library for tarantool client library. Package: libtarantoolsql1-dbg Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: extra Section: debug Depends: ${shlibs:Depends}, ${misc:Depends}, libtarantoolsql1 (= ${binary:Version}) Description: Tarantool in-memory database - SQL library - debugging symbols Tarantool is an in-memory database and Lua application server. This package provides debug symbols for libtarantoolsql1. Package: libtarantoolrpl1 Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends} Description: Tarantool in-memory database - replication client Tarantool is an in-memory database and Lua application server. This package provides C-connector library for tarantool (xlog and replication support). Package: libtarantoolrpl1-dbg Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386 Priority: extra Section: debug Depends: ${shlibs:Depends}, ${misc:Depends}, libtarantoolsql1 (= ${binary:Version}) Description: Tarantool in-memory database - client library debugging symbols Tarantool is an in-memory database and Lua application server. This package provides debug symbols for libtarantoolrpl1. debian/scripts/0000755000000000000000000000000012212057124010651 5ustar debian/scripts/tarantool_logrotate0000755000000000000000000000345112202131537014665 0ustar #!/usr/bin/perl use warnings; use strict; use constant CONFIG_DIR => '/var/lib/tarantool/started'; use constant PID_DIR => '/var/run/tarantool'; use File::Spec::Functions 'catfile'; use File::Basename 'basename', 'dirname'; use IO::Socket::INET; exit 0 unless -x PID_DIR; exit 0 unless -x CONFIG_DIR; for (glob catfile PID_DIR, '*.pid') { my $cfg = catfile CONFIG_DIR, basename $_, '.pid'; unless(-r $cfg) { warn "Config file '$cfg' is not found\n"; next; } my $admin_port; if (open my $fh, '<', $cfg) { my @cfg = <$fh>; ($admin_port) = grep /^\s*admin_port\s*=\s*\d+\s*$/, reverse @cfg; } else { warn "$!\n"; next; } unless($admin_port) { warn "admin_port is not found in $cfg\n"; next; } $admin_port =~ s/\D+//g; my $socket = IO::Socket::INET->new(PeerAddr => "localhost:$admin_port"); unless($socket) { warn "Can't connect to localhost:$admin_port: $!"; next; } my $logger_pid; local $SIG{ALRM} = sub { die "alarm\n" }; alarm 3; eval { print $socket "show info\n"; while(<$socket>) { next unless /^\s*logger_pid:\s*(\d+)\s*$/; $logger_pid = $1; last; } }; alarm 0; unless($logger_pid) { warn "Can't define logger_pid\n"; next; } unless(kill 'HUP' => $logger_pid) { warn "Can't send HUP to pid=$logger_pid: $!"; next; } } =head1 NAME /usr/lib/tarantool/tarantool_logrotate - utility to rotate tarantool instances logs =head1 SINOPSYS tarantool_logrotate =head1 DESCRIPTION The utility tries to connect to each running tarantool instance to get logger pid file, then it sends B to logger which initiates log rotataion procedure. debian/scripts/tarantool_instance0000755000000000000000000000506412202131537014473 0ustar #!/bin/sh set -e CFG=$1 ACTION=$2 CONFIG_DIR=/var/lib/tarantool/started SNAPSHOT_DIR=/var/lib/tarantool/snapshot PID_DIR=/var/run/tarantool LOG_DIR=/var/log/tarantool BOX=/usr/bin/tarantool_box SSD=start-stop-daemon CFG_DIR=/etc/tarantool/instances.enabled cd $CFG_DIR usage="Usage: sh $0 /path/to/config.file start|stop" if ! test -x $BOX; then exit 0 fi if test -z "$CFG"; then echo $usage exit 5 fi if ! echo $ACTION|grep -q '^\(start\|stop\)$'; then echo $usage exit 5 fi if ! test -r "$CFG"; then if echo $CFG|grep -q '\.cfg$'; then echo File $CFG not found exit 10 else if ! test -r "$CFG.cfg"; then echo "Instance config '$CFG' not found" exit 15 fi CFG="$CFG.cfg" fi fi CFG=`readlink -f "$CFG"` if ! test -x $BOX; then echo "$BOX not found or can't be started" exit 20 fi NAME=`basename $CFG .cfg` PID=$PID_DIR/$NAME.pid SCFG=$CONFIG_DIR/$NAME RUNDIR=$SNAPSHOT_DIR/$NAME LOG=$LOG_DIR/$NAME.log LOGGER="exec /usr/lib/tarantool/logger $LOG" SOCKETS=`grep \ '^[[:space:]]*\(opt[[:space:]]\+\)\?file_descriptors[[:space:]]*=[[:space:]]*[[:digit:]]\+' $CFG \ | tail -n 1 \ | sed 's/[^[:digit:]]//g'` if test -z $SOCKETS; then SOCKETS=1023 fi if ! test -x $PID_DIR; then install -otarantool -gtarantool -d -m0750 $PID_DIR fi SSDARGS_NO_PID="--quiet --chdir $RUNDIR --chuid tarantool --exec" SSDARGS="--pidfile $PID $SSDARGS_NO_PID" if [ $SOCKETS -gt 1024 -a $SOCKETS -lt 65000 ]; then ulimit -n $SOCKETS fi ulimit -c unlimited comment_str="#### - commented by init script" sed "s/^[[:space:]]*file_descriptors.*/# & $comment_str/" $CFG > $SCFG echo "pid_file = $PID" >> $SCFG echo "logger = \"$LOGGER\"" >> $SCFG grep '^[[:space:]]*admin_port[[:space:]]*=' $CFG |tail -n 1 >> $SCFG grep '^[[:space:]]*primary_port[[:space:]]*=' $CFG |tail -n 1 >> $SCFG $BOX -c $SCFG -v --check-config if [ ! -d $RUNDIR ]; then install -d -otarantool -gtarantool -m0750 $RUNDIR cd $RUNDIR if ! $SSD --start $SSDARGS $BOX -- --init-storage -v -c $SCFG; then rm -fr $RUNDIR exit 25 fi fi if [ $ACTION = 'start' ]; then echo -n " Starting '$NAME' ... " else echo -n " Stopping '$NAME' ... " SSDARGS="--retry 15 $SSDARGS" fi if $SSD --$ACTION $SSDARGS $BOX -- -B -v -c $SCFG; then echo "ok" else ret=$? if [ $ret -eq 1 ]; then if [ $ACTION = 'start' ]; then echo "already started" else echo "already stoppped" fi else echo "failed" fi fi debian/scripts/tarantool_snapshot_rotate0000644000000000000000000001502512212057124016077 0ustar #!/usr/bin/perl use warnings; use strict; use constant CONFIG_DIR => '/var/lib/tarantool/started'; use constant PID_DIR => '/var/run/tarantool'; use constant SNAPSHOT_DIR => '/var/lib/tarantool/snapshot'; use File::Spec::Functions 'catfile'; use File::Basename 'basename', 'dirname'; use IO::Socket::INET; use Getopt::Long; use Pod::Usage; use Data::Dumper; pod2usage(-exitstatus => 0, -verbose => 2) unless GetOptions 'help|h' => \my $help, 'verbose|v' => \my $verbose, 'snapshots|s=i' => \my $snapshots, 'snapshot_period|p=i' => \my $period, ; sub DEBUGF($;@) { return unless $verbose; my ($fmt, @arg) = @_; $fmt =~ s/\s*$/\n/; printf STDERR $fmt, @arg; } sub list_files($) { my $sndir = shift; unless (-d $sndir) { DEBUGF 'Snapshot directory "%s" was not found', $sndir; return; } unless (-w $sndir) { DEBUGF 'Can not write into directory %s', $sndir; return; } my $dh; opendir $dh, $sndir; my @files = sort grep /\.(snap|xlog)$/, grep { -r $_ and -f $_ } map { catfile $sndir, $_ } readdir $dh; return @files; } sub rotate_snapshot($$$) { my ($pidfile, $snap_count, $snap_period) = @_; $snap_count = $snapshots || 10 unless defined $snap_count; $snap_period = $period || 24 unless defined $snap_period; $snap_count = $snapshots if defined $snapshots; $snap_period = $period if defined $period; $snap_period ||= 0; my $pid; DEBUGF "\tBegin rotating process period=%s, count=%s", $snap_period, $snap_count; if (open my $ph, '<', $pidfile) { $pid = <$ph>; $pid =~ s/\D+//g; } else { warn "Can't open file $pidfile: $!\n"; return; } unless($pid) { warn "PID was not received\n"; return; } my $sndir = catfile SNAPSHOT_DIR, basename $pidfile, '.pid'; my @files = list_files $sndir; goto FINISH unless @files; my ($last_snap) = grep /\.snap$/, reverse @files; if ($last_snap) {{ my @stat = stat $last_snap; last unless @stat; my $ctime = $stat[10]; if (time - $ctime < $snap_period * 3600 - 3600 / 2) { DEBUGF "\tLast snapshot was created %3.2f hours ago, ". "do not create new", (time - $ctime) / 3600; return; } DEBUGF "\tLast snapshot was created %3.2f hours ago, creating new", (time - $ctime) / 3600; }} else { DEBUGF "\tLast snapshot was not found, creating new"; } while(@files and $files[0] =~ /\.xlog$/) { DEBUGF "\tRemove orphaned %s", $files[0]; unless (unlink $files[0]) { DEBUGF "\tCan't unlink file %s: %s", $files[0], $!; return; } shift @files; } unless (kill 0 => $pid) { DEBUGF "\tProcess %s is not started", $pidfile; return; } if (kill USR1 => $pid) { goto FINISH unless @files; for (my $i = 0; $i < 5; $i++) { sleep 1; my @inpr = sort glob catfile SNAPSHOT_DIR, '*.snap.inprogress'; last unless @inpr; if ($inpr[-1] and $inpr[-1] gt $files[-1]) { DEBUGF "\tsnapshot %s is still in progress...", $inpr[-1]; next; } } } else { warn "Error while sending snapshot signal: $!"; return; } if ($snap_count) { @files = list_files $sndir; my $snaps = grep /\.snap$/, @files; if ($snaps > $snap_count) { my $to_remove = $snaps - $snap_count; while (@files) { my $file = shift @files; $to_remove-- if $file =~ /\.snap$/; DEBUGF "\tUnlink file: %s...", $file; unless (unlink $file) { DEBUGF "\tCan't unlink file %s: %s", $file, $!; return; } last unless $to_remove > 0; } while(@files and $files[0] =~ /\.xlog$/) { DEBUGF "\tRemove orphaned %s", $files[0]; unless (unlink $files[0]) { DEBUGF "\tCan't unlink file %s: %s", $files[0], $!; return; } shift @files; } } } else { DEBUGF "\tDon't remove any old snapshots"; } FINISH: } DEBUGF "Looking through %s...", PID_DIR; for (glob catfile PID_DIR, '*.pid') { my $cfg = catfile CONFIG_DIR, basename $_, '.pid'; unless(-r $cfg) { warn "Config file '$cfg' is not found\n"; next; } DEBUGF 'Found instance "%s" (%s)', basename($cfg), basename $_; if (open my $fh, '<:encoding(UTF-8)', $cfg) { my @lines = <$fh>; my ($user_snapshots) = grep /^\s*(?:opt\s+)?save_snapshots\s*=\s*\d+\s*(?:#.*)?$/, reverse @lines; my ($snapshot_period) = grep /^\s*(?:opt\s+)?snapshot_period\s*=\s*\d+\s*(?:#.*)?$/, reverse @lines; if ($user_snapshots) { for ($user_snapshots) { s/#.*//; s/\D//g; } unless($user_snapshots =~ /^[1-9]\d*$/) { warn "wrong format of save_snapshots\n"; $user_snapshots = undef; } } if ($snapshot_period) { for ($snapshot_period) { s/#.*//; s/\D//g; } unless($snapshot_period =~ /^[1-9]\d*$/) { warn "wrong format of snapshot_period\n"; $snapshot_period = undef; } } rotate_snapshot $_, $user_snapshots, $snapshot_period; } else { warn "Can't open file $cfg: $!\n"; next; } } exit 0 unless -x PID_DIR; exit 0 unless -x CONFIG_DIR; =head1 NAME tarantool_snapshot_rotate - script to creates/rotates snapshots =head1 SYNOPSIS tarantool_snapshot_rotate tarantool_snapshot_rotate --verbose =head1 DESCRIPTION The script passes through all started tarantool instances and creates snapshots for each instance. The script understands some additional options in tarantool.cfg: =over =item save_snapshots = COUNT Count of snapshots to save (default = 10). COUNT=0 disables removing old snapshots. =back =head1 OPTIONS =over =item -h | --help show the helpscreen =item -v | --verbose log process to B =item -s | --snapshots COUNT redefines B option of config file =back =cut debian/tarantool-common.postinst0000644000000000000000000000127212202131537014262 0ustar #!/bin/sh set -e SYSUSER=tarantool case "$1" in configure) if ! getent passwd $SYSUSER > /dev/null; then adduser \ --system \ --group \ --quiet \ --home \ /var/spool/$SYSUSER \ --no-create-home \ --disabled-login \ tarantool fi install -d -o$SYSUSER -gadm -m2750 /var/log/tarantool install -d -o$SYSUSER -g$SYSUSER -m750 /var/run/tarantool install -d -o$SYSUSER -g$SYSUSER -m750 /var/lib/tarantool/started install -d -o$SYSUSER -g$SYSUSER -m750 /var/lib/tarantool/snapshot ;; esac #DEBHELPER# debian/tarantool-mysql-plugin.install0000644000000000000000000000004712202156442015217 0ustar usr/lib/tarantool/plugins/libmysql.so debian/tarantool-postgresql-plugin.install0000644000000000000000000000004312202156506016252 0ustar usr/lib/tarantool/plugins/libpg.so debian/libtarantoolsql1.install0000644000000000000000000000020112202131537014036 0ustar build-area/connector/c/tntsql/libtarantoolsql.so.1.1 /usr/lib/ build-area/connector/c/tntsql/libtarantoolsql.so.1 /usr/lib/ debian/tarantool_instance.pod0000644000000000000000000000145012202131537013555 0ustar =head1 NAME tarantool_instance - utility to start/stop tarantool instances =head1 SINOPSYS tarantool_instance NAME start tarantool_instance NAME stop =head1 DESCRIPTION The utility seeks instance in B directory. It seeks I<< /etc/tarantool/instances.enabled/B.cfg >>, but You can use filepath instead B. The utility extends tarantool's configs by the following variables: =over =item file_descriptors = COUNT You can set sockets limit for the instance. =back The utility copies instance's config to directory B, exclude additional variables, then starts or stops instance. In the first starting the utilitie creates I<< /var/lib/tarantool/snapshot/B >> directory and empty snapshot inside the directory. debian/watch0000644000000000000000000000012612202131537010212 0ustar version=3 https://github.com/tarantool/tarantool/tags \ .*/tarball/(\d+(?:\.\d+)+) debian/etc/0000755000000000000000000000000012202131537007735 5ustar debian/etc/example.cfg0000644000000000000000000000300312202131537012045 0ustar # # Limit of memory used to store tuples to 100MB # (0.1 GB) # This effectively limits the memory, used by # Tarantool. However, index and connection memory # is stored outside the slab allocator, hence # the effective memory usage can be higher (sometimes # twice as high). # slab_alloc_arena = 0.1 # # Read only and read-write port. primary_port = 33013 # Read-only port. secondary_port = 33014 # ************* Debian option *********************** # count of file descriptors # opt file_descriptors = 8192 # *************************************************** # ************* Debian option *********************** # Count of snapshots to save (default = 10). COUNT=0 # disables removing # opt save_snapshots = 10 # *************************************************** # ************* Debian option *********************** # Snapshot creating period (hours), (default = 24) # opt snapshot_period = 12 # *************************************************** # # The port for administrative commands. # admin_port = 33015 # # directory that contains lua procedures # (the first script must have name 'init.lua') # script_dir = /usr/share/tarantool/lua/ # # Each write ahead log contains this many rows. # When the limit is reached, Tarantool closes # the WAL and starts a new one. rows_per_wal = 50000 # Define a simple space with 1 HASH-based # primary key. space[0].enabled = 1 space[0].index[0].type = "HASH" space[0].index[0].unique = 1 space[0].index[0].key_field[0].fieldno = 0 space[0].index[0].key_field[0].type = "NUM" debian/README.Debian0000644000000000000000000000072712202131537011231 0ustar Debian package provides some additional options in config-file: * opt file_descriptors = INTVALUE Init script will do 'ulimit -f INTVALUE' command before starting tarantool. * opt save_snapshots = COUNT Count of snapshots to save (default = 10). COUNT=0 disables removing old snapshots. * opt snapshot_period = HOURS Period between two snapshot (default 24). There are script tarantool_snapshot_rotate (1) that is started every hour using cron.hourly. debian/libtarantoolrpl1.install0000644000000000000000000000020112202131537014034 0ustar build-area/connector/c/tntrpl/libtarantoolrpl.so.1.1 /usr/lib/ build-area/connector/c/tntrpl/libtarantoolrpl.so.1 /usr/lib/ debian/tarantool.dirs0000644000000000000000000000003112202131537012042 0ustar /usr/share/tarantool/lua debian/tarantool-common.install0000644000000000000000000000032312202131537014041 0ustar debian/etc/example.cfg /etc/tarantool/instances.available/ debian/scripts/tarantool_instance /usr/sbin/ debian/scripts/tarantool_snapshot_rotate /usr/sbin/ debian/scripts/tarantool_logrotate /usr/lib/tarantool/ debian/tarantool-client.manpages0000644000000000000000000000003712202131537014156 0ustar build-area/doc/man/tarantool.1