aboutsummaryrefslogtreecommitdiff
path: root/databases/tokyotyrant
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2009-03-27 21:34:43 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2009-03-27 21:34:43 +0000
commitabf1799010ef7364799cea24d8b49b70a008e889 (patch)
treeab3a50b232678838b04973d897a39e3259b24c80 /databases/tokyotyrant
parent9e7898a5d4a2eb53f85a9e7e5f2110ed4eb9fef5 (diff)
downloadports-abf1799010ef7364799cea24d8b49b70a008e889.tar.gz
ports-abf1799010ef7364799cea24d8b49b70a008e889.zip
Add tokyotyrant 1.1.17, network interface of Tokyo Cabinet.
PR: ports/132490 Submitted by: Gea-Suan Lin <gslin at gslin.org>
Notes
Notes: svn path=/head/; revision=231139
Diffstat (limited to 'databases/tokyotyrant')
-rw-r--r--databases/tokyotyrant/Makefile36
-rw-r--r--databases/tokyotyrant/distinfo3
-rw-r--r--databases/tokyotyrant/files/ttserver.in21
-rw-r--r--databases/tokyotyrant/pkg-descr9
-rw-r--r--databases/tokyotyrant/pkg-plist26
5 files changed, 95 insertions, 0 deletions
diff --git a/databases/tokyotyrant/Makefile b/databases/tokyotyrant/Makefile
new file mode 100644
index 000000000000..3560cbd002a3
--- /dev/null
+++ b/databases/tokyotyrant/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: tokyotyrant
+# Date created: 2009-03-09
+# Whom: Gea-Suan Lin <gslin@gslin.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tokyotyrant
+PORTVERSION= 1.1.17
+CATEGORIES= databases
+MASTER_SITES= SF
+MASTER_SITE_SUBDIR= tokyocabinet
+
+MAINTAINER= gslin@gslin.org
+COMMENT= Network interface of Tokyo Cabinet
+
+BUILD_DEPENDS= tokyocabinet>=1.4.7:${PORTSDIR}/databases/tokyocabinet
+LIB_DEPENDS= tokyocabinet:${PORTSDIR}/databases/tokyocabinet
+RUN_DEPENDS= tokyocabinet>=1.4.7:${PORTSDIR}/databases/tokyocabinet
+
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+USE_GMAKE= yes
+USE_RC_SUBR= ttserver
+
+MAN1= tcrmgr.1 tcrmttest.1 tcrtest.1 ttserver.1 ttulmgr.1 ttultest.1
+MAN3= tcrdb.3 tculog.3 ttutil.3
+MAN8= ttservctl.8
+
+# Since gnomehack only works for "(libdir)" case, we need to patch it
+# manually.
+post-patch:
+ ${REINPLACE_CMD} -e 's|@libdir@/pkgconfig|@prefix@/libdata/pkgconfig|g' \
+ ${WRKSRC}/Makefile.in
+
+.include <bsd.port.mk>
diff --git a/databases/tokyotyrant/distinfo b/databases/tokyotyrant/distinfo
new file mode 100644
index 000000000000..68ab848b11be
--- /dev/null
+++ b/databases/tokyotyrant/distinfo
@@ -0,0 +1,3 @@
+MD5 (tokyotyrant-1.1.17.tar.gz) = 1e0787b4afc105c1b75c2d9a3e6540b2
+SHA256 (tokyotyrant-1.1.17.tar.gz) = 3845c318cf1fc6a0f1ab66f4b557501ef0c2c7738677637eb3c55b4ce13e1fd2
+SIZE (tokyotyrant-1.1.17.tar.gz) = 180401
diff --git a/databases/tokyotyrant/files/ttserver.in b/databases/tokyotyrant/files/ttserver.in
new file mode 100644
index 000000000000..04daa5e2ee58
--- /dev/null
+++ b/databases/tokyotyrant/files/ttserver.in
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+#
+# PROVIDE: ttserver
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+. %%RC_SUBR%%
+
+name="ttserver"
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/bin/${name}"
+pidfile="/var/run/ttserver.pid"
+
+load_rc_config $name
+: ${ttserver_flags="-dmn -pid ${pidfile}"}
+
+run_rc_command "$1"
diff --git a/databases/tokyotyrant/pkg-descr b/databases/tokyotyrant/pkg-descr
new file mode 100644
index 000000000000..d7e1b473b688
--- /dev/null
+++ b/databases/tokyotyrant/pkg-descr
@@ -0,0 +1,9 @@
+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.
+
+WWW: http://tokyocabinet.sourceforge.net/tyrantdoc/
diff --git a/databases/tokyotyrant/pkg-plist b/databases/tokyotyrant/pkg-plist
new file mode 100644
index 000000000000..410741ff1d1f
--- /dev/null
+++ b/databases/tokyotyrant/pkg-plist
@@ -0,0 +1,26 @@
+@comment $FreeBSD$
+%%DATADIR%%/COPYING
+%%DATADIR%%/ChangeLog
+%%DATADIR%%/THANKS
+%%DATADIR%%/doc/index.html
+%%DATADIR%%/ext/senatus.lua
+%%DATADIR%%/ext/usherette.lua
+bin/tcrmgr
+bin/tcrmttest
+bin/tcrtest
+bin/ttserver
+bin/ttulmgr
+bin/ttultest
+include/tcrdb.h
+include/tculog.h
+include/ttutil.h
+lib/libtokyotyrant.a
+lib/libtokyotyrant.so
+lib/libtokyotyrant.so.3
+lib/libtokyotyrant.so.3.1.0
+libdata/pkgconfig/tokyotyrant.pc
+sbin/ttservctl
+@dirrmtry libdata/pkgconfig
+@dirrmtry %%DATADIR%%/ext
+@dirrmtry %%DATADIR%%/doc
+@dirrmtry %%DATADIR%%