summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2012-10-24 09:37:23 +0000
committerPatrick Lauer <patrick@gentoo.org>2012-10-24 09:37:23 +0000
commitda56c9f2b99b72a9521fccf21927499cb3d68bac (patch)
treeb199a6ef51396f4d11a74471244034b946dfddff /net-misc/elliptics
parentInitial commit, updated versions to follow (diff)
downloadhistorical-da56c9f2b99b72a9521fccf21927499cb3d68bac.tar.gz
historical-da56c9f2b99b72a9521fccf21927499cb3d68bac.tar.bz2
historical-da56c9f2b99b72a9521fccf21927499cb3d68bac.zip
Initial commit, updated versions to follow
Package-Manager: portage-2.2.0_alpha141/cvs/Linux x86_64
Diffstat (limited to 'net-misc/elliptics')
-rw-r--r--net-misc/elliptics/Manifest1
-rw-r--r--net-misc/elliptics/elliptics-2.9.6.ebuild68
-rw-r--r--net-misc/elliptics/files/elliptics.confd3
-rw-r--r--net-misc/elliptics/files/elliptics.initd35
-rw-r--r--net-misc/elliptics/metadata.xml8
5 files changed, 115 insertions, 0 deletions
diff --git a/net-misc/elliptics/Manifest b/net-misc/elliptics/Manifest
index 92b344299b72..38988c973f21 100644
--- a/net-misc/elliptics/Manifest
+++ b/net-misc/elliptics/Manifest
@@ -2,4 +2,5 @@ AUX elliptics.confd 101 SHA256 5bb9274f72e6e2063becf14f52ef512c6c8fa2727cfabb172
AUX elliptics.initd 760 SHA256 d5b43ba8c823fcbb840f4199072d92579b8546ed4136140dacd8b519e4f157a8 SHA512 476d82d29263b8f3bd3bd85ea7ad1338ee1a415bafc2e53253cd402be54ba6f976f01095a67ffc314c72eccb74b7ae873c30e3f1c48ccabc66de11b7aef57713 WHIRLPOOL 013aaefecba40d248be81de86551e7e7f557fb14b20c1cbfdbab63cc40e80fd7228272bcac02492d4312f392478f27f8d4f119686e8c8b62408c3c0e9bf446f2
DIST elliptics-2.9.6.tar.gz 504021 SHA256 fc5bcf01bcbbd91baded04063c26ecdd004da87ff529694fc1b6f8bb792be182 SHA512 4f198d577029a84eed1019aa98c9a4b0e5da937de7993d48f6318bd86cfe0ba68cf32338a90ad14ce71ae80af1aeff5401fd2a8a184687f5ecfbf76a20a64a9d WHIRLPOOL d993b132d4e11cf51c6e46609bab91ba02fa379e9c937efdfd352d0d07b5a082407c81b53a2de1643daad4c92aae49aa6b2f6e9923b6ab097ba094f838f15f49
EBUILD elliptics-2.9.6.ebuild 2020 SHA256 cb8ae4677068b13a457bb0229706f9d4fc70adc04c7c9d6cbf541c1d8496de9a SHA512 320ede03e33f8de3a265592209566f7c834ee7a50cef8d112d54218af16cfc062f42763486273ffcc1b9d22a1a4009b0a6d0a4775d245de4cb1f2566a0a60622 WHIRLPOOL 7a43609b14b160c67ea7e8d537cd88b31fa62cae3d29e34a69775bc45423229d9c48a2f0ad75c2ed469d75ac877989a57d7ac4a8461c6718d6c5a084f3967832
+MISC ChangeLog 427 SHA256 9fdaaf7263daf44ee1189c7c53ae13f7d62d89f32cc26392021557e524de25ac SHA512 2b0ced145938c958a3bf04c5385b2074ecc38e077098d8b59296b072de6c9e88b8c241e96487ec7438f356d1746548362fe8ea49c96c868b12c86754b239fc5f WHIRLPOOL 0c23f253f843ddf3d19a6467b1f0aa414abd9b1c835a4acd42024b91c25fa9151d3e50eec7278192e58b3c106eba88c6c8fc9e29057b0c3b6598c7352bb7c8e4
MISC metadata.xml 233 SHA256 65209e280ca6de32a92e1a57301ff69fb3472e55ba07848d6f80405d35e92d47 SHA512 0d30bfb39315a04767e07896409f5d3954f8e954e20fcbac7b92bb9a636c9f61c50b1b2cf55e6c1db9a199a0edc159b5c8cc8f541efb9c4adafa28e3652cff7b WHIRLPOOL 027c5101e1cbc665c9d2ef240f73a874c9f49a9b70175c5947e012df61de484585088a46b6ce9078816e548e6bcc326e7223539cc999159eee2757d0a2eb1480
diff --git a/net-misc/elliptics/elliptics-2.9.6.ebuild b/net-misc/elliptics/elliptics-2.9.6.ebuild
new file mode 100644
index 000000000000..b3ac9d9630b9
--- /dev/null
+++ b/net-misc/elliptics/elliptics-2.9.6.ebuild
@@ -0,0 +1,68 @@
+EAPI=4
+PYTHON_DEPEND="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"
+
+inherit eutils autotools python flag-o-matic
+
+KEYWORDS="~x86 ~amd64"
+IUSE="fastcgi python"
+RDEPEND="dev-libs/openssl
+ fastcgi? ( dev-libs/fcgi )
+ net-misc/elliptics-eblob
+ python? ( dev-libs/boost[python] )
+ dev-libs/libevent
+ dev-db/kyotocabinet"
+# dev-libs/libatomic
+DEPEND="${RDEPEND}"
+
+SRC_URI="http://www.ioremap.net/archive/${PN}/${P}.tar.gz"
+
+pkg_setup() {
+ enewgroup elliptics
+ enewuser elliptics -1 -1 /dev/null elliptics
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare(){
+ eautoreconf
+}
+
+src_configure(){
+ use python && filter-ldflags -Wl,--as-needed
+ econf \
+ --with-libatomic-path=/dev/null \
+ $(use_with python boost)
+ --without-eblob
+}
+
+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
+}
diff --git a/net-misc/elliptics/files/elliptics.confd b/net-misc/elliptics/files/elliptics.confd
new file mode 100644
index 000000000000..70743c00411b
--- /dev/null
+++ b/net-misc/elliptics/files/elliptics.confd
@@ -0,0 +1,3 @@
+ELLIPTICS_BIN=/usr/bin/dnet_ioserv
+ELLIPTICS_CONF=/etc/elliptics/ioserv.conf
+ELLIPTICS_USER=elliptics \ No newline at end of file
diff --git a/net-misc/elliptics/files/elliptics.initd b/net-misc/elliptics/files/elliptics.initd
new file mode 100644
index 000000000000..b18d3d27a7e7
--- /dev/null
+++ b/net-misc/elliptics/files/elliptics.initd
@@ -0,0 +1,35 @@
+#!/sbin/runscript
+
+opts="reload graceful"
+ELLIPTICS_PNAME=dnet-main
+
+depend() {
+ need net
+ use logger
+ after sshd
+}
+
+
+start() {
+ ebegin "Starting dnet_ioserv"
+ start-stop-daemon --start --user=${ELLIPTICS_USER} --exec ${ELLIPTICS_BIN} -- -c "${ELLIPTICS_CONF}"
+ eend $?
+}
+
+stop() {
+ local rv=0
+ ebegin "Stopping dnet_ioserv"
+ killall -0 ${ELLIPTICS_PNAME} && /usr/bin/killall -w ${ELLIPTICS_PNAME} || true
+ eend $?
+}
+
+reload() {
+ if ! service_started "${SVCNAME}" ; then
+ eerror "${SVCNAME} isn't running"
+ return 1
+ fi
+
+ ebegin "Re-opening dnet_ioserv log files"
+ /usr/bin/killall --signal HUP ${ELLIPTICS_PNAME}
+ eend $?
+} \ No newline at end of file
diff --git a/net-misc/elliptics/metadata.xml b/net-misc/elliptics/metadata.xml
new file mode 100644
index 000000000000..24cbb90cf0c4
--- /dev/null
+++ b/net-misc/elliptics/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+</pkgmetadata>