/[gentoo-x86]/dev-db/couchdb/couchdb-1.4.0.ebuild
Gentoo

Contents of /dev-db/couchdb/couchdb-1.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Jun 8 13:00:42 2014 UTC (6 years, 1 month ago) by djc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove old, vulnerable versions (bug 506354)

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 30380381)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/couchdb/couchdb-1.4.0.ebuild,v 1.5 2014/02/02 10:31:24 swift Exp $
4
5 EAPI=5
6
7 inherit eutils multilib pax-utils user
8
9 DESCRIPTION="Apache CouchDB is a distributed, fault-tolerant and schema-free document-oriented database."
10 HOMEPAGE="http://couchdb.apache.org/"
11 SRC_URI="mirror://apache/couchdb/source/${PV}/apache-${P}.tar.gz"
12
13 LICENSE="Apache-2.0"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86"
16 IUSE="selinux test"
17
18 RDEPEND=">=dev-libs/icu-4.3.1
19 dev-lang/erlang[ssl]
20 >=dev-libs/openssl-0.9.8j:0
21 >=net-misc/curl-7.18.2
22 <dev-lang/spidermonkey-1.8.7
23 selinux? ( sec-policy/selinux-couchdb )"
24
25 DEPEND="${RDEPEND}"
26 RESTRICT=test
27
28 S="${WORKDIR}/apache-${P}"
29
30 pkg_setup() {
31 enewgroup couchdb
32 enewuser couchdb -1 -1 /var/lib/couchdb couchdb
33 }
34
35 src_prepare() {
36 sed -i ./src/couchdb/priv/Makefile.* -e 's|-Werror||g'
37 }
38
39 src_configure() {
40 econf \
41 --with-erlang=/usr/lib/erlang/usr/include \
42 --localstatedir=/var \
43 --with-js-lib=/usr/lib
44 # bug 296609, upstream bug #COUCHDB-621
45 sed -e "s#localdocdir = /usr/share/doc/couchdb#localdocdir = /usr/share/doc/${PF}#" -i Makefile || die "sed failed"
46 }
47
48 src_compile() {
49 emake
50 # bug 442616
51 pax-mark mr src/couchdb/priv/couchjs
52 }
53
54 src_test() {
55 emake distcheck
56 }
57
58 src_install() {
59 emake DESTDIR="${D}" install
60
61 fowners couchdb:couchdb \
62 /var/lib/couchdb \
63 /var/log/couchdb
64
65 for f in "${D}"/etc/couchdb/*.ini ; do
66 fowners root:couchdb "${f#${D}}"
67 fperms 660 "${f#${D}}"
68 done
69 fperms 664 /etc/couchdb/default.ini
70
71 newinitd "${FILESDIR}/couchdb.init-4" couchdb
72 newconfd "${FILESDIR}/couchdb.conf-2" couchdb
73
74 sed -i -e "s:LIBDIR:$(get_libdir):" "${D}/etc/conf.d/couchdb"
75 }

  ViewVC Help
Powered by ViewVC 1.1.20