diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2009-10-13 12:44:57 +0000 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2009-10-13 12:44:57 +0000 |
commit | 65a474d06ebb3940479aa4b536922727db9bd2cb (patch) | |
tree | ec4fed630a2696259b977ceffa505b28db94f0fb /dev-db/couchdb | |
parent | Remove COPYING and INSTALL from DOCS. (diff) | |
download | gentoo-2-65a474d06ebb3940479aa4b536922727db9bd2cb.tar.gz gentoo-2-65a474d06ebb3940479aa4b536922727db9bd2cb.tar.bz2 gentoo-2-65a474d06ebb3940479aa4b536922727db9bd2cb.zip |
Add dev-db/couchdb-0.10.0.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'dev-db/couchdb')
-rw-r--r-- | dev-db/couchdb/ChangeLog | 8 | ||||
-rw-r--r-- | dev-db/couchdb/couchdb-0.10.0.ebuild | 57 | ||||
-rw-r--r-- | dev-db/couchdb/files/couchdb.conf-0.10 | 15 | ||||
-rw-r--r-- | dev-db/couchdb/files/couchdb.init-0.10 | 47 |
4 files changed, 126 insertions, 1 deletions
diff --git a/dev-db/couchdb/ChangeLog b/dev-db/couchdb/ChangeLog index b8b3f881fd29..32159182e60a 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.8 2009/10/09 22:35:19 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/couchdb/ChangeLog,v 1.9 2009/10/13 12:44:57 djc Exp $ + +*couchdb-0.10.0 (13 Oct 2009) + + 13 Oct 2009; <djc@gentoo.org> +files/couchdb.conf-0.10, + +files/couchdb.init-0.10, +couchdb-0.10.0.ebuild: + Add version 0.10.0. 09 Oct 2009; Patrick Lauer <patrick@gentoo.org> couchdb-0.9.1.ebuild: Add usedep for erlang +ssl, fixes #287744 diff --git a/dev-db/couchdb/couchdb-0.10.0.ebuild b/dev-db/couchdb/couchdb-0.10.0.ebuild new file mode 100644 index 000000000000..2824818c86e2 --- /dev/null +++ b/dev-db/couchdb/couchdb-0.10.0.ebuild @@ -0,0 +1,57 @@ +# 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.10.0.ebuild,v 1.1 2009/10/13 12:44:57 djc Exp $ + +EAPI="2" + +inherit eutils distutils multilib + +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="~amd64 ~x86" +IUSE="" +RESTRICT="test mirror" #72375 + +RDEPEND="dev-libs/icu + dev-lang/erlang[ssl] + >=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_configure() { + econf --with-erlang=/usr/lib/erlang/usr/include --prefix=/usr \ + --localstatedir=/var || die "configure failed" +} + +src_compile() { + 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.10" couchdb || die + newconfd "${FILESDIR}/couchdb.conf-0.10" couchdb || die + + sed -i -e "s:LIBDIR:$(get_libdir):" "${D}/etc/conf.d/couchdb" +} diff --git a/dev-db/couchdb/files/couchdb.conf-0.10 b/dev-db/couchdb/files/couchdb.conf-0.10 new file mode 100644 index 000000000000..573b5e1eb48e --- /dev/null +++ b/dev-db/couchdb/files/couchdb.conf-0.10 @@ -0,0 +1,15 @@ +# 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= + +if [ -e /usr/LIBDIR/erlang/erts-*/bin/beam.smp ]; then + COUCHDB_BEAM="beam.smp" +else + COUCHDB_BEAM="beam" +fi diff --git a/dev-db/couchdb/files/couchdb.init-0.10 b/dev-db/couchdb/files/couchdb.init-0.10 new file mode 100644 index 000000000000..d0017d791359 --- /dev/null +++ b/dev-db/couchdb/files/couchdb.init-0.10 @@ -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 ${COUCHDB_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 ${COUCHDB_BEAM} \ + --pidfile ${COUCHDB_PID_FILE} + eend $? "Failed to stop ${SVCNAME}" +} |