summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexys Jacob <ultrabug@gentoo.org>2011-08-02 08:47:32 +0000
committerAlexys Jacob <ultrabug@gentoo.org>2011-08-02 08:47:32 +0000
commitbae404956ccb26d05ce431f6572814f70abda181 (patch)
tree757e6bb2568beec6af85a34bfbcb3000e02a129a /sys-cluster/moosefs
parentversion bump (diff)
downloadgentoo-2-bae404956ccb26d05ce431f6572814f70abda181.tar.gz
gentoo-2-bae404956ccb26d05ce431f6572814f70abda181.tar.bz2
gentoo-2-bae404956ccb26d05ce431f6572814f70abda181.zip
Add mfs CGI server init script. drop old.
(Portage version: 2.1.10.9/cvs/Linux x86_64)
Diffstat (limited to 'sys-cluster/moosefs')
-rw-r--r--sys-cluster/moosefs/ChangeLog9
-rw-r--r--sys-cluster/moosefs/files/mfscgiserver.confd9
-rwxr-xr-xsys-cluster/moosefs/files/mfscgiserver.initd21
-rw-r--r--sys-cluster/moosefs/moosefs-1.6.20-r2.ebuild (renamed from sys-cluster/moosefs/moosefs-1.6.20-r1.ebuild)6
4 files changed, 43 insertions, 2 deletions
diff --git a/sys-cluster/moosefs/ChangeLog b/sys-cluster/moosefs/ChangeLog
index f5f48a2265fb..36ac0caa1197 100644
--- a/sys-cluster/moosefs/ChangeLog
+++ b/sys-cluster/moosefs/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-cluster/moosefs
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/moosefs/ChangeLog,v 1.2 2011/07/08 15:29:35 ultrabug Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/moosefs/ChangeLog,v 1.3 2011/08/02 08:47:31 ultrabug Exp $
+
+*moosefs-1.6.20-r2 (02 Aug 2011)
+
+ 02 Aug 2011; Ultrabug <ultrabug@gentoo.org> -moosefs-1.6.20-r1.ebuild,
+ +moosefs-1.6.20-r2.ebuild, +files/mfscgiserver.confd,
+ +files/mfscgiserver.initd:
+ Add mfs CGI server init script. drop old.
*moosefs-1.6.20-r1 (08 Jul 2011)
diff --git a/sys-cluster/moosefs/files/mfscgiserver.confd b/sys-cluster/moosefs/files/mfscgiserver.confd
new file mode 100644
index 000000000000..ae93c54f4f94
--- /dev/null
+++ b/sys-cluster/moosefs/files/mfscgiserver.confd
@@ -0,0 +1,9 @@
+# MooseFS HTTP/CGI server configuration.
+
+# BIND_HOST: local address to listen on
+# default: any
+BIND_HOST="0.0.0.0"
+
+# BIND_PORT: port to listen on
+# default: 9425
+BIND_PORT=9425
diff --git a/sys-cluster/moosefs/files/mfscgiserver.initd b/sys-cluster/moosefs/files/mfscgiserver.initd
new file mode 100755
index 000000000000..13d033de7cd5
--- /dev/null
+++ b/sys-cluster/moosefs/files/mfscgiserver.initd
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+
+PIDFILE=/var/run/mfscgiserv.pid
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting mfs CGI server"
+ start-stop-daemon --start --quiet --exec /usr/sbin/mfscgiserv \
+ --pidfile "${PIDFILE}" --make-pidfile --background \
+ -- -H ${BIND_HOST} -P ${BIND_PORT} -f
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping mfs CGI server"
+ start-stop-daemon --stop -q --pidfile "${PIDFILE}"
+ eend $?
+}
diff --git a/sys-cluster/moosefs/moosefs-1.6.20-r1.ebuild b/sys-cluster/moosefs/moosefs-1.6.20-r2.ebuild
index 1d21150c5b00..f1c6e7b48ccf 100644
--- a/sys-cluster/moosefs/moosefs-1.6.20-r1.ebuild
+++ b/sys-cluster/moosefs/moosefs-1.6.20-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/moosefs/moosefs-1.6.20-r1.ebuild,v 1.1 2011/07/08 15:29:35 ultrabug Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/moosefs/moosefs-1.6.20-r2.ebuild,v 1.1 2011/08/02 08:47:31 ultrabug Exp $
EAPI=4
@@ -51,6 +51,10 @@ src_install() {
newinitd "${FILESDIR}/mfs.initd" mfs
newconfd "${FILESDIR}/mfs.confd" mfs
+ if use cgi; then
+ newinitd "${FILESDIR}/mfscgiserver.initd" mfscgiserver
+ newconfd "${FILESDIR}/mfscgiserver.confd" mfscgiserver
+ fi
chown -R mfs:mfs "${D}/var/lib/mfs" || die
chmod 750 "${D}/var/lib/mfs" || die