summaryrefslogtreecommitdiff
path: root/net-fs/glusterfs
diff options
context:
space:
mode:
Diffstat (limited to 'net-fs/glusterfs')
-rw-r--r--net-fs/glusterfs/Manifest5
-rw-r--r--net-fs/glusterfs/files/glusterfs-2.0.0_rc1.confd3
-rwxr-xr-xnet-fs/glusterfs/files/glusterfs-2.0.0_rc1.initd27
-rw-r--r--net-fs/glusterfs/files/glusterfs-2.0.0_rc7-docdir.patch18
-rw-r--r--net-fs/glusterfs/glusterfs-2.0.0_rc7.ebuild114
5 files changed, 167 insertions, 0 deletions
diff --git a/net-fs/glusterfs/Manifest b/net-fs/glusterfs/Manifest
index 6d7e25a..f5d3f9d 100644
--- a/net-fs/glusterfs/Manifest
+++ b/net-fs/glusterfs/Manifest
@@ -1,4 +1,9 @@
AUX glusterfs-1.3.10.confd 101 RMD160 02d71bc7c20ff30f38ebd4bfd0c7d62a94fc8227 SHA1 931e7757a6acccab7a1346d15fec52db0e9e26b9 SHA256 97e3d0d2a656500737856988b1b83107c34c41876d4f4ee4f5d87a25b0bdf648
AUX glusterfs-1.3.10.initd 582 RMD160 a131ee39466e9fb44c2a786740255590a504af36 SHA1 188de5457e1b57179d797843feafb7e595984ad1 SHA256 c451a5dcd64a9a26c79e7c1c813750746d19c3e2e032b899a423b9bd8d42fe62
+AUX glusterfs-2.0.0_rc1.confd 101 RMD160 02d71bc7c20ff30f38ebd4bfd0c7d62a94fc8227 SHA1 931e7757a6acccab7a1346d15fec52db0e9e26b9 SHA256 97e3d0d2a656500737856988b1b83107c34c41876d4f4ee4f5d87a25b0bdf648
+AUX glusterfs-2.0.0_rc1.initd 581 RMD160 c0a69bbea6b5d84d8c3838a218a66cbaeaa5c309 SHA1 186f57dafe02546293ed4189bf17796a42617d56 SHA256 186c083a79c3e5473079997750fe7cc3842c990e70999078c0c0acdec4abef16
+AUX glusterfs-2.0.0_rc7-docdir.patch 715 RMD160 d68186f6f5e5405224766396824899f5686dfc62 SHA1 4db26b6bdd4a04baf8367576b6ac23f31972cf90 SHA256 087c3bb2bbca86297201cf502c6c68ff773ada7236f763efac984b729882946c
DIST glusterfs-2.0.0rc1.tar.gz 1396957 RMD160 a4573eb540a8768239190d12b61deac53a8ee1c8 SHA1 6c39b69b73ed6be3ecae38f7a24ff8254fa6761a SHA256 4703bfdc57b004461f65ea74b08ce22d557e033fbaf30909b3730aabbd01cf4c
+DIST glusterfs-2.0.0rc7.tar.gz 1442946 RMD160 934bbc490bb1c148330f8e97c630dcd93994ea69 SHA1 5eb25be69cfe7e90ceca489404deeedae311feed SHA256 b67045a861f8fac859f49926f1c17794d16ec8d0fa202c33929127c641366d79
EBUILD glusterfs-2.0.0_rc1.ebuild 2477 RMD160 4bacb3ef1824594b7632a0b129fa8805f80ce423 SHA1 9c1274bc9339ac739de9337e91d801212009a9fb SHA256 52c420ada4853efee53cfc49b56550c03b71858d46a89e9bf487e25bb6bf55eb
+EBUILD glusterfs-2.0.0_rc7.ebuild 3522 RMD160 77a3b0de80e8cb46e358a2f24ee5a4b6282a6752 SHA1 dd9b84b1a874fc6086d747f86f8abb0c5431ddea SHA256 09beb4514bb87fe0423f3ab6988cf8fb92275cee4a0214c617c4233a72f93fcc
diff --git a/net-fs/glusterfs/files/glusterfs-2.0.0_rc1.confd b/net-fs/glusterfs/files/glusterfs-2.0.0_rc1.confd
new file mode 100644
index 0000000..1a441ea
--- /dev/null
+++ b/net-fs/glusterfs/files/glusterfs-2.0.0_rc1.confd
@@ -0,0 +1,3 @@
+CONF_FILE=/etc/glusterfs/${SVCNAME}.vol
+LOG_FILE=/var/log/glusterfs/${SVCNAME}.log
+LOG_LEVEL=WARNING
diff --git a/net-fs/glusterfs/files/glusterfs-2.0.0_rc1.initd b/net-fs/glusterfs/files/glusterfs-2.0.0_rc1.initd
new file mode 100755
index 0000000..f833a30
--- /dev/null
+++ b/net-fs/glusterfs/files/glusterfs-2.0.0_rc1.initd
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+
+PID_FILE=/var/run/${SVCNAME}.pid
+EXECUTABLE=`which glusterfsd`
+
+depend() {
+ before glusterfs-client
+}
+
+start() {
+ if [ -z "${CONF_FILE}" -o ! -f "${CONF_FILE}" -o -z "${LOG_FILE}" -o -z "${LOG_LEVEL}" ]; then
+ eerror "Please specify all params in /etc/conf.d/${SVCNAME}"
+ return 1
+ fi
+
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --exec ${EXECUTABLE} --start -- \
+ -f "${CONF_FILE}" --pidfile=${PID_FILE} \
+ -l "${LOG_FILE}" -L "${LOG_LEVEL}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --pidfile ${PID_FILE} --stop
+ eend $?
+}
diff --git a/net-fs/glusterfs/files/glusterfs-2.0.0_rc7-docdir.patch b/net-fs/glusterfs/files/glusterfs-2.0.0_rc7-docdir.patch
new file mode 100644
index 0000000..ce4797f
--- /dev/null
+++ b/net-fs/glusterfs/files/glusterfs-2.0.0_rc7-docdir.patch
@@ -0,0 +1,18 @@
+--- doc/examples/Makefile.am.orig 2009-01-23 03:57:06.000000000 -0600
++++ doc/examples/Makefile.am 2009-01-23 03:58:14.000000000 -0600
+@@ -1,7 +1,6 @@
+ EXTRA = README unify.vol afr.vol stripe.vol protocol-client.vol protocol-server.vol posix-locks.vol trash.vol write-behind.vol io-threads.vol io-cache.vol read-ahead.vol filter.vol trace.vol
+ EXTRA_DIST = $(EXTRA)
+
+-docdir = $(datadir)/doc/$(PACKAGE_NAME)
+ Examplesdir = $(docdir)/examples
+ Examples_DATA = $(EXTRA)
+
+--- extras/Makefile.am.orig 2009-01-23 04:01:18.000000000 -0600
++++ extras/Makefile.am 2009-01-23 04:01:54.000000000 -0600
+@@ -1,5 +1,3 @@
+-
+-docdir = $(datadir)/doc/glusterfs/
+ EditorModedir = $(docdir)/
+ EditorMode_DATA = glusterfs-mode.el
+
diff --git a/net-fs/glusterfs/glusterfs-2.0.0_rc7.ebuild b/net-fs/glusterfs/glusterfs-2.0.0_rc7.ebuild
new file mode 100644
index 0000000..4d8d6d9
--- /dev/null
+++ b/net-fs/glusterfs/glusterfs-2.0.0_rc7.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvs/lportage/net-fs/glusterfs/glusterfs-2.0.0_rc7.ebuild,v 1.1 2009-05-11 19:58:56 randomdan Exp $
+
+EAPI="2"
+
+inherit autotools eutils versionator
+
+DESCRIPTION="GlusterFS is a powerful network/cluster filesystem"
+HOMEPAGE="http://www.gluster.org/"
+
+SLOT="0"
+MY_PV="$(replace_version_separator '_' '')"
+MY_PV_2="$(get_version_component_range "1-2")"
+MY_PV_3="$(get_version_component_range "1-3")"
+MY_P="${PN}-${MY_PV}"
+SRC_URI="http://europe.gluster.org/${PN}/${MY_PV_2}/${MY_PV_3}/${MY_P}.tar.gz"
+LICENSE="GPL-3"
+
+KEYWORDS="~amd64 ~ppc ~ppc64"
+IUSE="berkdb doc examples fuse -apache2 -infiniband"
+
+# Currently in @system
+# kernel_FreeBSD? ( sys-freebsd/freebsd-libexec )
+
+COMMON_DEPEND="
+ berkdb? ( >=sys-libs/db-4.6.21 )
+ fuse? ( >=sys-fs/fuse-2.7.0 )
+ apache2? ( >=www-servers/apache-2.2 )
+ infiniband? ( sys-cluster/libibverbs )
+"
+# Currently in @system
+# sys-devel/bison
+# sys-devel/flex
+DEPEND="${COMMON_DEPEND}"
+# Disabled
+RDEPEND="${COMMON_DEPEND}"
+
+RESTRICT="mirror"
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-2.0.0_rc7-docdir.patch"
+ #epatch "${FILESDIR}/${PN}-2.0.0_rc1-run-and-log-directories.patch"
+
+ if ! use doc; then
+ ebegin "Applying sed remove-guides-from-Makefile.am-patch"
+ sed -i -e '/SUBDIRS =/s/ [a-z]*\-guide//g' \
+ doc/Makefile.am \
+ || die "sed remove-guides-from-Makefile.am-patch"
+ eend 0
+ fi
+
+ if ! use examples; then
+ ebegin "Applying sed remove-examples-from-Makefile.am-patch"
+ sed -i -e '/SUBDIRS =/s/ examples//' \
+ doc/Makefile.am \
+ || die "sed remove-examples-from-Makefile.am-patch"
+ eend 0
+ fi
+
+ eautoreconf || die "eautoreconf failed"
+}
+
+src_configure() {
+ local myconf="
+ $(use_enable berkdb bdb)
+ $(use_enable fuse fuse-client)
+ $(use_enable fuse libglusterfsclient)
+ $(use_enable apache2 mod_glusterfs)
+ $(use_enable infiniband ibverbs)
+ "
+
+ econf --config-cache --disable-static ${myconf} \
+ --localstatedir=/var --docdir=/usr/share/doc/${PF}
+}
+
+src_compile() {
+ # Parallel make workaround
+ cd "${S}/libglusterfs" && emake -j1 || die "emake failed"
+ cd "${S}" && emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" LIBTOOLFLAGS="--quiet" -j1 install || die "emake install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README THANKS || die "dodoc failed"
+
+ newinitd "${FILESDIR}/${PN}-2.0.0_rc1.initd" "${PN}" || die "newinitd failed"
+ newconfd "${FILESDIR}/${PN}-2.0.0_rc1.confd" "${PN}" || die "newconfd failed"
+
+ keepdir /var/log/${PN} || die "keepdir failed"
+}
+
+pkg_postinst() {
+ elog "The glusterfs startup script can be multiplexed."
+ elog "The default startup script uses /etc/conf.d/glusterfs to configure the"
+ elog "separate service. To create additional instances of the glusterfs service"
+ elog "simply create a symlink to the glusterfs startup script that is prefixed"
+ elog "with \"glusterfs.\""
+ elog
+ elog "Example:"
+ elog " # cd /etc/init.d"
+ elog " # ln -s glusterfs glusterfs.client"
+ elog "You can now treat glusterfs.client like any other service"
+ echo
+ elog "You can mount exported GlusterFS filesystems through /etc/fstab instead of"
+ elog "through a startup script instance. For more information visit:"
+ elog "http://www.gluster.org/docs/index.php/Mounting_a_GlusterFS_Volume"
+ echo
+ ewarn "You need to use a ntp client to keep the clocks synchronized across all"
+ ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
+ ewarn "run GlusterFS."
+}