diff options
author | MATSUU Takuto <matsuu@gentoo.org> | 2010-01-18 20:24:45 +0900 |
---|---|---|
committer | MATSUU Takuto <matsuu@gentoo.org> | 2010-01-18 20:24:45 +0900 |
commit | 078198f23abab9fa5232d6b4a55d16bccbbda63f (patch) | |
tree | fe6f8915715fe01780c702de2b05e9e9c3dbeb5c | |
parent | dev-ruby/msgpack: Initial import. (diff) | |
download | matsuu-078198f23abab9fa5232d6b4a55d16bccbbda63f.tar.gz matsuu-078198f23abab9fa5232d6b4a55d16bccbbda63f.tar.bz2 matsuu-078198f23abab9fa5232d6b4a55d16bccbbda63f.zip |
net-misc/kumofs: Initial import.
-rw-r--r-- | net-misc/kumofs/Manifest | 8 | ||||
-rw-r--r-- | net-misc/kumofs/files/kumo-gateway.confd | 6 | ||||
-rw-r--r-- | net-misc/kumofs/files/kumo-gateway.initd | 25 | ||||
-rw-r--r-- | net-misc/kumofs/files/kumo-manager.confd | 6 | ||||
-rw-r--r-- | net-misc/kumofs/files/kumo-manager.initd | 26 | ||||
-rw-r--r-- | net-misc/kumofs/files/kumo-server.confd | 6 | ||||
-rw-r--r-- | net-misc/kumofs/files/kumo-server.initd | 26 | ||||
-rw-r--r-- | net-misc/kumofs/kumofs-0.3.0.ebuild | 38 |
8 files changed, 141 insertions, 0 deletions
diff --git a/net-misc/kumofs/Manifest b/net-misc/kumofs/Manifest new file mode 100644 index 0000000..a52dd50 --- /dev/null +++ b/net-misc/kumofs/Manifest @@ -0,0 +1,8 @@ +AUX kumo-gateway.confd 209 RMD160 97055f082db9d38779ed35fdcde0e3bfdfde1e39 SHA1 d3afa1d1e7acdaad4eac92a2eece21c8784aed92 SHA256 7db7e48205a4c2af298a3f6f896c13afab595eb6985b32c99b65721b94529800 +AUX kumo-gateway.initd 658 RMD160 df3b8b5539ff2b638f37c333ffe84361ab973dd7 SHA1 3c88e5361e761911f9240da40c581eeba7481229 SHA256 51122b36df72c4850a62c3a8ae33c0a9c68b347c3c3755b6d96e7f45b549c238 +AUX kumo-manager.confd 162 RMD160 e3cf7b1eb370c218cf84f25e3dbe0466f21f3b60 SHA1 d4314ff15638808fa66f602d7a486c48abf152b3 SHA256 842ac979bd2c98aa781007f1a6857b95fbdfba6e8fd1f589a472c7445e3020fa +AUX kumo-manager.initd 679 RMD160 ebdef8e8730a4892a1489b0525207b7abe9b79d0 SHA1 951da6d2984c5d9594f19321aa7627cd0633f3a6 SHA256 95eb37da9a87f83e55bfcaefd7218fa54a2bc0ccc48019dcbe8e334dc96b5917 +AUX kumo-server.confd 243 RMD160 25244c07d5a5a8965d0abde99158fcd5e5cbd942 SHA1 fa0793aa98aa84b118995b8d7acbd64a150be4be SHA256 7352e404b2d48e0cd424158f8f137c655e9dd05f719edd0f31bdb4b327e46e8f +AUX kumo-server.initd 677 RMD160 730e43aad4171b11c325a5f53e959cb80d031916 SHA1 78002c7bc58c6e4ea13a0f7256333814a77a1758 SHA256 169f2baba457a0f798c584365f74ce6236dccd78ab6e0e43fbe230c3ce7c1ffb +DIST kumofs-0.3.0.tar.gz 516666 RMD160 76e56a61059a65473fe0605a73b343e1428065a5 SHA1 14bbf5b00dc383296a170f7bcfed7f479e2aaf46 SHA256 24336590118b5540049d772ce7ab79a9852a280c0470b62f2f9606aa282f53d7 +EBUILD kumofs-0.3.0.ebuild 1125 RMD160 d3ebd444588fafaa26193a962a3a0bf7f1e76518 SHA1 dbe9653e02308cf811e4f0dfbdd6cd1e1dc7d556 SHA256 e6414774b31c6cc45406d6d6793d302f868921d522e79fe689854e1e73451e24 diff --git a/net-misc/kumofs/files/kumo-gateway.confd b/net-misc/kumofs/files/kumo-gateway.confd new file mode 100644 index 0000000..2024a01 --- /dev/null +++ b/net-misc/kumofs/files/kumo-gateway.confd @@ -0,0 +1,6 @@ +# /etc/conf.d/kumo-gateway: config file for /etc/init.d/kumo-gateway + +#KUMO_GATEWAY_HOSTNAME="${HOSTNAME}" + +#KUMO_GATEWAY_OPTS="-v -m manager1 -p manager2 -t 11211" +KUMO_GATEWAY_OPTS="-m ${HOSTNAME} -t 11211" diff --git a/net-misc/kumofs/files/kumo-gateway.initd b/net-misc/kumofs/files/kumo-gateway.initd new file mode 100644 index 0000000..9fedb9d --- /dev/null +++ b/net-misc/kumofs/files/kumo-gateway.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +KUMO_GATEWAY_HOSTNAME="${KUMO_GATEWAY_HOSTNAME:-${HOSTNAME}}" +KUMO_GATEWAY_EXEC="${KUMO_GATEWAY_EXEC:-/usr/bin/kumo-gateway}" +KUMO_GATEWAY_PID="${KUMO_GATEWAY_PID:-/var/run/kumo-gateway.pid}" + +depend() { + use net kumo-manager +} + +start() { + ebegin "Starting kumo-gateway" + start-stop-daemon --start --quiet --exec "${KUMO_GATEWAY_EXEC}" \ + -- -d "${KUMO_GATEWAY_PID}" ${KUMO_GATEWAY_OPTS} + eend $? +} + +stop() { + ebegin "Stopping kumo-gateway" + start-stop-daemon --stop --quiet --pidfile "${KUMO_GATEWAY_PID}" + eend $? +} diff --git a/net-misc/kumofs/files/kumo-manager.confd b/net-misc/kumofs/files/kumo-manager.confd new file mode 100644 index 0000000..fc2b6f3 --- /dev/null +++ b/net-misc/kumofs/files/kumo-manager.confd @@ -0,0 +1,6 @@ +# /etc/conf.d/kumo-manager: config file for /etc/init.d/kumo-manager + +#KUMO_MANAGER_HOSTNAME="${HOSTNAME}" + +#KUMO_MANAGER_OPTS="-p manager2" +KUMO_MANAGER_OPTS="" diff --git a/net-misc/kumofs/files/kumo-manager.initd b/net-misc/kumofs/files/kumo-manager.initd new file mode 100644 index 0000000..ed80ff2 --- /dev/null +++ b/net-misc/kumofs/files/kumo-manager.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +KUMO_MANAGER_HOSTNAME="${KUMO_MANAGER_HOSTNAME:-${HOSTNAME}}" +KUMO_MANAGER_EXEC="${KUMO_MANAGER_EXEC:-/usr/bin/kumo-manager}" +KUMO_MANAGER_PID="${KUMO_MANAGER_PID:-/var/run/kumo-manager.pid}" + +depend() { + use net +} + +start() { + ebegin "Starting kumo-manager" + start-stop-daemon --start --quiet --exec "${KUMO_MANAGER_EXEC}" \ + -- -l "${KUMO_MANAGER_HOSTNAME}" -d "${KUMO_MANAGER_PID}" \ + ${KUMO_MANAGER_OPTS} + eend $? +} + +stop() { + ebegin "Stopping kumo-manager" + start-stop-daemon --stop --quiet --pidfile "${KUMO_MANAGER_PID}" + eend $? +} diff --git a/net-misc/kumofs/files/kumo-server.confd b/net-misc/kumofs/files/kumo-server.confd new file mode 100644 index 0000000..fccaf08 --- /dev/null +++ b/net-misc/kumofs/files/kumo-server.confd @@ -0,0 +1,6 @@ +# /etc/conf.d/kumo-server: config file for /etc/init.d/kumo-server + +#KUMO_SERVER_HOSTNAME="${HOSTNAME}" + +#KUMO_SERVER_OPTS="-m manager1 -p manager2 -s /var/lib/kumofs/kumodb.tch" +KUMO_SERVER_OPTS="-m ${HOSTNAME} -s /var/lib/kumofs/kumodb.tch" diff --git a/net-misc/kumofs/files/kumo-server.initd b/net-misc/kumofs/files/kumo-server.initd new file mode 100644 index 0000000..4af3503 --- /dev/null +++ b/net-misc/kumofs/files/kumo-server.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +KUMO_SERVER_HOSTNAME="${KUMO_SERVER_HOSTNAME:-${HOSTNAME}}" +KUMO_SERVER_EXEC="${KUMO_SERVER_EXEC:-/usr/bin/kumo-server}" +KUMO_SERVER_PID="${KUMO_SERVER_PID:-/var/run/kumo-server.pid}" + +depend() { + use net kumo-manager +} + +start() { + ebegin "Starting kumo-server" + start-stop-daemon --start --quiet --exec "${KUMO_SERVER_EXEC}" \ + -- -l "${KUMO_SERVER_HOSTNAME}" -d "${KUMO_SERVER_PID}" \ + ${KUMO_SERVER_OPTS} + eend $? +} + +stop() { + ebegin "Stopping kumo-server" + start-stop-daemon --stop --quiet --pidfile "${KUMO_SERVER_PID}" + eend $? +} diff --git a/net-misc/kumofs/kumofs-0.3.0.ebuild b/net-misc/kumofs/kumofs-0.3.0.ebuild new file mode 100644 index 0000000..1498bfa --- /dev/null +++ b/net-misc/kumofs/kumofs-0.3.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +DESCRIPTION="a scalable and highly available distributed key-value store" +HOMEPAGE="http://github.com/etolabo/kumofs" +SRC_URI="http://cloud.github.com/downloads/etolabo/kumofs/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=dev-db/tokyocabinet-1.4.10 + >=dev-libs/msgpack-0.3.1 + dev-libs/openssl + >=dev-ruby/msgpack-0.3.1 + >=dev-lang/ruby-1.8.6 + sys-libs/zlib" +RDEPEND="${DEPEND}" + +src_install() { + emake DESTDIR="${D}" install || die + + newinitd "${FILESDIR}/kumo-gateway.initd" kumo-gateway || die + newconfd "${FILESDIR}/kumo-gateway.confd" kumo-gateway || die + newinitd "${FILESDIR}/kumo-manager.initd" kumo-manager || die + newconfd "${FILESDIR}/kumo-manager.confd" kumo-manager || die + newinitd "${FILESDIR}/kumo-server.initd" kumo-server || die + newconfd "${FILESDIR}/kumo-server.confd" kumo-server || die + + keepdir /var/lib/kumofs || die + + doman doc/kumo-{gateway,manager,server}.1 || die + dodoc AUTHORS ChangeLog NEWS NOTICE README README.md || die +} |