1 |
commit: d4ad69535bb8eea0f3043db48de819b3899d61e8 |
2 |
Author: Julian Ospald <hasufell <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 2 15:16:35 2015 +0000 |
4 |
Commit: Julian Ospald <hasufell <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 2 15:16:35 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4ad6953 |
7 |
|
8 |
dev-db/couchdb: add libressl support |
9 |
|
10 |
dev-db/couchdb/couchdb-1.6.1-r2.ebuild | 77 ++++++++++++++++++++++++++++++++++ |
11 |
1 file changed, 77 insertions(+) |
12 |
|
13 |
diff --git a/dev-db/couchdb/couchdb-1.6.1-r2.ebuild b/dev-db/couchdb/couchdb-1.6.1-r2.ebuild |
14 |
new file mode 100644 |
15 |
index 0000000..e100d6b |
16 |
--- /dev/null |
17 |
+++ b/dev-db/couchdb/couchdb-1.6.1-r2.ebuild |
18 |
@@ -0,0 +1,77 @@ |
19 |
+# Copyright 1999-2015 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+# $Id$ |
22 |
+ |
23 |
+EAPI=5 |
24 |
+ |
25 |
+inherit eutils multilib pax-utils user |
26 |
+ |
27 |
+DESCRIPTION="Apache CouchDB is a distributed, fault-tolerant and schema-free document-oriented database." |
28 |
+HOMEPAGE="http://couchdb.apache.org/" |
29 |
+SRC_URI="mirror://apache/couchdb/source/${PV}/apache-${P}.tar.gz" |
30 |
+ |
31 |
+LICENSE="Apache-2.0" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~amd64 ~ppc ~x86" |
34 |
+IUSE="libressl selinux test" |
35 |
+ |
36 |
+RDEPEND=">=dev-libs/icu-4.3.1:= |
37 |
+ dev-lang/erlang[ssl] |
38 |
+ !libressl? ( >=dev-libs/openssl-0.9.8j:0 ) |
39 |
+ libressl? ( dev-libs/libressl ) |
40 |
+ >=net-misc/curl-7.18.2 |
41 |
+ <dev-lang/spidermonkey-1.8.7 |
42 |
+ selinux? ( sec-policy/selinux-couchdb )" |
43 |
+ |
44 |
+DEPEND="${RDEPEND}" |
45 |
+RESTRICT=test |
46 |
+ |
47 |
+S="${WORKDIR}/apache-${P}" |
48 |
+ |
49 |
+pkg_setup() { |
50 |
+ enewgroup couchdb |
51 |
+ enewuser couchdb -1 -1 /var/lib/couchdb couchdb |
52 |
+} |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ sed -i ./src/couchdb/priv/Makefile.* -e 's|-Werror||g' |
56 |
+ epatch "${FILESDIR}/${PV}-erlang-18.patch" |
57 |
+} |
58 |
+ |
59 |
+src_configure() { |
60 |
+ econf \ |
61 |
+ --with-erlang="${EPREFIX}"/usr/$(get_libdir)/erlang/usr/include \ |
62 |
+ --localstatedir="${EPREFIX}"/var \ |
63 |
+ --with-js-lib="${EPREFIX}"/usr/$(get_libdir) |
64 |
+ # bug 296609, upstream bug #COUCHDB-621 |
65 |
+ sed -e "s#localdocdir = /usr/share/doc/couchdb#localdocdir = "${EPREFIX}"/usr/share/doc/${PF}#" -i Makefile || die "sed failed" |
66 |
+} |
67 |
+ |
68 |
+src_compile() { |
69 |
+ emake |
70 |
+ # bug 442616 |
71 |
+ pax-mark mr src/couchdb/priv/couchjs |
72 |
+} |
73 |
+ |
74 |
+src_test() { |
75 |
+ emake distcheck |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ emake DESTDIR="${D}" install |
80 |
+ |
81 |
+ fowners couchdb:couchdb \ |
82 |
+ /var/lib/couchdb \ |
83 |
+ /var/log/couchdb |
84 |
+ |
85 |
+ for f in "${ED}"/etc/couchdb/*.ini ; do |
86 |
+ fowners root:couchdb "${f#${ED}}" |
87 |
+ fperms 660 "${f#${ED}}" |
88 |
+ done |
89 |
+ fperms 664 /etc/couchdb/default.ini |
90 |
+ |
91 |
+ newinitd "${FILESDIR}/couchdb.init-4" couchdb |
92 |
+ newconfd "${FILESDIR}/couchdb.conf-2" couchdb |
93 |
+ |
94 |
+ sed -i -e "s:LIBDIR:$(get_libdir):" "${ED}/etc/conf.d/couchdb" |
95 |
+} |