public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexys Jacob" <ultrabug@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/ultrabug:master commit in: dev-db/couchbase-server-community/files/, dev-db/couchbase-server-community/
Date: Wed,  5 Mar 2014 17:14:51 +0000 (UTC)	[thread overview]
Message-ID: <1394039686.b775d6ab65dd839aa66342ee64dc67b89531494f.ultrabug@gentoo> (raw)

commit:     b775d6ab65dd839aa66342ee64dc67b89531494f
Author:     Ultrabug <ultrabug <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  5 17:14:46 2014 +0000
Commit:     Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
CommitDate: Wed Mar  5 17:14:46 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/ultrabug.git;a=commit;h=b775d6ab

new dev-db/couchbase-server-community

---
 dev-db/couchbase-server-community/Manifest         |  4 ++
 .../couchbase-server-community-2.2.0.ebuild        | 56 ++++++++++++++++++++++
 .../files/couchbase-server                         | 38 +++++++++++++++
 3 files changed, 98 insertions(+)

diff --git a/dev-db/couchbase-server-community/Manifest b/dev-db/couchbase-server-community/Manifest
new file mode 100644
index 0000000..9dc8643
--- /dev/null
+++ b/dev-db/couchbase-server-community/Manifest
@@ -0,0 +1,4 @@
+AUX couchbase-server 1174 SHA256 9c0194265914228c0a1ee1ede582008895b717b7656b304f36dcb5c8c99fa512 SHA512 d8c53e0567f3309d8e601a6500083c5b1846632deadd8cd0000d944db78a7f59c1a0a3658a4b7b16ff181579d5e019c728ab04e9f0c4649d65118e2d2faa25e3 WHIRLPOOL 605b3f02f2b4eafb7c8980fb0d9ed2f2a49d1a8b08ad80eea21cf0c394bd3b9dbe75daff3e4a1c8b46bf15894567f346a2fe49e9af56fcff635703933bde2968
+DIST couchbase-server-community_2.2.0_x86.deb 135143596 SHA256 8d00532af7f60963e8a3b8002731ddf2245eb1942381337377502bebe4e8b0b6 SHA512 3b15fc496c225bd67f1592fb66e3febad6c04e929499db18a4ddc3e87eee6986836aeee6964e114f710f346102e8ed8aa93dad7b5136684dd1ea6e3a8e64ba5e WHIRLPOOL 5b61bf14a01e9eb72e93f85c7e2882627c39c560c006823dbc0c4b22657d4456198633b16cd6e0da4aab02a49ffd3a7343666d4b796069d6052f93001978fbbe
+DIST couchbase-server-community_2.2.0_x86_64.deb 137295996 SHA256 051b0905e13241de19fbd9efb1e22a421f33429a1db3e4b5e3ae8756b9e4d6a2 SHA512 1001177631312f7dd75aa270e8eb32cfd076e9c6de42968619513f3adf640d1973120e3dded1e47b98cb47e25886111a9d1de29c6f405ffbbdae4e31d7225c67 WHIRLPOOL caab764b78b6b8386267d91e1bd8cbc82741384e221f25e169cd11c498f8ed4c596b03d9873915d1d174d82e4d80110952d54e5bf3183b31aad58e699784d3c9
+EBUILD couchbase-server-community-2.2.0.ebuild 1404 SHA256 5199ee1de9594d447a7fec0b6fad4c886026e31303fff10da4e02076e941692e SHA512 cd772dc351262f651314655673b6f1c3c9db93b1fcdba28cbd12e9f96bf507b3b28b1d96d8f6ecdaef2d28e15f8a0739406e02b913f8c32e900412f6054ae4b5 WHIRLPOOL dcbabeb63b610167d3023642ff635c7eb1868ab5bb8a562d25c9848a26cf316ec52a0491fe7d89f6b0f818da39611ac25191c66bf013285fa5b42b3cb3e07de1

