summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache>2008-10-11 12:26:24 +0000
committerobache <obache>2008-10-11 12:26:24 +0000
commit8794e51637747ad54509b5b8b213997a8fbbb26d (patch)
tree59270194a668fe0ffda5ede59714a3387cb56e12
parent8f0a3391fd70899d3e4e001acc272fb4a70fc8c1 (diff)
downloadpkgsrc-8794e51637747ad54509b5b8b213997a8fbbb26d.tar.gz
Import tokyotyrant-1.1.4 as databases/tokyotyrant.
Tokyo Tyrant is a package of network interface to the DBM called Tokyo Cabinet. Though the DBM has high performance, you might bother in case that multiple processes share the same database, or remote processes access the database. Thus, Tokyo Tyrant is provided for concurrent and remote connections to Tokyo Cabinet. It is composed of the server process managing a database and its access library for client applications. The server features high concurrency due to thread-pool modeled implementation and the epoll/kqueue mechanism of the modern Linux/*BSD kernel. The server and its clients communicate with each other by simple binary protocol on TCP/IP. Protocols compatible with memcached and HTTP/1.1 are also supported so that almost all principal platforms and programming languages can use Tokyo Tyrant. High availability and high integrity are also featured due to hot such mechanisms as hot backup, update logging, and replication. As for now, the server works on Linux, FreeBSD, Mac OS X only.
-rw-r--r--databases/tokyotyrant/DESCR16
-rw-r--r--databases/tokyotyrant/Makefile24
-rw-r--r--databases/tokyotyrant/PLIST33
-rw-r--r--databases/tokyotyrant/distinfo7
-rw-r--r--databases/tokyotyrant/patches/patch-aa15
-rw-r--r--databases/tokyotyrant/patches/patch-ab22
6 files changed, 117 insertions, 0 deletions
diff --git a/databases/tokyotyrant/DESCR b/databases/tokyotyrant/DESCR
new file mode 100644
index 00000000000..e680f1c4379
--- /dev/null
+++ b/databases/tokyotyrant/DESCR
@@ -0,0 +1,16 @@
+Tokyo Tyrant is a package of network interface to the DBM called Tokyo Cabinet.
+Though the DBM has high performance, you might bother in case that multiple
+processes share the same database, or remote processes access the database.
+Thus, Tokyo Tyrant is provided for concurrent and remote connections to Tokyo
+Cabinet. It is composed of the server process managing a database and its
+access library for client applications.
+
+The server features high concurrency due to thread-pool modeled implementation
+and the epoll/kqueue mechanism of the modern Linux/*BSD kernel. The server and
+its clients communicate with each other by simple binary protocol on TCP/IP.
+Protocols compatible with memcached and HTTP/1.1 are also supported so that
+almost all principal platforms and programming languages can use Tokyo Tyrant.
+High availability and high integrity are also featured due to hot such
+mechanisms as hot backup, update logging, and replication.
+
+As for now, the server works on Linux, FreeBSD, Mac OS X only.
diff --git a/databases/tokyotyrant/Makefile b/databases/tokyotyrant/Makefile
new file mode 100644
index 00000000000..63b51067832
--- /dev/null
+++ b/databases/tokyotyrant/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/10/11 12:26:24 obache Exp $
+#
+
+DISTNAME= tokyotyrant-1.1.4
+CATEGORIES= databases net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tokyocabinet/}
+
+MAINTAINER= obache@NetBSD.org
+HOMEPAGE= http://tokyocabinet.sourceforge.net/
+COMMENT= Network interface of Tokyo Cabinet
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= gmake pkg-config
+
+PKGCONFIG_OVERRIDE+= tokyotyrant.pc.in
+
+TEST_TARGET= check
+
+.include "../../databases/tokyocabinet/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/tokyotyrant/PLIST b/databases/tokyotyrant/PLIST
new file mode 100644
index 00000000000..d882605bd5b
--- /dev/null
+++ b/databases/tokyotyrant/PLIST
@@ -0,0 +1,33 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/10/11 12:26:24 obache Exp $
+bin/tcrmgr
+bin/tcrmttest
+bin/tcrtest
+bin/ttserver
+bin/ttulmgr
+bin/ttultest
+include/tcrdb.h
+include/tculog.h
+include/ttutil.h
+lib/libtokyotyrant.1.22.0.so
+lib/libtokyotyrant.1.so
+lib/libtokyotyrant.a
+lib/libtokyotyrant.so
+lib/pkgconfig/tokyotyrant.pc
+man/man1/tcrmgr.1
+man/man1/tcrmttest.1
+man/man1/tcrtest.1
+man/man1/ttserver.1
+man/man1/ttulmgr.1
+man/man1/ttultest.1
+man/man3/tcrdb.3
+man/man3/tculog.3
+man/man3/ttutil.3
+man/man8/ttservctl.8
+sbin/ttservctl
+share/tokyotyrant/COPYING
+share/tokyotyrant/ChangeLog
+share/tokyotyrant/THANKS
+share/tokyotyrant/doc/index.html
+share/tokyotyrant/senatus.lua
+@dirrm share/tokyotyrant/doc
+@dirrm share/tokyotyrant
diff --git a/databases/tokyotyrant/distinfo b/databases/tokyotyrant/distinfo
new file mode 100644
index 00000000000..533797595a6
--- /dev/null
+++ b/databases/tokyotyrant/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/10/11 12:26:24 obache Exp $
+
+SHA1 (tokyotyrant-1.1.4.tar.gz) = 99d70421fa02e47cb8564ca0d95acadf1cd6d766
+RMD160 (tokyotyrant-1.1.4.tar.gz) = 0089003241fb2621f6cf20ebd1cd07e4d4922d05
+Size (tokyotyrant-1.1.4.tar.gz) = 172812 bytes
+SHA1 (patch-aa) = 94d950d5ddee5520cc1637f7026270ce0b5e1af5
+SHA1 (patch-ab) = 9d717b7c31d80bf196ef1cbc6817d5bb4e061250
diff --git a/databases/tokyotyrant/patches/patch-aa b/databases/tokyotyrant/patches/patch-aa
new file mode 100644
index 00000000000..e98cbf55558
--- /dev/null
+++ b/databases/tokyotyrant/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/10/11 12:26:24 obache Exp $
+
+--- Makefile.in.orig 2008-09-29 02:32:50.000000000 +0000
++++ Makefile.in
+@@ -54,8 +54,8 @@ CPPFLAGS = @MYCPPFLAGS@ \
+ -D_TT_PREFIX="\"$(prefix)\"" -D_TT_INCLUDEDIR="\"$(INCLUDEDIR)\"" \
+ -D_TT_LIBDIR="\"$(LIBDIR)\"" -D_TT_BINDIR="\"$(BINDIR)\"" -D_TT_LIBEXECDIR="\"$(LIBEXECDIR)\"" \
+ -D_TT_APPINC="\"-I$(INCLUDEDIR)\"" -D_TT_APPLIBS="\"-L$(LIBDIR) -ltokyotyrant @LIBS@\""
+-CFLAGS = @MYCFLAGS@
+-LDFLAGS = @MYLDFLAGS@
++CFLAGS = @CFLAGS@ @MYCFLAGS@
++LDFLAGS = @LDFLAGS@ @MYLDFLAGS@
+ CMDLDFLAGS = @MYCMDLDFLAGS@
+ LIBS = @LIBS@
+ LDENV = LD_RUN_PATH=/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@:.
diff --git a/databases/tokyotyrant/patches/patch-ab b/databases/tokyotyrant/patches/patch-ab
new file mode 100644
index 00000000000..21d493b8acd
--- /dev/null
+++ b/databases/tokyotyrant/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/10/11 12:26:24 obache Exp $
+
+--- configure.orig 2008-09-29 02:49:28.000000000 +0000
++++ configure
+@@ -4303,7 +4303,7 @@ _ACEOF
+
+ fi
+
+-if test "$enable_lua" == "yes"
++if test "$enable_lua" = "yes"
+ then
+
+ { echo "$as_me:$LINENO: checking for main in -llua" >&5
+@@ -5110,7 +5110,7 @@ echo "$as_me: error: tcutil.h is require
+ fi
+
+
+-if test "$enable_lua" == "yes"
++if test "$enable_lua" = "yes"
+ then
+ if test "${ac_cv_header_lua_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for lua.h" >&5