debian/0000755000000000000000000000000012177050706007173 5ustar debian/control0000644000000000000000000000675611374020537010611 0ustar Source: tokyotyrant Priority: extra Maintainer: Örjan Persson Uploaders: Andreas Schuldei Build-Depends: debhelper (>= 7.0.50), automake, autotools-dev, gawk, pkg-config, libtokyocabinet-dev (>> 1.4), liblua5.1-0-dev, lua5.1 Standards-Version: 3.8.4 Section: misc Homepage: http://1978th.net/tokyotyrant/ Package: tokyotyrant Architecture: any Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, libtokyotyrant3 (= ${binary:Version}), lsb-base (>= 3.0-6) Recommends: tokyotyrant-utils Description: Tokyo Tyrant: network interface to Tokyo Cabinet Tokyo Tyrant is a network interface to the DBM Tokyo Cabinet. You might bother in the case where multiple processes share the same database or where remote processes access the database. Thus, Tokyo Tyrant is provided for concurrent and remote connections to Tokyo Cabinet. . This is the Tokyo Tyrant server package. Package: tokyotyrant-dbg Architecture: any Section: debug Depends: ${misc:Depends}, tokyotyrant (= ${binary:Version}) Description: Tokyo Tyrant debugging symbols Tokyo Tyrant is a network interface to the DBM Tokyo Cabinet. You might bother in the case where multiple processes share the same database or where remote processes access the database. Thus, Tokyo Tyrant is provided for concurrent and remote connections to Tokyo Cabinet. . This is the debugging symbols for Tokyo Tyrant. Package: libtokyotyrant3 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Tokyo Tyrant runtime libraries Tokyo Tyrant is a network interface to the DBM Tokyo Cabinet. You might bother in the case where multiple processes share the same database or where remote processes access the database. Thus, Tokyo Tyrant is provided for concurrent and remote connections to Tokyo Cabinet. . This is the runtime package for programs that use the Tokyo Tyrant library. Package: libtokyotyrant-dev Section: libdevel Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libtokyotyrant3 (= ${binary:Version}), libtokyocabinet-dev Description: Tokyo Tyrant development files Tokyo Tyrant is a network interface to the DBM Tokyo Cabinet. You might bother in the case where multiple processes share the same database or where remote processes access the database. Thus, Tokyo Tyrant is provided for concurrent and remote connections to Tokyo Cabinet. . This is the development package for Tokyo Tyrant. It contains headers and libraries. Package: tokyotyrant-doc Section: doc Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends} Priority: optional Description: Tokyo Tyrant documentation Tokyo Tyrant is a network interface to the DBM Tokyo Cabinet. You might bother in the case where multiple processes share the same database or where remote processes access the database. Thus, Tokyo Tyrant is provided for concurrent and remote connections to Tokyo Cabinet. . This is the documentation for Tokyo Tyrant. Package: tokyotyrant-utils Architecture: any Section: utils Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends}, libtokyotyrant3 (= ${binary:Version}) Description: Tokyo Tyrant utilities Tokyo Tyrant is a network interface to the DBM Tokyo Cabinet. You might bother in the case where multiple processes share the same database or where remote processes access the database. Thus, Tokyo Tyrant is provided for concurrent and remote connections to Tokyo Cabinet. . This is the Tokyo Tyrant utility package. It contains tcrmgr and ttulmgr among others. debian/libtokyotyrant-dev.examples0000644000000000000000000000005211374020537014577 0ustar example/Makefile example/*.pl example/*.c debian/tokyotyrant.dirs0000644000000000000000000000010511374020537012456 0ustar var/lib/tokyotyrant/data var/lib/tokyotyrant/log var/log/tokyotyrant debian/tokyotyrant.logrotate0000644000000000000000000000056611374020537013530 0ustar /var/log/tokyotyrant/*.log { weekly rotate 10 copytruncate delaycompress compress notifempty missingok sharedscripts postrotate for file in $@; do daemon=`/usr/bin/basename "$file" | sed 's/\.log\(\.[0-9]*\)\?$//g'` invoke-rc.d --query --quiet $daemon reload || true [ "$?" -ne 100 ] && invoke-rc.d $daemon reload > /dev/null || true done endscript } debian/libtokyotyrant3.install0000644000000000000000000000004711374020537013742 0ustar debian/tmp/usr/lib/libtokyotyrant.so.* debian/compat0000644000000000000000000000000211374020537010366 0ustar 5 debian/tokyotyrant-doc.install0000644000000000000000000000013511374020537013731 0ustar doc/*.html usr/share/doc/tokyotyrant-doc/html/ doc/*.css usr/share/doc/tokyotyrant-doc/html/ debian/tokyotyrant.postrm0000644000000000000000000000030411374020537013042 0ustar #!/bin/sh -e case "$1" in purge) set +e rm -rf /var/log/tokyotyrant rm -rf /var/run/tokyotyrant rm -rf /var/lib/tokyotyrant userdel tokyotyrant set -e ;; esac #DEBHELPER# exit 0 debian/tokyotyrant-doc.docs0000644000000000000000000000012311374020537013210 0ustar usr/share/doc/tokyotyrant-doc/html/*.html usr/share/doc/tokyotyrant-doc/html/*.css debian/tokyotyrant-doc.doc-base0000644000000000000000000000050511374020537013741 0ustar Document: tokyotyrant Title: Tokyo Tyrant documentation Author: Mikio Hirabayashi Abstract: This manual describes what Tokyo Tyrant is, how to configure it and the API offered by it. Section: Programming/C Format: HTML Index: /usr/share/doc/tokyotyrant-doc/html/index.html Files: /usr/share/doc/tokyotyrant-doc/html/*.html debian/tokyotyrant.examples0000644000000000000000000000000411374020537013331 0ustar ext debian/watch0000644000000000000000000000011311374020537010214 0ustar version=3 http://1978th.net/tokyotyrant/ \ tokyotyrant-([\d\.]+)\.tar\.gz debian/patches/0000755000000000000000000000000012177050616010622 5ustar debian/patches/005-change-default-port0000644000000000000000000002022311374020537014674 0ustar Description: Use socket by default Tyrant does not have authorization. Upstream opens up the daemon on all interfaces and port 1978. Unix sockets are more secure. . This updates the utilities to more folllow these changes. Author: Örjan Persson Last-Update: 2010-02-14 Index: tokyotyrant/ttutil.h =================================================================== --- tokyotyrant.orig/ttutil.h 2010-02-14 22:03:04.000000000 +0100 +++ tokyotyrant/ttutil.h 2010-02-14 22:05:52.000000000 +0100 @@ -266,7 +266,7 @@ *************************************************************************************************/ -#define TTDEFPORT 1978 /* default port of the server */ +#define TTDEFPORT 0 /* default port of the server */ #define TTMAGICNUM 0xc8 /* magic number of each command */ #define TTCMDPUT 0x10 /* ID of put command */ #define TTCMDPUTKEEP 0x11 /* ID of putkeep command */ @@ -297,6 +297,10 @@ #define TTTIMERMAX 8 /* maximum number of timers */ +/* Debian addons */ +#define _TTDEFSOCK "/var/run/tokyotyrant/tokyotyrant.sock" +#define _TTDEFMPORT 1978 /* default port of master server */ + typedef struct _TTTIMER { /* type of structure for a timer */ pthread_t thid; /* thread ID */ bool alive; /* alive flag */ Index: tokyotyrant/ttutil.c =================================================================== --- tokyotyrant.orig/ttutil.c 2010-02-14 22:03:04.000000000 +0100 +++ tokyotyrant/ttutil.c 2010-02-14 22:05:52.000000000 +0100 @@ -1235,7 +1235,7 @@ tcstrtrim(host); if(*host == '\0'){ tcfree(host); - host = tcstrdup("127.0.0.1"); + host = tcstrdup(port ? "127.0.0.1" : _TTDEFSOCK); } return host; } Index: tokyotyrant/tcrmgr.c =================================================================== --- tokyotyrant.orig/tcrmgr.c 2010-02-14 22:03:04.000000000 +0100 +++ tokyotyrant/tcrmgr.c 2010-02-14 22:05:52.000000000 +0100 @@ -848,7 +848,7 @@ char *host = NULL; char *mhost = NULL; int port = TTDEFPORT; - int mport = TTDEFPORT; + int mport = _TTDEFMPORT; uint64_t ts = 0; int opts = 0; for(int i = 2; i < argc; i++){ Index: tokyotyrant/ttserver.c =================================================================== --- tokyotyrant.orig/ttserver.c 2010-02-14 22:03:04.000000000 +0100 +++ tokyotyrant/ttserver.c 2010-02-14 22:05:52.000000000 +0100 @@ -224,7 +224,7 @@ uint64_t ulim = DEFULIMSIZ; bool uas = false; uint32_t sid = 0; - int mport = TTDEFPORT; + int mport = _TTDEFMPORT; int ropts = 0; int mulnum = 0; uint64_t mask = 0; @@ -236,6 +236,9 @@ } else if(!strcmp(argv[i], "-port")){ if(++i >= argc) usage(); port = tcatoi(argv[i]); + if(host == NULL) { + host = port ? "127.0.0.1" : _TTDEFSOCK; + } } else if(!strcmp(argv[i], "-thnum")){ if(++i >= argc) usage(); thnum = tcatoi(argv[i]); Index: tokyotyrant/doc/spex.html =================================================================== --- tokyotyrant.orig/doc/spex.html 2010-02-14 22:05:54.000000000 +0100 +++ tokyotyrant/doc/spex.html 2010-02-14 22:10:12.000000000 +0100 @@ -128,8 +128,8 @@