diff --git a/dev-db/couchbase-server-community/couchbase-server-community-2.2.0.ebuild b/dev-db/couchbase-server-community/couchbase-server-community-2.2.0.ebuild
new file mode 100644
index 0000000..a3046d7
--- /dev/null
+++ b/dev-db/couchbase-server-community/couchbase-server-community-2.2.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+EAPI=5
+inherit eutils user
+
+DESCRIPTION="Distributed key-value database management system"
+HOMEPAGE="http://www.couchbase.com"
+SRC_URI="
+	amd64? ( http://packages.couchbase.com/releases/${PV}/${PN}_${PV}_x86_64.deb )
+	x86? ( http://packages.couchbase.com/releases/${PV}/${PN}_${PV}_x86.deb )
+"
+
+
+LICENSE="COUCHBASE INC. COMMUNITY EDITION"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=sys-libs/ncurses-5[tinfo]
+		>=dev-libs/libevent-1.4.13
+		>=dev-libs/cyrus-sasl-2"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}
+
+pkg_setup() {
+	enewgroup couchbase
+	enewuser couchbase -1 /bin/bash /opt/couchbase couchbase
+}
+
+src_unpack() {
+	ar x "${DISTDIR}"/${A}
+	cd ${WORKDIR}
+	tar xzf data.tar.gz
+}
+
+src_install() {
+	# basic cleanup
+	rm -rf opt/couchbase/etc/{couchbase_init.d,couchbase_init.d.tmpl,init.d}
+
+	# bin install / copy
+	dodir /opt/couchbase
+	tar xfm opt/couchbase/lib/python/pysqlite2.tar -C opt/couchbase/lib/python || die
+	cp -a opt/couchbase/* "${D}"/opt/couchbase/
+
+	dodir /opt/couchbase/var/lib/couchbase/{data,mnesia,tmp}
+
+	fperms o+x /opt/couchbase/lib/python/pysqlite2/
+	fperms -R o+r /opt/couchbase/lib/python/pysqlite2/
+	fowners -R couchbase:couchbase /opt/couchbase/
+
+	doinitd "${FILESDIR}"/couchbase-server
+	dosym /opt/couchbase/etc/logrotate.d/couchdb /etc/logrotate.d/couchdb
+}

diff --git a/dev-db/couchbase-server-community/files/couchbase-server b/dev-db/couchbase-server-community/files/couchbase-server
new file mode 100755
index 0000000..4912a83
--- /dev/null
+++ b/dev-db/couchbase-server-community/files/couchbase-server
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntpd.rc,v 1.24 2010/07/18 21:53:24 vapier Exp $
+
+BASEDIR=/opt/couchbase/var/lib/couchbase
+DAEMON=/opt/couchbase/bin/couchbase-server
+PIDFILE=/opt/couchbase/var/lib/couchbase/couchbase-server.pid
+NODEFILE=/opt/couchbase/var/lib/couchbase/couchbase-server.node
+COOKIEFILE=/opt/couchbase/var/lib/couchbase/couchbase-server.cookie
+
+depend() {
+	use net
+}
+
+checkconfig() {
+	ulimit -n 10240
+	ulimit -c unlimited
+	ulimit -l unlimited
+
+	touch ${PIDFILE} ${NODEFILE} ${COOKIEFILE} && chown couchbase:couchbase ${PIDFILE} ${NODEFILE} ${COOKIEFILE}
+	return $?
+}
+
+start() {
+	checkconfig || return $?
+
+	ebegin "Starting ${SVCNAME} (waiting 10 seconds for startup)"
+	start-stop-daemon --start --chdir ${BASEDIR} --user couchbase --pidfile ${PIDFILE} --wait 10000 \
+		--exec /bin/sh -- -c "${DAEMON} -- -noinput -detached > /opt/couchbase/var/lib/couchbase/logs/start.log 2>&1"
+	eend $? "Failed to start ${SVCNAME}"
+}
+
+stop() {
+	ebegin "Stopping ${SVCNAME}"
+	${DAEMON} -k
+	eend $? "Failed to stop ${SVCNAME}"
+}


             reply	other threads:[~2014-03-05 17:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-05 17:14 Alexys Jacob [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-03-13  9:44 [gentoo-commits] dev/ultrabug:master commit in: dev-db/couchbase-server-community/files/, dev-db/couchbase-server-community/ Alexys Jacob
2014-03-13 18:19 Alexys Jacob

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1394039686.b775d6ab65dd839aa66342ee64dc67b89531494f.ultrabug@gentoo \
    --to=ultrabug@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox