inherit eutils autotools git-2 python flag-o-matic EAPI=4 PYTHON_DEPEND="python? 2" DESCRIPTION="Elliptics network is a fault tolerant key/value storage without dedicated metadata servers" HOMEPAGE="http://www.ioremap.net/projects/elliptics" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="fastcgi python" RDEPEND="dev-libs/openssl fastcgi? ( dev-libs/fcgi ) >=net-misc/elliptics-eblob-0.13.9 python? ( dev-libs/boost[python] ) dev-libs/libevent" # dev-libs/libatomic DEPEND="${RDEPEND}" EGIT_COMMIT="ecdad0d52dee3b712daf142458506038e7503585" EGIT_REPO_URI="http://www.ioremap.net/archive/elliptics/elliptics.git" ewarn "use 'http_proxy=\"\" emerge elliptics' to avoid proxying of git protocol" pkg_setup() { enewgroup elliptics enewuser elliptics -1 -1 /dev/null elliptics } src_prepare(){ eautoreconf } src_configure(){ use python && filter-ldflags -Wl,--as-needed econf \ --with-libatomic-path=/dev/null \ $(use_with python boost) } src_install(){ emake install DESTDIR="${D}" || die use fastcgi && example/fcgi/lighttpd-fastcgi-elliptics.conf dodoc doc/design_notes.txt \ doc/io_storage_backend.txt \ example/EXAMPLE \ example/ioserv.conf # init script stuff newinitd "${FILESDIR}"/elliptics.initd elliptics || die newconfd "${FILESDIR}"/elliptics.confd elliptics || die # tune default config sed -i 's#log = /dev/stderr#log = syslog#' ${S}/example/ioserv.conf sed -i 's#root = /tmp/root#root = /var/spool/elliptics#' ${S}/example/ioserv.conf sed -i 's#daemon = 0#daemon = 1#' ${S}/example/ioserv.conf sed -i 's#history = /tmp/history#history = /var/run/elliptics#' ${S}/example/ioserv.conf # configs insinto /etc/elliptics doins "${S}/example/ioserv.conf" keepdir /var/{spool,run}/elliptics fowners elliptics:elliptics /var/{spool,run}/elliptics fperms 0750 /var/{spool,run}/elliptics }