diff options
Diffstat (limited to 'dev-db/couchdb')
-rw-r--r-- | dev-db/couchdb/ChangeLog | 10 | ||||
-rw-r--r-- | dev-db/couchdb/Manifest | 6 | ||||
-rw-r--r-- | dev-db/couchdb/couchdb-0.8.1.ebuild | 51 | ||||
-rw-r--r-- | dev-db/couchdb/files/couchdb.conf-0.8.1 | 9 | ||||
-rw-r--r-- | dev-db/couchdb/files/couchdb.init-0.8.1 | 47 | ||||
-rw-r--r-- | dev-db/couchdb/metadata.xml | 9 |
6 files changed, 132 insertions, 0 deletions
diff --git a/dev-db/couchdb/ChangeLog b/dev-db/couchdb/ChangeLog new file mode 100644 index 000000000000..f561c1800250 --- /dev/null +++ b/dev-db/couchdb/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-db/couchdb +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/couchdb/ChangeLog,v 1.1 2009/03/22 21:27:43 caleb Exp $ + +*couchdb-0.8.1 (22 Mar 2009) + + 22 Mar 2009; Caleb Tennis <caleb@gentoo.org> +files/couchdb.conf-0.8.1, + +files/couchdb.init-0.8.1, +couchdb-0.8.1.ebuild: + Initial import, from bug 197176. Thanks to everyone there who submitted ebuilds and supplemental files. + diff --git a/dev-db/couchdb/Manifest b/dev-db/couchdb/Manifest new file mode 100644 index 000000000000..472400d83e30 --- /dev/null +++ b/dev-db/couchdb/Manifest @@ -0,0 +1,6 @@ +AUX couchdb.conf-0.8.1 226 RMD160 5b0c035716ada61be076a132949c486c7cfc764a SHA1 e31e6da885eabb2964a17d04f1c23dac1e9e9c77 SHA256 9a2bbe0ae0ff08d0637cfde1b18a72a690638119d496a29c67b6cacd1c0760f7 +AUX couchdb.init-0.8.1 1149 RMD160 9dc1b0150cdf61cd9cdc13ceeae439a298de6161 SHA1 25aac84db56b251c0a36deae2eb0158579ebf843 SHA256 39a29143df691daa1c791b6e1a0b4e197f258e9ebcaae98cf0b7c30eada4c4a1 +DIST apache-couchdb-0.8.1-incubating.tar.gz 562627 RMD160 2928eeb3e3816d5a3ae43b548cde96de289dddd5 SHA1 1bbe4776a125577d89ae7b2622f406e59be9d119 SHA256 647f1506979ee53d4887a2b3a5fcf1004be64c9457c8d358a8fed5720f9da970 +EBUILD couchdb-0.8.1.ebuild 1321 RMD160 61e1de4e5f2cb4565b52baa4a0ea54d1ff2ffa11 SHA1 7d9f3ea4a27ff053482d763de508945ebd8b1aa9 SHA256 af4e99683078efd7249f89e229b81f5e2e1534cc25a7997b25973520b4b3c8db +MISC ChangeLog 464 RMD160 853874d0462dcc5fe59183c416933a9518e336e9 SHA1 4a3922a6beabbc0f37df9eedf3eb3219fae9bb03 SHA256 f979961cff17c6f103b1d17acc892b3f6cff189d7be15d88256406b523df05a1 +MISC metadata.xml 222 RMD160 20c3bc00edda57700158f97389dab6d6fefd6b35 SHA1 6c628868ba2507f2f0358c5ee4a1da75d02c5885 SHA256 fd87e5a303dc63cda86babd5b93a27b434399eb161683249809cdcca7cd8c5e2 diff --git a/dev-db/couchdb/couchdb-0.8.1.ebuild b/dev-db/couchdb/couchdb-0.8.1.ebuild new file mode 100644 index 000000000000..327720a854c9 --- /dev/null +++ b/dev-db/couchdb/couchdb-0.8.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/couchdb/couchdb-0.8.1.ebuild,v 1.1 2009/03/22 21:27:43 caleb Exp $ + +inherit eutils distutils + +DESCRIPTION="Apache CouchDB is a distributed, fault-tolerant and schema-free document-oriented database." +HOMEPAGE="http://couchdb.apache.org/" +SRC_URI="mirror://apache/incubator/couchdb/${PV}-incubating/apache-${P}-incubating.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +RESTRICT="test mirror" #72375 + +RDEPEND="dev-libs/icu + dev-lang/erlang + >=dev-libs/openssl-0.9.8j + >=net-misc/curl-7.18.2 + dev-lang/spidermonkey" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/apache-${P}-incubating" + +pkg_setup() { + enewgroup couchdb + enewuser couchdb -1 /bin/bash /var/lib/couchdb couchdb +} + +src_compile() { + ./bootstrap + econf --with-erlang=/usr/lib/erlang/usr/include --prefix=/usr \ + --localstatedir=/var || die "configure failed" + emake || die "make failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + + insinto /var/run/couchdb + + fowners couchdb:couchdb \ + /var/run/couchdb \ + /var/lib/couchdb \ + /var/log/couchdb + + newinitd "${FILESDIR}/couchdb.init-0.8.1" couchdb || die + newconfd "${FILESDIR}/couchdb.conf-0.8.1" couchdb || die +} diff --git a/dev-db/couchdb/files/couchdb.conf-0.8.1 b/dev-db/couchdb/files/couchdb.conf-0.8.1 new file mode 100644 index 000000000000..a2258d356c5e --- /dev/null +++ b/dev-db/couchdb/files/couchdb.conf-0.8.1 @@ -0,0 +1,9 @@ +# Options for CouchDB + +EXEC="/usr/bin/couchdb" +COUCHDB_USER="couchdb" +COUCHDB_PID_FILE="/var/run/couchdb/couchdb.pid" +COUCHDB_STDOUT_FILE="/dev/null" +COUCHDB_STDERR_FILE="/dev/null" +#COUCHDB_RESPAWN_TIMEOUT= +#COUCHDB_OPTIONS= diff --git a/dev-db/couchdb/files/couchdb.init-0.8.1 b/dev-db/couchdb/files/couchdb.init-0.8.1 new file mode 100644 index 000000000000..42b92917143b --- /dev/null +++ b/dev-db/couchdb/files/couchdb.init-0.8.1 @@ -0,0 +1,47 @@ +#!/sbin/runscript +# Copyright 2008 Dirkjan Ochtman +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting ${SVCNAME}" + + args="-b" + if test -n "$COUCHDB_STDOUT_FILE"; then + args="$args -o $COUCHDB_STDOUT_FILE" + fi + if test -n "$COUCHDB_STDERR_FILE"; then + args="$args -e $COUCHDB_STDERR_FILE" + fi + if test -n "$COUCHDB_RESPAWN_TIMEOUT"; then + args="$args -r $COUCHDB_RESPAWN_TIMEOUT" + fi + if test -n "$COUCHDB_OPTIONS"; then + args="$args $COUCHDB_OPTIONS" + fi + if test -n "$COUCHDB_PID_FILE"; then + args="$args -p $COUCHDB_PID_FILE" + else + echo "* ERROR: COUCHDB_PID_FILE must be set" + return -1 + fi + if test -z "$COUCHDB_USER"; then + echo "* ERROR: COUCHDB_USER must be set" + return -1 + fi + + start-stop-daemon --start --exec ${EXEC} --name beam \ + --user ${COUCHDB_USER} --chuid ${COUCHDB_USER} --pidfile ${COUCHDB_PID_FILE} -- $args + + eend $? "Failed to start ${SVCNAME}" +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --exec ${EXEC} --name beam \ + --pidfile ${COUCHDB_PID_FILE} + eend $? "Failed to stop ${SVCNAME}" +} diff --git a/dev-db/couchdb/metadata.xml b/dev-db/couchdb/metadata.xml new file mode 100644 index 000000000000..995b6aade137 --- /dev/null +++ b/dev-db/couchdb/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>caleb@gentoo.org</email> +</maintainer> +</pkgmetadata> |