Options feature the following.

    -
  • -host name : specify the host name or the address of the server. By default, every network address is bound.
  • -
  • -port num : specify the port number. By default, it is 1978.
  • +
  • -host name : specify the host name or the address of the server. By default, it is /var/run/tokyotyrant/tokyotyrant.sock if port is not specified, else every network address is bound.
  • +
  • -port num : specify the port number. By default, it is 0 (indicates usage of unix socket).
  • -thnum num : specify the number of worker threads. By default, it is 8.
  • -tout num : specify the timeout of each session in seconds. By default, no timeout is specified.
  • -dmn : work as a daemon process.
  • @@ -154,6 +154,8 @@
  • -unmask expr : specify the names of allowed commands.
+

The usage of /var/run/tokyotyrant/tokyotyrant.sock is a Debian specific change. The upstream default is to use port 1978 and all network interfaces.

+

To terminate the server normally, send SIGINT or SIGTERM to the process. It is okay to press Ctrl-C on the controlling terminal. To restart the server, send SIGHUP to the process. If the port number is not more than 0, UNIX domain socket is used and the path of the socket file is specified by the host parameter. This command returns 0 on success, another on failure.

The naming convention of the database is specified by the abstract API of Tokyo Cabinet. If the name is "*", the database will be an on-memory hash database. If it is "+", the database will be an on-memory tree database. If its suffix is ".tch", the database will be a hash database. If its suffix is ".tcb", the database will be a B+ tree database. If its suffix is ".tcf", the database will be a fixed-length database. If its suffix is ".tct", the database will be a table database. Otherwise, this function fails. Tuning parameters can trail the name, separated by "#". Each parameter is composed of the name and the value, separated by "=". On-memory hash database supports "bnum", "capnum", and "capsiz". On-memory tree database supports "capnum" and "capsiz". Hash database supports "mode", "bnum", "apow", "fpow", "opts", "rcnum", "xmsiz", and "dfunit". B+ tree database supports "mode", "lmemb", "nmemb", "bnum", "apow", "fpow", "opts", "lcnum", "ncnum", "xmsiz", and "dfunit". Fixed-length database supports "mode", "width", and "limsiz". Table database supports "mode", "bnum", "apow", "fpow", "opts", "rcnum", "lcnum", "ncnum", "xmsiz", "dfunit", and "idx". The tuning parameter "capnum" specifies the capacity number of records. "capsiz" specifies the capacity size of using memory. Records spilled the capacity are removed by the storing order. "mode" can contain "w" of writer, "r" of reader, "c" of creating, "t" of truncating, "e" of no locking, and "f" of non-blocking lock. The default mode is relevant to "wc". "opts" can contains "l" of large option, "d" of Deflate option, "b" of BZIP2 option, and "t" of TCBS option. "idx" specifies the column name of an index and its type separated by ":". For example, "casket.tch#bnum=1000000#opts=ld" means that the name of the database file is "casket.tch", and the bucket number is 1000000, and the options are large and Deflate.

