summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2010-12-07 18:25:28 +0000
committerAlexey Shvetsov <alexxy@gentoo.org>2010-12-07 18:25:28 +0000
commit05ffda80309ed7ff0f3ac024d38655cc65808fad (patch)
treead0fc5ebaa5d4adceb0bbe6c1f2d5a0b348eb441 /sys-cluster/ceph
parentVersion bump. (diff)
downloadhistorical-05ffda80309ed7ff0f3ac024d38655cc65808fad.tar.gz
historical-05ffda80309ed7ff0f3ac024d38655cc65808fad.tar.bz2
historical-05ffda80309ed7ff0f3ac024d38655cc65808fad.zip
[sys-cluster/ceph] Initial import per bug #338008
Package-Manager: portage-2.2.0_alpha7_p1/cvs/Linux x86_64
Diffstat (limited to 'sys-cluster/ceph')
-rw-r--r--sys-cluster/ceph/ChangeLog10
-rw-r--r--sys-cluster/ceph/Manifest26
-rw-r--r--sys-cluster/ceph/ceph-0.23.1.ebuild68
-rw-r--r--sys-cluster/ceph/files/ceph.confd8
-rw-r--r--sys-cluster/ceph/files/ceph.initd26
-rw-r--r--sys-cluster/ceph/metadata.xml13
6 files changed, 151 insertions, 0 deletions
diff --git a/sys-cluster/ceph/ChangeLog b/sys-cluster/ceph/ChangeLog
new file mode 100644
index 000000000000..585354243765
--- /dev/null
+++ b/sys-cluster/ceph/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-cluster/ceph
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ceph/ChangeLog,v 1.1 2010/12/07 18:25:28 alexxy Exp $
+
+*ceph-0.23.1 (07 Dec 2010)
+
+ 07 Dec 2010; Alexey Shvetsov <alexxy@gentoo.org> +ceph-0.23.1.ebuild,
+ +files/ceph.confd, +files/ceph.initd, +metadata.xml:
+ Initial import per bug #338008
+
diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest
new file mode 100644
index 000000000000..360eca08fcb0
--- /dev/null
+++ b/sys-cluster/ceph/Manifest
@@ -0,0 +1,26 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX ceph.confd 225 RMD160 9842eeb3f55453dc6ab96ebb0c4f784c56e5b9d3 SHA1 63e1670ab13e0a957da93d9ad6a17b612219bd88 SHA256 b12f53878a92b5ee70f9d827e321b641618bd267a7fa57a1e53f0ee4d5c830e8
+AUX ceph.initd 400 RMD160 58873ca15a29a81ecd64bda17749eee1ca96af01 SHA1 544beae2d460fa0a44eb4e9eb26a7bbcd96405d7 SHA256 9b957c42c3ab27e3e29f42aaae718396e14cd91256df7f959e212446d2f90618
+DIST ceph-0.23.1.tar.gz 1506941 RMD160 ee0238e3c01719711d41a696f57996a017d503ba SHA1 a4e487c2ceaf6634b70c6837f1ce926a68673958 SHA256 d42161d8f96322ee3486d30676bfa547b16d4fd2dd6b5af3554bef4e6b2514c6
+EBUILD ceph-0.23.1.ebuild 1739 RMD160 b6dac8558eb1b8e0ec124e1ec41d7e5968fdf531 SHA1 e4296503da29ddee71ceeb9f7bb68a9a1599a5ef SHA256 28ca7de363d6f38ce35885cf68b3b634b74ba469dc75ce11f292cdfe3e29ab0d
+MISC ChangeLog 394 RMD160 2af7c2cd1146ac9b1a8abf40167d5b3f225a8ee9 SHA1 1fb5460c907ea18e053da2b7ed68a88e5c7a00e7 SHA256 c0eca81ed37fe3dce569f4e52a137d0c796ef365c762d2fb3d192cd9fe98171e
+MISC metadata.xml 500 RMD160 8f9c763bbdc181f3137b7ec9072045704a7dbde4 SHA1 79483cf0de883a911745b2152b1b78ff64dcaa37 SHA256 98ecd9596f86ca204850d8c673a93f34c99e7a3eb6f55dbdf5ce56b9164d4407
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.16 (GNU/Linux)
+
+iQIcBAEBCAAGBQJM/ntmAAoJEOf+E+/4L5LmsDcP/jBrKXykAasLePVIHPN5pgDt
+4O0CYuuw7ZukD8ds9HzFk5Utcomy6L+zyGvy95NOcawAZeBbzIjjOkQm4kP0+9AK
+AyaUTXvdjrIak6AlI49+oCis8Ey619/rSoQetx5u4Gv9c6/BuJWZ/TfgoQNRdJ+u
+7i4jk6fzJ1oR10PYsJaLI006s1GPgHJnuRxonw2wnSJ/HMAXQmzBJnamv+0qThVG
+lSnEeLii8Sliabmm8oDpYBqlWJfNMsex4yCi3d+fMPHj0oBmBbCs6oNDACLLVyFI
+opFAf6ecU61y/MSzeycYQaZq29DddtSqE6ibROuq43fuXRZQfgv37JTRKjpcmbql
+73+aDqgDAdueSqcNFhHawwwmyUef+0HU5KZSfK/tmA++eG3pqLP1KsfbzaEI+S/X
+02L38un+ilMs39qdtC5Q8dYvBLvBWDQJj63cCWW721Z+TXs5qfRY1PWfu+PKATwC
+34qaXc+8dXzgkYizdH8yWm+EII1BdKUIpf2oDw4NSGs3LgTY4Bbr+aEmf2WLHyFB
+U3Ke5fG0do9dikITQ5ZW28U1a8ep3hA/li3VZlZqXOKPWZ7Zl1aNCSwq1XznkqEG
+yXyDMwlf6K1UuvS897UG0do1gpon/LOzbTJfi3bATdFP0E2ciz1jtn/IbEfTfdmL
+zu+aJc3qGqjadxdQRgt9
+=+rpz
+-----END PGP SIGNATURE-----
diff --git a/sys-cluster/ceph/ceph-0.23.1.ebuild b/sys-cluster/ceph/ceph-0.23.1.ebuild
new file mode 100644
index 000000000000..49dd62309252
--- /dev/null
+++ b/sys-cluster/ceph/ceph-0.23.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ceph/ceph-0.23.1.ebuild,v 1.1 2010/12/07 18:25:28 alexxy Exp $
+
+EAPI="3"
+
+inherit autotools eutils multilib
+
+DESCRIPTION="Ceph distributed filesystem"
+HOMEPAGE="http://ceph.newdream.net/"
+SRC_URI="http://ceph.newdream.net/download/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug fuse libatomic radosgw static-libs"
+
+CDEPEND="dev-libs/boost
+ dev-libs/libedit
+ dev-libs/openssl
+ libatomic? ( dev-libs/libatomic_ops )
+ fuse? ( sys-fs/fuse )
+ radosgw? ( dev-libs/fcgi dev-libs/expat )"
+DEPEND="${CDEPEND}
+ dev-util/pkgconfig"
+RDEPEND="${CDEPEND}
+ sys-fs/btrfs-progs"
+
+src_prepare() {
+ sed -e 's:invoke-rc\.d.*:/etc/init.d/ceph reload >/dev/null:' \
+ -i src/logrotate.conf || die
+ sed -i "/^docdir =/d" src/Makefile.am || die #fix doc path
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --without-hadoop \
+ --docdir=/usr/share/doc/${PF} \
+ $(use_with debug) \
+ $(use_with fuse) \
+ $(use_with libatomic libatomic-ops) \
+ $(use_with radosgw) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ find "${D}" -type f -name "*.la" -exec rm -f {} \;
+
+ rmdir "${D}/usr/sbin"
+
+ exeinto /usr/$(get_libdir)/ceph || die
+ newexe src/init-ceph ceph_init.sh || die
+
+ insinto /etc/logrotate.d/ || die
+ newins src/logrotate.conf ${PN} || die
+
+ chmod 644 "${D}"/usr/share/doc/${PF}/sample.* || die
+
+ keepdir /var/lib/${PN} || die
+ keepdir /var/lib/${PN}/tmp || die
+ keepdir /var/log/${PN}/stat || die
+ keepdir /var/run/${PN} || die
+
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} || die
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} || die
+}
diff --git a/sys-cluster/ceph/files/ceph.confd b/sys-cluster/ceph/files/ceph.confd
new file mode 100644
index 000000000000..1afc33560e1b
--- /dev/null
+++ b/sys-cluster/ceph/files/ceph.confd
@@ -0,0 +1,8 @@
+# These are passed as arguments to original ceph initscript
+# see also http://ceph.newdream.net/wiki/Starting_and_stopping
+
+# CEPH_COMMON=( --hostname myhost )
+
+CEPH_START=( start )
+CEPH_STOP=( stop )
+CEPH_RELOAD=( reload )
diff --git a/sys-cluster/ceph/files/ceph.initd b/sys-cluster/ceph/files/ceph.initd
new file mode 100644
index 000000000000..f56a67b162c4
--- /dev/null
+++ b/sys-cluster/ceph/files/ceph.initd
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+
+opts="reload"
+bin=/usr/lib/ceph/ceph_init.sh
+
+depend() {
+ after net
+}
+
+start() {
+ ebegin "Initializing local Ceph node"
+ $bin "${CEPH_COMMON[@]}" "${CEPH_START[@]}"
+ eend 0
+}
+
+reload() {
+ ebegin "Reloading ceph configuration"
+ $bin "${CEPH_COMMON[@]}" "${CEPH_RELOAD[@]}"
+ eend 0
+}
+
+stop() {
+ ebegin "Stopping local Ceph node"
+ $bin "${CEPH_COMMON[@]}" "${CEPH_STOP[@]}"
+ eend 0
+}
diff --git a/sys-cluster/ceph/metadata.xml b/sys-cluster/ceph/metadata.xml
new file mode 100644
index 000000000000..2eeec3696ab5
--- /dev/null
+++ b/sys-cluster/ceph/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cluster</herd>
+<longdescription>
+Ceph is a distributed network file system designed to provide excellent performance, reliability, and scalability.
+</longdescription>
+<use>
+ <flag name='fuse'>Build fuse client</flag>
+ <flag name='libatomic'>Use libatomic instead of builtin atomic operations</flag>
+ <flag name='radosgw'>Add radosgw support</flag>
+</use>
+</pkgmetadata>