/[gentoo-x86]/net-misc/elliptics/elliptics-2.9.6.ebuild
Gentoo

Contents of /net-misc/elliptics/elliptics-2.9.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Jan 28 08:11:01 2013 UTC (6 years, 10 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Bump, new version has lots of differences

(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/elliptics/elliptics-2.9.6.ebuild,v 1.3 2012/10/24 16:08:29 mr_bones_ Exp $
4
5 EAPI=4
6 PYTHON_DEPEND="2"
7
8 DESCRIPTION="Elliptics network is a fault tolerant key/value storage without dedicated metadata servers"
9 HOMEPAGE="http://www.ioremap.net/projects/elliptics"
10 LICENSE="GPL-2"
11 SLOT="0"
12
13 inherit eutils autotools python flag-o-matic
14
15 KEYWORDS="~x86 ~amd64"
16 IUSE="fastcgi python"
17 RDEPEND="dev-libs/openssl
18 fastcgi? ( dev-libs/fcgi )
19 net-misc/elliptics-eblob
20 python? ( dev-libs/boost[python] )
21 dev-libs/libevent
22 dev-db/kyotocabinet"
23 # dev-libs/libatomic
24 DEPEND="${RDEPEND}"
25
26 SRC_URI="http://www.ioremap.net/archive/${PN}/${P}.tar.gz"
27
28 pkg_setup() {
29 enewgroup elliptics
30 enewuser elliptics -1 -1 /dev/null elliptics
31 python_set_active_version 2
32 python_pkg_setup
33 }
34
35 src_prepare(){
36 eautoreconf
37 }
38
39 src_configure(){
40 use python && filter-ldflags -Wl,--as-needed
41 econf \
42 --with-libatomic-path=/dev/null \
43 $(use_with python boost)
44 --without-eblob
45 }
46
47 src_install(){
48 emake install DESTDIR="${D}" || die
49 use fastcgi && example/fcgi/lighttpd-fastcgi-elliptics.conf
50 dodoc doc/design_notes.txt \
51 doc/io_storage_backend.txt \
52 example/EXAMPLE \
53 example/ioserv.conf
54
55 # init script stuff
56 newinitd "${FILESDIR}"/elliptics.initd elliptics || die
57 newconfd "${FILESDIR}"/elliptics.confd elliptics || die
58
59 # tune default config
60 sed -i 's#log = /dev/stderr#log = syslog#' ${S}/example/ioserv.conf
61 sed -i 's#root = /tmp/root#root = /var/spool/elliptics#' ${S}/example/ioserv.conf
62 sed -i 's#daemon = 0#daemon = 1#' ${S}/example/ioserv.conf
63 sed -i 's#history = /tmp/history#history = /var/run/elliptics#' ${S}/example/ioserv.conf
64
65 # configs
66 insinto /etc/elliptics
67 doins "${S}/example/ioserv.conf"
68
69 keepdir /var/{spool,run}/elliptics
70 fowners elliptics:elliptics /var/{spool,run}/elliptics
71 fperms 0750 /var/{spool,run}/elliptics
72 }

  ViewVC Help
Powered by ViewVC 1.1.20