@@ -1418,7 +1420,7 @@

Protocol

-

The protocol between the server and clients stands on TCP/IP. By default, the service port is bound to every address of the local host and the port number is 1978. Each session of the server and a client is composed of a request and a response. The server speaks three protocols at the same port.

+

The protocol between the server and clients stands on TCP/IP. By default, the service port is 0 and host is /var/run/tokyotyrant/tokyotyrant.sock (upstream default is 1978). Each session of the server and a client is composed of a request and a response. The server speaks three protocols at the same port.

Original Binary Protocol

@@ -1782,7 +1784,7 @@

Basic Use

-

After installation of Tokyo Tyrant, you can start the server immediately by executing the command `ttserver' in the terminal. By default, the server listens to the port 1978 and serves as the accessor of an on-memory hash database, which is useful to store cache data.

+

After installation of Tokyo Tyrant, you can start the server immediately by executing the command `ttserver' in the terminal. By default, the server uses a unix socket which is located in /var/run/tokyotyrant/tokyotyrant.sock and uses an on-memory hash database, which is useful to store cache data.

[terminal-1]$ ttserver
 
debian/patches/006-no-add-needed0000644000000000000000000000350211632670207013433 0ustar Description: Add all needed libs to linker with --no-add-needed you need to specify all libraries needed to link the binaries, as the DT_NEEDED entries aren't copied anymore. Author: Andreas Moog Last-Update: 2011-07-09 --- tokyotyrant-1.1.40.orig/Makefile.in +++ tokyotyrant-1.1.40/Makefile.in @@ -57,7 +57,7 @@ CPPFLAGS = @MYCPPFLAGS@ \ CFLAGS = @MYCFLAGS@ LDFLAGS = @MYLDFLAGS@ CMDLDFLAGS = @MYCMDLDFLAGS@ -LIBS = @LIBS@ +LIBS = @LIBS@ -llua5.1 -ltokyocabinet RUNENV = @MYLDLIBPATHENV@=. POSTCMD = @MYPOSTCMD@ @@ -342,27 +342,27 @@ ttskelnull.bundle : ttskelnull.o ttserver : ttserver.o scrext.o $(LIBRARYFILES) - $(LDENV) $(CC) $(CFLAGS) -o $@ $< scrext.o $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant + $(LDENV) $(CC) $(CFLAGS) -o $@ $< scrext.o $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant $(LIBS) ttulmgr : ttulmgr.o $(LIBRARYFILES) - $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant + $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant $(LIBS) ttultest : ttultest.o $(LIBRARYFILES) - $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant + $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant $(LIBS) tcrtest : tcrtest.o $(LIBRARYFILES) - $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant + $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant $(LIBS) tcrmttest : tcrmttest.o $(LIBRARYFILES) - $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant + $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant $(LIBS) tcrmgr : tcrmgr.o $(LIBRARYFILES) - $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant + $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant $(LIBS) myconf.o scrext.o : myconf.h debian/patches/004-kfreebsd-fix0000644000000000000000000000116611374020537013420 0ustar Description: Follow kfreebsd guidelines for porting __FreeBSD__ would not work for kfreebsd. Also check for __FreeBSD_kernel__ Author: Örjan Persson Last-Update: 2010-02-07 Index: tokyotyrant/myconf.h =================================================================== --- tokyotyrant.orig/myconf.h 2010-02-07 20:00:02.000000000 +0100 +++ tokyotyrant/myconf.h 2010-02-07 20:01:54.000000000 +0100 @@ -29,7 +29,7 @@ #define _SYS_LINUX_ #define TTSYSNAME "Linux" -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #define _SYS_FREEBSD_ #define TTSYSNAME "FreeBSD" debian/patches/003-run-service-make-check0000644000000000000000000001736311632673471015314 0ustar Description: Start up daemon for test to run Upstream runs a couple of test on make check. This command is both dangerous (it would run vanish on localhost) and will not on a build server. . We start up the daemon automatically and make sure it has been launched. AS soon as we exit the script, the daemon will be brought down again. Author: Örjan Persson Last-Update: 2010-02-14 Index: tokyotyrant/Makefile.in =================================================================== --- tokyotyrant.orig/Makefile.in 2010-02-15 01:03:24.000000000 +0100 +++ tokyotyrant/Makefile.in 2010-02-15 01:40:41.000000000 +0100 @@ -61,6 +61,11 @@ RUNENV = @MYLDLIBPATHENV@=. POSTCMD = @MYPOSTCMD@ +# Test configuration +test_start_stop = 1 +test_host = /tmp/ttserver-test.sock +test_port = 0 +test_pid = /tmp/ttserver-test.pid #================================================================ @@ -168,48 +173,62 @@ check : - $(RUNENV) $(RUNCMD) ./tcrmgr version - $(RUNENV) $(RUNCMD) ./tcrtest write -cnum 5 -tout 5 -rnd 127.0.0.1 50000 - $(RUNENV) $(RUNCMD) ./tcrtest write -cnum 5 -tout 5 -nr -rnd 127.0.0.1 50000 - $(RUNENV) $(RUNCMD) ./tcrtest write -cnum 5 -tout 5 127.0.0.1 50000 - $(RUNENV) $(RUNCMD) ./tcrtest read -cnum 5 -tout 5 127.0.0.1 - $(RUNENV) $(RUNCMD) ./tcrtest read -cnum 5 -tout 5 -mul 5 127.0.0.1 - $(RUNENV) $(RUNCMD) ./tcrtest remove -cnum 5 -tout 5 127.0.0.1 - $(RUNENV) $(RUNCMD) ./tcrtest rcat -cnum 5 -tout 5 127.0.0.1 50000 - $(RUNENV) $(RUNCMD) ./tcrtest rcat -cnum 5 -tout 5 -shl 50 127.0.0.1 50000 - $(RUNENV) $(RUNCMD) ./tcrmgr vanish 127.0.0.1 - $(RUNENV) $(RUNCMD) ./tcrtest rcat -cnum 5 -tout 5 -dad 127.0.0.1 50000 - $(RUNENV) $(RUNCMD) ./tcrtest rcat -cnum 5 -tout 5 -ext putcat -xlr 127.0.0.1 50000 - $(RUNENV) $(RUNCMD) ./tcrtest misc -cnum 5 -tout 5 127.0.0.1 5000 - $(RUNENV) $(RUNCMD) ./tcrtest wicked -cnum 5 -tout 5 127.0.0.1 5000 - $(RUNENV) $(RUNCMD) ./tcrmgr inform 127.0.0.1 - $(RUNENV) $(RUNCMD) ./tcrmgr vanish 127.0.0.1 - $(RUNENV) $(RUNCMD) ./tcrmttest write -tnum 5 127.0.0.1 5000 - $(RUNENV) $(RUNCMD) ./tcrmttest read -tnum 5 127.0.0.1 - $(RUNENV) $(RUNCMD) ./tcrmttest remove -tnum 5 127.0.0.1 - $(RUNENV) $(RUNCMD) ./tcrmttest write -tnum 5 -ext putcat -rnd 127.0.0.1 5000 - $(RUNENV) $(RUNCMD) ./tcrmttest typical -tnum 5 127.0.0.1 5000 - $(RUNENV) $(RUNCMD) ./tcrmgr vanish 127.0.0.1 - $(RUNENV) $(RUNCMD) ./tcrmgr put 127.0.0.1 one first - $(RUNENV) $(RUNCMD) ./tcrmgr put 127.0.0.1 two second - $(RUNENV) $(RUNCMD) ./tcrmgr put -dk 127.0.0.1 three third - $(RUNENV) $(RUNCMD) ./tcrmgr put -dc 127.0.0.1 three third - $(RUNENV) $(RUNCMD) ./tcrmgr put -dc 127.0.0.1 three third - $(RUNENV) $(RUNCMD) ./tcrmgr put -dc 127.0.0.1 three third - $(RUNENV) $(RUNCMD) ./tcrmgr put 127.0.0.1 four fourth - $(RUNENV) $(RUNCMD) ./tcrmgr put -dk 127.0.0.1 five fifth - $(RUNENV) $(RUNCMD) ./tcrmgr out 127.0.0.1 one - $(RUNENV) $(RUNCMD) ./tcrmgr out 127.0.0.1 two - $(RUNENV) $(RUNCMD) ./tcrmgr get 127.0.0.1 three > check.out - $(RUNENV) $(RUNCMD) ./tcrmgr get 127.0.0.1 four > check.out - $(RUNENV) $(RUNCMD) ./tcrmgr get 127.0.0.1 five > check.out - $(RUNENV) $(RUNCMD) ./tcrmgr mget 127.0.0.1 one two three four five > check.out - $(RUNENV) $(RUNCMD) ./tcrmgr misc 127.0.0.1 putlist six sixth seven seventh - $(RUNENV) $(RUNCMD) ./tcrmgr misc 127.0.0.1 outlist six - $(RUNENV) $(RUNCMD) ./tcrmgr misc 127.0.0.1 getlist three four five six > check.out - $(RUNENV) $(RUNCMD) ./tcrmgr list -pv 127.0.0.1 > check.out - $(RUNENV) $(RUNCMD) ./tcrmgr list -pv -fm f 127.0.0.1 > check.out - $(RUNENV) $(RUNCMD) ./tcrmgr http -ih http://127.0.0.1:1978/five > check.out + if [ $(test_start_stop) -eq 1 ]; then \ + $(RUNENV); \ + export LD_LIBRARY_PATH; \ + /sbin/start-stop-daemon -v -S -p $(test_pid) -d `pwd` --exec `pwd`/ttserver \ + -- -host $(test_host) -port $(test_port) \ + -ld -dmn -pid $(test_pid) || exit 1; \ + \ + trap "/sbin/start-stop-daemon -v -K -R TERM/30/KILL/5 -p $(test_pid) && rm -f $(test_pid)" 0; \ + fi; \ + \ + for i in `seq 5`; do \ + $(RUNENV) ./tcrmgr inform -port $(test_port) $(test_host) > /dev/null && break; \ + sleep $$i; \ + done; \ + \ + $(RUNENV) $(RUNCMD) ./tcrmgr version; \ + $(RUNENV) $(RUNCMD) ./tcrtest write -port $(test_port) -cnum 5 -tout 5 -rnd $(test_host) 50000; \ + $(RUNENV) $(RUNCMD) ./tcrtest write -port $(test_port) -cnum 5 -tout 5 -nr -rnd $(test_host) 50000; \ + $(RUNENV) $(RUNCMD) ./tcrtest write -port $(test_port) -cnum 5 -tout 5 $(test_host) 50000; \ + $(RUNENV) $(RUNCMD) ./tcrtest read -port $(test_port) -cnum 5 -tout 5 $(test_host); \ + $(RUNENV) $(RUNCMD) ./tcrtest read -port $(test_port) -cnum 5 -tout 5 -mul 5 $(test_host); \ + $(RUNENV) $(RUNCMD) ./tcrtest remove -port $(test_port) -cnum 5 -tout 5 $(test_host); \ + $(RUNENV) $(RUNCMD) ./tcrtest rcat -port $(test_port) -cnum 5 -tout 5 $(test_host) 50000; \ + $(RUNENV) $(RUNCMD) ./tcrtest rcat -port $(test_port) -cnum 5 -tout 5 -shl 50 $(test_host) 50000; \ + $(RUNENV) $(RUNCMD) ./tcrmgr vanish -port $(test_port) $(test_host); \ + $(RUNENV) $(RUNCMD) ./tcrtest rcat -port $(test_port) -cnum 5 -tout 5 -dad $(test_host) 50000; \ + $(RUNENV) $(RUNCMD) ./tcrtest rcat -port $(test_port) -cnum 5 -tout 5 -ext putcat -xlr $(test_host) 50000; \ + $(RUNENV) $(RUNCMD) ./tcrtest misc -port $(test_port) -cnum 5 -tout 5 $(test_host) 5000; \ + $(RUNENV) $(RUNCMD) ./tcrtest wicked -port $(test_port) -cnum 5 -tout 5 $(test_host) 5000; \ + $(RUNENV) $(RUNCMD) ./tcrmgr inform -port $(test_port) $(test_host); \ + $(RUNENV) $(RUNCMD) ./tcrmgr vanish -port $(test_port) $(test_host); \ + $(RUNENV) $(RUNCMD) ./tcrmttest write -port $(test_port) -tnum 5 $(test_host) 5000; \ + $(RUNENV) $(RUNCMD) ./tcrmttest read -port $(test_port) -tnum 5 $(test_host); \ + $(RUNENV) $(RUNCMD) ./tcrmttest remove -port $(test_port) -tnum 5 $(test_host); \ + $(RUNENV) $(RUNCMD) ./tcrmttest write -port $(test_port) -tnum 5 -ext putcat -rnd $(test_host) 5000; \ + $(RUNENV) $(RUNCMD) ./tcrmttest typical -port $(test_port) -tnum 5 $(test_host) 5000; \ + $(RUNENV) $(RUNCMD) ./tcrmgr vanish -port $(test_port) $(test_host); \ + $(RUNENV) $(RUNCMD) ./tcrmgr put -port $(test_port) $(test_host) one first; \ + $(RUNENV) $(RUNCMD) ./tcrmgr put -port $(test_port) $(test_host) two second; \ + $(RUNENV) $(RUNCMD) ./tcrmgr put -port $(test_port) -dk $(test_host) three third; \ + $(RUNENV) $(RUNCMD) ./tcrmgr put -port $(test_port) -dc $(test_host) three third; \ + $(RUNENV) $(RUNCMD) ./tcrmgr put -port $(test_port) -dc $(test_host) three third; \ + $(RUNENV) $(RUNCMD) ./tcrmgr put -port $(test_port) -dc $(test_host) three third; \ + $(RUNENV) $(RUNCMD) ./tcrmgr put -port $(test_port) $(test_host) four fourth; \ + $(RUNENV) $(RUNCMD) ./tcrmgr put -port $(test_port) -dk $(test_host) five fifth; \ + $(RUNENV) $(RUNCMD) ./tcrmgr out -port $(test_port) $(test_host) one; \ + $(RUNENV) $(RUNCMD) ./tcrmgr out -port $(test_port) $(test_host) two; \ + $(RUNENV) $(RUNCMD) ./tcrmgr get -port $(test_port) $(test_host) three > check.out; \ + $(RUNENV) $(RUNCMD) ./tcrmgr get -port $(test_port) $(test_host) four > check.out; \ + $(RUNENV) $(RUNCMD) ./tcrmgr get -port $(test_port) $(test_host) five > check.out; \ + $(RUNENV) $(RUNCMD) ./tcrmgr mget -port $(test_port) $(test_host) one two three four five > check.out; \ + $(RUNENV) $(RUNCMD) ./tcrmgr misc -port $(test_port) $(test_host) putlist six sixth seven seventh; \ + $(RUNENV) $(RUNCMD) ./tcrmgr misc -port $(test_port) $(test_host) outlist six; \ + $(RUNENV) $(RUNCMD) ./tcrmgr misc -port $(test_port) $(test_host) getlist three four five six > check.out; \ + $(RUNENV) $(RUNCMD) ./tcrmgr list -port $(test_port) -pv $(test_host) > check.out; \ + $(RUNENV) $(RUNCMD) ./tcrmgr list -port $(test_port) -pv -fm f $(test_host) > check.out; \ rm -rf ulog ; mkdir -p ulog $(RUNENV) $(RUNCMD) ./ttultest write -lim 10000 ulog 5000 $(RUNENV) $(RUNCMD) ./ttultest write -lim 10000 -as ulog 5000 debian/patches/000-pkg-config-move-private-libs-to-Libs.private0000644000000000000000000000125011374020537021404 0ustar Description: Only expose tyrant as public library. Used libraries should not be made public, moved them to private. Author: Örjan Persson Last-Update: 2010-01-11 Index: tokyotyrant.git/tokyotyrant.pc.in =================================================================== --- tokyotyrant.git.orig/tokyotyrant.pc.in 2010-01-09 17:46:53.000000000 +0100 +++ tokyotyrant.git/tokyotyrant.pc.in 2010-01-09 17:47:11.000000000 +0100 @@ -10,5 +10,6 @@ Name: Tokyo Tyrant Description: network interface of Tokyo Cabinet Version: @PACKAGE_VERSION@ -Libs: -L${libdir} -ltokyotyrant @LIBS@ +Libs: -L${libdir} -ltokyotyrant +Libs.private: @LIBS@ Cflags: -I${includedir} debian/patches/002-remove-unused-libraries0000644000000000000000000000147711374020537015622 0ustar Description: Remove unused libraries configure file includes bz2, resolv, z and more libraries which are never used. Some of them seems to be used by cabinet, but we do not need them in tyrant. Author: Örjan Persson Last-Update: 2010-02-07 Index: tokyotyrant.git/configure.in =================================================================== --- tokyotyrant.git.orig/configure.in 2010-01-09 18:12:43.000000000 +0100 +++ tokyotyrant.git/configure.in 2010-01-09 18:12:43.000000000 +0100 @@ -213,12 +213,7 @@ AC_CHECK_LIB(m, main) AC_CHECK_LIB(pthread, main) AC_CHECK_LIB(rt, main) -AC_CHECK_LIB(dl, main) -AC_CHECK_LIB(nsl, main) AC_CHECK_LIB(socket, main) -AC_CHECK_LIB(resolv, main) -AC_CHECK_LIB(z, main) -AC_CHECK_LIB(bz2, main) AC_CHECK_LIB(tokyocabinet, main) if test "$enable_lua" = "yes" then debian/patches/007-libdl-underlinkage0000644000000000000000000000115412177050616014606 0ustar Description: Link with libdl Author: Daniel T Chen Bug-Debian: http://bugs.debian.org/713675 Last-Update: 2013-08-03 Index: tokyotyrant-1.1.40/Makefile.in =================================================================== --- tokyotyrant-1.1.40.orig/Makefile.in 2013-04-15 01:56:02.000000000 -0400 +++ tokyotyrant-1.1.40/Makefile.in 2013-04-15 01:59:49.288949075 -0400 @@ -57,7 +57,7 @@ CFLAGS = @MYCFLAGS@ LDFLAGS = @MYLDFLAGS@ CMDLDFLAGS = @MYCMDLDFLAGS@ -LIBS = @LIBS@ -llua5.1 -ltokyocabinet +LIBS = @LIBS@ -llua5.1 -ltokyocabinet -ldl RUNENV = @MYLDLIBPATHENV@=. POSTCMD = @MYPOSTCMD@ debian/patches/series0000644000000000000000000000031412177050425012033 0ustar 000-pkg-config-move-private-libs-to-Libs.private 001-rpath-defines 002-remove-unused-libraries 003-run-service-make-check 004-kfreebsd-fix 005-change-default-port 006-no-add-needed 007-libdl-underlinkage debian/patches/001-rpath-defines0000644000000000000000000000714011374020537013573 0ustar Description: Do not include $HOME and similar in makefile Do not include $HOME in path, remove it from RUNENV and remove the useless linking against other unused libraries. Author: Örjan Persson Last-Update: 2010-02-07 Index: tokyotyrant/configure.in =================================================================== --- tokyotyrant.orig/configure.in 2010-02-07 19:21:20.000000000 +0100 +++ tokyotyrant/configure.in 2010-02-07 19:21:58.000000000 +0100 @@ -29,21 +29,21 @@ # Building flags MYCFLAGS="-std=c99 -Wall -fPIC -fsigned-char -O2" -MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -I$HOME/include -I/usr/local/include" +MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -I/usr/local/include" MYCPPFLAGS="$MYCPPFLAGS -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__" -MYLDFLAGS="-L. -L\$(LIBDIR) -L$HOME/lib -L/usr/local/lib" +MYLDFLAGS="-L. -L\$(LIBDIR) -L/usr/local/lib" MYCMDLDFLAGS="" MYRUNPATH="\$(LIBDIR)" MYLDLIBPATHENV="LD_LIBRARY_PATH" MYPOSTCMD="true" # Building paths -PATH="$PATH:$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" -PATH="$PATH:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/xpg4/bin:/usr/xpg6/bin:/usr/ucb" -CPATH="$HOME/include:/usr/local/include:$CPATH" -LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LIBRARY_PATH" -LD_LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH" -PKG_CONFIG_PATH="$HOME/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" +PATH="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" +PATH="$PATH:/usr/ccs/bin:/usr/xpg4/bin:/usr/xpg6/bin:/usr/ucb" +CPATH="/usr/local/include:$CPATH" +LIBRARY_PATH="/usr/local/lib:$LIBRARY_PATH" +LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" +PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" export PATH CPATH LIBRARY_PATH LD_LIBRARY_PATH PKG_CONFIG_PATH if type pkg-config > /dev/null 2>&1 then Index: tokyotyrant/Makefile.in =================================================================== --- tokyotyrant.orig/Makefile.in 2010-02-07 19:21:20.000000000 +0100 +++ tokyotyrant/Makefile.in 2010-02-07 19:21:58.000000000 +0100 @@ -58,8 +58,7 @@ LDFLAGS = @MYLDFLAGS@ CMDLDFLAGS = @MYCMDLDFLAGS@ LIBS = @LIBS@ -LDENV = LD_RUN_PATH=/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@:. -RUNENV = @MYLDLIBPATHENV@=.:/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@ +RUNENV = @MYLDLIBPATHENV@=. POSTCMD = @MYPOSTCMD@ @@ -324,27 +323,27 @@ ttserver : ttserver.o scrext.o $(LIBRARYFILES) - $(LDENV) $(CC) $(CFLAGS) -o $@ $< scrext.o $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant $(LIBS) + $(LDENV) $(CC) $(CFLAGS) -o $@ $< scrext.o $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant ttulmgr : ttulmgr.o $(LIBRARYFILES) - $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant $(LIBS) + $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant ttultest : ttultest.o $(LIBRARYFILES) - $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant $(LIBS) + $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant tcrtest : tcrtest.o $(LIBRARYFILES) - $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant $(LIBS) + $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant tcrmttest : tcrmttest.o $(LIBRARYFILES) - $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant $(LIBS) + $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant tcrmgr : tcrmgr.o $(LIBRARYFILES) - $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant $(LIBS) + $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyotyrant myconf.o scrext.o : myconf.h debian/tokyotyrant-doc.dirs0000644000000000000000000000004311374020537013222 0ustar usr/share/doc/tokyotyrant-doc/html debian/copyright0000644000000000000000000000243511374020537011127 0ustar This package was debianized by Örjan Persson on Wed, 06 Jan 2010 18:42:42 +0100. It was downloaded from http://1978th.net/tokyotyrant/ Upstream Author: Mikio Hirabayashi Copyright: Copyright (C) 2007-2010 Mikio Hirabayashi License: This package 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 package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. The Debian packaging is Copyright (C) 2010 Örjan Persson and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. debian/tokyotyrant.postinst0000644000000000000000000000145211374020537013406 0ustar #!/bin/sh -e NAME=tokyotyrant USER=$NAME DATADIR=/var/lib/$NAME LOGDIR=/var/log/$NAME . /usr/share/debconf/confmodule case "$1" in configure) # creating user if it isn't created if ! getent passwd $USER >/dev/null; then adduser \ --quiet \ --system \ --disabled-login \ --group \ --home $DATADIR \ --no-create-home \ --gecos "Tokyo Tyrant" \ --shell /bin/false \ $USER fi # creating group if it isn't created if ! getent group $USER >/dev/null; then addgroup --quiet --system $USER usermod -g $USER $USER fi # setup permission for data and log directories chown -R $USER:$GROUP $DATADIR chown -R $USER:$GROUP $LOGDIR ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 0 ;; esac db_stop #DEBHELPER# exit 0 debian/tokyotyrant-utils.install0000644000000000000000000000016611374020537014330 0ustar debian/tmp/usr/bin/tc* debian/tmp/usr/bin/ttul* debian/tmp/usr/share/man/man1/tc* debian/tmp/usr/share/man/man1/ttul* debian/libtokyotyrant-dev.install0000644000000000000000000000026311374020537014433 0ustar debian/tmp/usr/include/*.h debian/tmp/usr/lib/libtokyotyrant.a debian/tmp/usr/lib/libtokyotyrant.so debian/tmp/usr/lib/pkgconfig/tokyotyrant.pc debian/tmp/usr/share/man/man3/t*.3 debian/tokyotyrant.init0000644000000000000000000001144111374020537012465 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: tokyotyrant # Required-Start: $local_fs $remote_fs $syslog $named $network $time # Required-Stop: $local_fs $remote_fs $syslog $named $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: start and stop the Tokyo Tyrant server # Description: Tokyo Tyrant is a network interface to Tokyo Cabinet ### END INIT INFO # Author: Örjan Persson PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Tokyo Tyrant" NAME= DAEMON=/usr/sbin/ttserver DAEMON_ARGS= DAEMON_ARGS_EXTRA= DAEMON_NAME=ttserver DAEMON_USER="tokyotyrant" DAEMON_GROUP="tokyotyrant" DAEMON_UMASK=0022 SOCKET_UMASK=0007 # support for multiple instances is based on the symbolic link # try to resolve symbolic links from eg. /etc/rc*.d/ file="$0" for i in `seq 20`; do # stop as soon as we hit a non-symbolic link or a file in /etc/init.d if [ ! -L "$file" ] || [ `dirname "$file"` = "/etc/init.d" ]; then NAME="`basename $file`" break fi file=`readlink "$file"` done if [ -z "$NAME" ]; then echo "Error: failed to resolve instance name for $0" >&2 exit 4 fi LOGDIR="/var/log/tokyotyrant" RUNDIR="/var/run/tokyotyrant" PIDFILE="$RUNDIR/$NAME.pid" SCRIPTNAME="/etc/init.d/$NAME" DATADIR=/var/lib/tokyotyrant/data ULOGDIR=/var/lib/tokyotyrant/log # listening host/address and port SERVERHOST="$RUNDIR/$NAME.sock" SERVERPORT=0 # database name and options DBNAME=$NAME.tch#bnum=1000000 # replication configuration MASTERHOST= MASTERPORT= SERVERID= # exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # setup daemon arguments if not specified if [ -z "$DAEMON_ARGS" ]; then DAEMON_ARGS="-port $SERVERPORT -dmn -pid $PIDFILE -log $LOGDIR/$NAME.log" # specify listen address if set (defaults to all addresses) [ -n "$SERVERHOST" ] && DAEMON_ARGS="$DAEMON_ARGS -host $SERVERHOST" # setup replication if [ -n "$MASTERHOST" ] && [ -n "$MASTERPORT" ] && [ "$SERVERID" -ge 0 ]; then ulogdir="$ULOGDIR/$SERVERID" if [ ! -d "$ulogdir" ]; then mkdir "$ulogdir" chown $DAEMON_USER:$DAEMON_GROUP "$ulogdir" fi DAEMON_ARGS="$DAEMON_ARGS -sid $SERVERID -ulog $ulogdir -rts $ULOGDIR/$SERVERID.rts" DAEMON_ARGS="$DAEMON_ARGS -mhost $MASTERHOST -mport $MASTERPORT" fi DAEMON_ARGS="$DAEMON_ARGS $DATADIR/$DBNAME" fi # add extra daemon arguments [ -n "$DAEMON_ARGS_EXTRA" ] && DAEMON_ARGS="$DAEMON_ARGS_EXTRA $DAEMON_ARGS" . /lib/init/vars.sh . /lib/lsb/init-functions do_start() { # setup umask for directory creation prevmask=`umask` umask $DAEMON_UMASK trap "umask $prevmask" 0 # setup directory for pid file PIDDIR=`dirname "$PIDFILE"` if [ ! -d "$PIDDIR" ]; then mkdir "$PIDDIR" chown $DAEMON_USER:$DAEMON_GROUP "$PIDDIR" fi # setup directory for unix socket if [ "$SERVERPORT" -eq 0 ] && [ -n "$SERVERHOST" ]; then socketdir=`dirname "$SERVERHOST"` if [ ! -d "$socketdir" ]; then mkdir "$socketdir" chown $DAEMON_USER:$DAEMON_GROUP "$socketdir" fi fi start-stop-daemon --start --quiet --pidfile "$PIDFILE" \ --chuid $DAEMON_USER:$DAEMON_GROUP --umask $DAEMON_UMASK \ --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile "$PIDFILE" \ --chuid $DAEMON_USER:$DAEMON_GROUP --umask $DAEMON_UMASK \ --exec $DAEMON -- $DAEMON_ARGS \ || return 2 # socket permissions (should be current mode & ~mask) [ "$SERVERPORT" -eq 0 ] && chmod `expr 0777 - $SOCKET_UMASK` $SERVERHOST } do_stop() { start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile "$PIDFILE" \ --user $DAEMON_USER --name "$DAEMON_NAME" return "$?" } do_reload() { start-stop-daemon --stop --signal HUP --quiet --pidfile "$PIDFILE" \ --user $DAEMON_USER --name "$DAEMON_NAME" return "$?" } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $? ;; reload|force-reload) log_daemon_msg "Reloading $DESC" "$NAME" do_reload log_end_msg $? ;; restart) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # old process is still running *) log_end_msg 1 ;; # failed to start esac ;; *) # failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 exit 3 ;; esac : debian/tokyotyrant.default0000644000000000000000000000064211374020537013147 0ustar ## create socket (this is the debian default) #SERVERHOST="$RUNDIR/$NAME.sock" #SERVERPORT=0 ## listening host/address and port (this is the upstream default) #SERVERHOST= #SERVERPORT=1978 ## database name and options (see ttserver(1) for tuning options) #DBNAME=$NAME.tch#bnum=1000000 ## replication configuration #MASTERHOST= #MASTERPORT= #SERVERID= ## extra parameters to set for the daemon #DAEMON_ARGS_EXTRA= debian/source/0000755000000000000000000000000011374020537010470 5ustar debian/source/format0000644000000000000000000000001411374020753011676 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000063611632673777010276 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_configure: autoreconf -fvi dh_auto_configure -- \ --enable-lua \ --enable-devel override_dh_installchangelogs: dh_installchangelogs ChangeLog override_dh_installdocs: dh_installdocs THANKS override_dh_strip: dh_strip --dbg-package=tokyotyrant-dbg .PHONY: override_dh_auto_configure override_dh_installchangelogs override_dh_installdocs override_dh_strip debian/tokyotyrant.install0000644000000000000000000000011511374020537013164 0ustar debian/tmp/usr/bin/ttserver usr/sbin debian/tmp/usr/share/man/man?/ttserver* debian/changelog0000644000000000000000000000464412177050706011055 0ustar tokyotyrant (1.1.40-4.2) unstable; urgency=low * Non-maintainer upload. * debian/patches/007-libdl-underlinkage: Apply patch from Ubuntu to fix FTBFS due to underlinkage. (Closes: #713675) -- Sebastian Ramacher Sat, 03 Aug 2013 02:41:41 +0200 tokyotyrant (1.1.40-4.1) unstable; urgency=low * Non-maintainer upload. * Add patch to add all libraries needed to linker commandline. Patch by Andreas Moog. (LP: #756048) (Closes: #615787) * Fix FTBFS since start-stop-daemon resides under /sbin, and this path isn't included in the standard path when building as non-root. This needs to update the patch 003-run-service-make-check to add /sbin/ Patch by Moritz Muehlenhoff. (Closes: #626359) -- Ana Beatriz Guerrero Lopez Sat, 10 Sep 2011 16:45:01 +0200 tokyotyrant (1.1.40-4) unstable; urgency=low * Fixed bashism in init script (Closes: #581141). -- Örjan Persson Fri, 14 May 2010 10:11:02 +0200 tokyotyrant (1.1.40-3) unstable; urgency=low * Fixed a bug in the init script which on system reboot would start up using wrong socket, pid etc. Thanks to Nicolas Noirbent for the report (Closes: #576708). -- Örjan Persson Tue, 06 Apr 2010 20:26:49 +0200 tokyotyrant (1.1.40-2) unstable; urgency=low * Updated 003-run-service-make-check to wait until daemon is ready. * Sockets are now used as default in utilities. * Set umask in init script to restrict access to socket. -- Örjan Persson Sun, 14 Feb 2010 18:16:30 +0100 tokyotyrant (1.1.40-1) unstable; urgency=low * New upstream version (Closes: #566865). * Enabled tests and added 003-run-service-make-check. * Added 004-kfreebsd-fix to make it build on kfreebsd. -- Örjan Persson Sun, 07 Feb 2010 20:19:39 +0100 tokyotyrant (0.9.19-3) unstable; urgency=low * Updated package description (Closes: #566246). * Unix socket is now used as default compared to *:1978. * Depend on libtokyocabinet-dev for dev package (Closes: #566584). -- Örjan Persson Wed, 03 Feb 2010 21:57:38 +0100 tokyotyrant (0.9.19-2) unstable; urgency=low * Updated Debian copyright. -- Örjan Persson Sat, 16 Jan 2010 14:47:19 +0100 tokyotyrant (0.9.19-1) unstable; urgency=low * Initial release (Closes: #563921). -- Örjan Persson Wed, 06 Jan 2010 18:42:42 +0100 debian/tokyotyrant.README.Debian0000644000000000000000000000223311374020537013637 0ustar Tokyo Tyrant for Debian ----------------------- By default Tokyo Tyrant will use a hash database with a bucket size of 1000000. To tune your database, set a custom DBNAME in /etc/default/tokyotyrant. See ttserver(1) or tokyotyrant-doc for details. In the default file you can also setup things like replication, async update log writes, debugging and more. The init script defaults to use unix sockets if SERVERHOST or SERVERPORT is not set. This is different from what upstream does, which defaults to port 1978. All tools have been changed to reflect this change. Tokyo Tyrant is packaged in a way to allow you to run more than one instance on the same machine. The name of the server is based on the symlink for the init script. When this package is upgraded or removed, only the original server will be restarted. Make sure to manually bring other instances down and up. Example of how to setup a new instance: ln -s /etc/init.d/tokyotyrant /etc/init.d/tokyotyrant-other update-rc.d tokyotyrant-other defaults For special configurations for that instance, edit /etc/default/tokyotyrant-other -- Örjan Persson Wed, 03 Feb 2010 21:50:20 +0100