diff options
author | 2017-11-01 16:20:59 +0100 | |
---|---|---|
committer | 2017-11-01 16:20:59 +0100 | |
commit | c31f4f32c5de7d264bb7d8840b8213098404b91a (patch) | |
tree | 33624bbfb86a2f3823a776d85a702f090315eab2 | |
parent | update Manifest (diff) | |
download | mschiff-c31f4f32c5de7d264bb7d8840b8213098404b91a.tar.gz mschiff-c31f4f32c5de7d264bb7d8840b8213098404b91a.tar.bz2 mschiff-c31f4f32c5de7d264bb7d8840b8213098404b91a.zip |
dev-db/couchdb: added new ebuild
Package-Manager: Portage-2.3.13, Repoman-2.3.4
Manifest-Sign-Key: 0xCA3E7BF67F979BE5
-rw-r--r-- | dev-db/couchdb/Manifest | 25 | ||||
-rw-r--r-- | dev-db/couchdb/couchdb-2.1.0.ebuild | 91 | ||||
-rw-r--r-- | dev-db/couchdb/files/10_gentoo.ini | 7 | ||||
-rw-r--r-- | dev-db/couchdb/files/couchdb.conf-2.1.0 | 8 | ||||
-rw-r--r-- | dev-db/couchdb/files/couchdb.init-2.1.0 | 20 | ||||
-rw-r--r-- | dev-db/couchdb/metadata.xml | 7 |
6 files changed, 158 insertions, 0 deletions
diff --git a/dev-db/couchdb/Manifest b/dev-db/couchdb/Manifest new file mode 100644 index 0000000..0065668 --- /dev/null +++ b/dev-db/couchdb/Manifest @@ -0,0 +1,25 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX 10_gentoo.ini 131 SHA256 ee6f0151c2cba3bb7ae473c184e50e8160edcc6984a30d77959fb48112919414 SHA512 a6e331a7a9af8e8218364f92fe297f1877e7b976395c1f164af07b5e1dfe122aa9e329e57122ad4389a5eda287ec45f234c6361e017c48752896d3d89d7dc99c WHIRLPOOL a14cffa8e2f0dfb2b7164df09ba5ad8d019e8ca2eeb1b900d1659eb8d710148bed12fba34e5d75014b972fef7f7d4cfb3c09575fb87387d4c2544fd83e41ad82 +AUX couchdb.conf-2.1.0 208 SHA256 3d9b56a025cd0fe4599465e0a611a37b836f1ecf0cd767a19fcb7907d9f6956a SHA512 e665fb29ee3f8bf2966dd407a0f918a9e61a46a5ef0e5e14150d829f517653ab7693287278f3e621439d1b8baf80428f785b3270d470702a3bb2986fa3044771 WHIRLPOOL d6e8fc0e50904feab6c1d96ff4edb9d3f1fa2d8203502c92ae24b7bc76b1821d52cec013c6d112df8870f1a498816934b39e0b7630bcb1ade53a8f9e9996be84 +AUX couchdb.init-2.1.0 484 SHA256 81e325c9bdd060f7a2ecb780ed7d023fd6d8511972e2c6540cf00c49b7a870ba SHA512 2d98f7aa0f718c3e7bae523d3a97c2bb61c5064a82b78e779bb562abad60fcd1f277bb160754a8af6b5dce7d6a8b0390bfcd880b97da874b6a7a63874a22e4b2 WHIRLPOOL 679a52a5af08509ede6f33611c554fd68ba0d8f970940e7c55f6a92e5c57d2f43d0a80969f9920047a66ae4abf77e817899c8117a8f7a6a9279eb3c03987aba5 +DIST apache-couchdb-2.1.0.tar.gz 12276350 SHA256 eb1fbf746cd4bce2322389983e4d174c78e1520435578bff1507bb51c96a8825 SHA512 8c5f9fea852ae59bf5d6d23b1eaa68df5554660e4cfe918e9465772e964e2e5e24a7db1ee803adf7af16549b8c6445127ce4a7a65b7ee85510661ae1582ca8da WHIRLPOOL 7ee6dcbfdeda1d4926b24c1d093a7b9e9988e683ec49725446196b71c083c7df24b6f48b21ce8d5b1d02d4e772c0df3541d90f850d5f89acb7d780d66cd18169 +EBUILD couchdb-2.1.0.ebuild 1998 SHA256 e660130fa9561643ee06496bd82479bc85a45c4783ead7878f53f34dbdab3387 SHA512 e44a2dae3e52e061e7d77c9736fd3b60a6cf489c6efd6a25349a71f645b1447d0b1b96b6e57f71e8368e302ae4be090935e48d495eaff604ef11003eb6ac9d6e WHIRLPOOL ccf60de38dabb9400687036e71d8cb804ade17224b7b640e6e99c786da478837545b5eb25f530182790dec939082178a518a091f50200158ec5ec04767e80ee8 +MISC metadata.xml 212 SHA256 061538b4837ab7b95b652299476a75942b769652dbd569225713fdf1166b1d37 SHA512 e4f4b6dbbf6bf039ff5c19bb6a209ad4e0b1286f8cf7cc0cbafcc04fcf93fb92766c8cae06ff19f980a069c7fe9a1686437ab215f84ce10e301275ae107d00bd WHIRLPOOL bb35c86572b2ad56bf93b52f6eca6bea0f5591c1a9ebd608833dea63c89d4bd36cd402a8ffc2d5fdc1d7e1d5466782d1e37dfcac14fae0bbb181029799728fa5 +-----BEGIN PGP SIGNATURE----- + +iQIzBAEBCAAdFiEE7ERu+XFCdT2IzYy5nVnT9oiR5F8FAln55lQACgkQnVnT9oiR +5F/SWw/7BzVxwJiLUPF8nDl+eQ9gRQTFkR4Y14qCNiY1Ani2hC8nsjN1EX1v8EMk +Vn6J1Q6Zsp1tuJWPS7hMSdVjT5L90oY+vs7avKWwXwUDfdVaJucWU4KaSu7TqSXk +O47VHCpEm0WYy9ZR8ceIDHWM01y4BG/JL2Vcll+L/kKNTKgYK0eUfJVeUWDJzL7R +pb9hFCy6ty2eid3jzop6Uk0e++m5pAzA2oypnRVy5dJAgOx0v9FF5RBkOcIF0D6B +70RVBGZqEwYbrUkx/Km7JMS2VPLets9FaXA0CPAuPy1FNpDBuLcxJf3XhDt7IkL/ +MC1VUbS6FEUxq0yb1k3J0/031QlMFqtmiif6pkumHFpodThLcrxzY9zKBeE8Dhvh +XlitKZHL3HyIlYf+ymqa1B3GfWv2bteSXdbFpXv5KziYz4GZ/3rGgQ5Y4QhjLOZD +kCzEbs90Ohmi5dSV0CTqbCpGJdPucJf6f1x14h0cWk1RZipdTQnvZSNsWOXzBI+u +P2l4i4k4r1OdShXp5ubzGwfVqfbzD8SCQzg/MXeSQz1caq4dE+0zrwB3X5SRxmo8 +oRCMysRk0ZWc5tTRoHp0PJmV26tDPIu3alORXDJWUl9ZO5rBeYtkMTPVLwKYZPgF +o1/SET/ibS+J1tCHxkLZ9HyUiAr+4T8CvEMwtMqmXyIToqsp6Ts= +=Vdhk +-----END PGP SIGNATURE----- diff --git a/dev-db/couchdb/couchdb-2.1.0.ebuild b/dev-db/couchdb/couchdb-2.1.0.ebuild new file mode 100644 index 0000000..ae012a4 --- /dev/null +++ b/dev-db/couchdb/couchdb-2.1.0.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib pax-utils user + +DESCRIPTION="Distributed, fault-tolerant and schema-free document-oriented database" +HOMEPAGE="https://couchdb.apache.org/" +SRC_URI="mirror://apache/couchdb/source/${PV}/apache-${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="libressl selinux test" + +RDEPEND=">=dev-libs/icu-4.3.1:= + <dev-lang/erlang-19[ssl] + ~dev-lang/spidermonkey-1.8.5 + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl ) + net-misc/curl + selinux? ( sec-policy/selinux-couchdb ) + sys-process/psmisc +" + +DEPEND="${RDEPEND} + >=dev-util/rebar-2.6.0 + <dev-util/rebar-3.0.0 + sys-devel/autoconf-archive +" + +RESTRICT=test + +S="${WORKDIR}/apache-${P}" + +pkg_setup() { + enewgroup couchdb + enewuser couchdb -1 -1 /var/lib/couchdb couchdb +} + +src_configure() { + econf \ + --with-erlang="${EPREFIX}"/usr/$(get_libdir)/erlang/usr/include \ + --with-js-lib="${EPREFIX}"/usr/$(get_libdir) \ + --with-curl \ + --user=couchdb +} + +src_compile() { + emake release +} + +src_test() { + emake distcheck +} + +src_install() { + mkdir -p "${D}/opt" + cp -a "${S}/rel/couchdb" "${D}/opt/" + + keepdir /var/l{ib,og}/couchdb + + fowners couchdb:couchdb \ + /var/lib/couchdb \ + /var/log/couchdb + + for f in "${ED}"/opt/couchdb/etc/*.d; do + fowners root:couchdb "${f#${ED}}" + fperms 0750 "${f#${ED}}" + done + for f in "${ED}"/opt/couchdb/etc/*.ini; do + fowners root:couchdb "${f#${ED}}" + fperms 0440 "${f#${ED}}" + done + insinto /opt/couchdb/etc/default.d + insopts -m0640 -oroot -gcouchdb + doins "${FILESDIR}/10_gentoo.ini" + + # link etc dir for to /etc for convenience + dosym ../opt/couchdb/etc /etc/couchdb + + newinitd "${FILESDIR}/couchdb.init-2.1.0" couchdb + newconfd "${FILESDIR}/couchdb.conf-2.1.0" couchdb + + rm "${ED}/opt/couchdb/bin/couchdb.cmd" + + # bug 442616 + pax-mark mr "/opt/couchdb/bin/couchjs" + pax-mark mr "/opt/couchdb/lib/couch-${PV}/priv/couchjs" +} diff --git a/dev-db/couchdb/files/10_gentoo.ini b/dev-db/couchdb/files/10_gentoo.ini new file mode 100644 index 0000000..efcf6a6 --- /dev/null +++ b/dev-db/couchdb/files/10_gentoo.ini @@ -0,0 +1,7 @@ +[couchdb] +database_dir = /var/lib/couchdb +view_index_dir = /var/lib/couchdb + +[log] +writer = file +file = /var/log/couchdb/couch.log diff --git a/dev-db/couchdb/files/couchdb.conf-2.1.0 b/dev-db/couchdb/files/couchdb.conf-2.1.0 new file mode 100644 index 0000000..d517470 --- /dev/null +++ b/dev-db/couchdb/files/couchdb.conf-2.1.0 @@ -0,0 +1,8 @@ +# Options for CouchDB + +COUCHDB_USER="couchdb:couchdb" +COUCHDB_PID_FILE="/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-2.1.0 b/dev-db/couchdb/files/couchdb.init-2.1.0 new file mode 100644 index 0000000..8b45c0c --- /dev/null +++ b/dev-db/couchdb/files/couchdb.init-2.1.0 @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +pidfile=${COUCHDB_PID_FILE} +command=${EXEC:-/opt/couchdb/bin/couchdb} +command_args="-o /dev/null -e /dev/null ${COUCHDB_OPTIONS}" +start_stop_daemon_args="--background --make-pidfile --user ${COUCHDB_USER}" + +depend() { + need net +} + +start_pre() { + checkpath -q -d -m 0755 -o ${COUCHDB_USER} /run/couchdb +} + +stop_post() { + killall -u ${COUCHDB_USER%:*} epmd +} diff --git a/dev-db/couchdb/metadata.xml b/dev-db/couchdb/metadata.xml new file mode 100644 index 0000000..37f6a30 --- /dev/null +++ b/dev-db/couchdb/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>djc@gentoo.org</email> +</maintainer> +</pkgmetadata> |