diff options
author | Caleb Tennis <caleb@gentoo.org> | 2009-04-01 11:08:07 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2009-04-01 11:08:07 +0000 |
commit | 022dc99be5e35fcc2ad371a9f322135010946dd5 (patch) | |
tree | c8a2a116ae59a68b8d4560bce5c165431d494004 /dev-db/couchdb | |
parent | Marked ~ppc/~ppc64 for bug #264108. (diff) | |
download | gentoo-2-022dc99be5e35fcc2ad371a9f322135010946dd5.tar.gz gentoo-2-022dc99be5e35fcc2ad371a9f322135010946dd5.tar.bz2 gentoo-2-022dc99be5e35fcc2ad371a9f322135010946dd5.zip |
version bump
(Portage version: 2.1.6.9/cvs/Linux i686)
Diffstat (limited to 'dev-db/couchdb')
-rw-r--r-- | dev-db/couchdb/ChangeLog | 8 | ||||
-rw-r--r-- | dev-db/couchdb/couchdb-0.9.0.ebuild | 51 | ||||
-rw-r--r-- | dev-db/couchdb/files/couchdb.conf-0.9 | 9 | ||||
-rw-r--r-- | dev-db/couchdb/files/couchdb.init-0.9 | 47 |
4 files changed, 114 insertions, 1 deletions
diff --git a/dev-db/couchdb/ChangeLog b/dev-db/couchdb/ChangeLog index f561c1800250..511b392bff4b 100644 --- a/dev-db/couchdb/ChangeLog +++ b/dev-db/couchdb/ChangeLog @@ -1,6 +1,12 @@ # 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 $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/couchdb/ChangeLog,v 1.2 2009/04/01 11:08:07 caleb Exp $ + +*couchdb-0.9.0 (01 Apr 2009) + + 01 Apr 2009; Caleb Tennis <caleb@gentoo.org> +files/couchdb.conf-0.9, + +files/couchdb.init-0.9, +couchdb-0.9.0.ebuild: + Version bump *couchdb-0.8.1 (22 Mar 2009) diff --git a/dev-db/couchdb/couchdb-0.9.0.ebuild b/dev-db/couchdb/couchdb-0.9.0.ebuild new file mode 100644 index 000000000000..a712a096682d --- /dev/null +++ b/dev-db/couchdb/couchdb-0.9.0.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.9.0.ebuild,v 1.1 2009/04/01 11:08:07 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/couchdb/${PV}/apache-${P}.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}" + +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.9" couchdb || die + newconfd "${FILESDIR}/couchdb.conf-0.9" couchdb || die +} diff --git a/dev-db/couchdb/files/couchdb.conf-0.9 b/dev-db/couchdb/files/couchdb.conf-0.9 new file mode 100644 index 000000000000..a2258d356c5e --- /dev/null +++ b/dev-db/couchdb/files/couchdb.conf-0.9 @@ -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.9 b/dev-db/couchdb/files/couchdb.init-0.9 new file mode 100644 index 000000000000..42b92917143b --- /dev/null +++ b/dev-db/couchdb/files/couchdb.init-0.9 @@ -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}" +} |