summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2013-06-25 04:20:45 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2013-06-25 04:20:45 +0000
commit27f40d5a325cf5ff5f29b5407889d29e4038569d (patch)
treeebdad47360ed88582e98c5c164fb4a49f2feadf4 /dev-perl/mogilefs-server
parentHandful of eclass usage fixes. Nothing like getting our GNOME/gconf/gsettings... (diff)
downloadgentoo-2-27f40d5a325cf5ff5f29b5407889d29e4038569d.tar.gz
gentoo-2-27f40d5a325cf5ff5f29b5407889d29e4038569d.tar.bz2
gentoo-2-27f40d5a325cf5ff5f29b5407889d29e4038569d.zip
Bump.
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-perl/mogilefs-server')
-rw-r--r--dev-perl/mogilefs-server/ChangeLog11
-rw-r--r--dev-perl/mogilefs-server/files/mogilefsd-init.d-2.6629
-rw-r--r--dev-perl/mogilefs-server/files/mogstored-init.d-2.6630
-rw-r--r--dev-perl/mogilefs-server/mogilefs-server-2.670.0.ebuild99
4 files changed, 167 insertions, 2 deletions
diff --git a/dev-perl/mogilefs-server/ChangeLog b/dev-perl/mogilefs-server/ChangeLog
index e1882c164f19..4d5535b57f52 100644
--- a/dev-perl/mogilefs-server/ChangeLog
+++ b/dev-perl/mogilefs-server/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-perl/mogilefs-server
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/ChangeLog,v 1.41 2012/08/16 21:48:54 robbat2 Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/ChangeLog,v 1.42 2013/06/25 04:20:45 robbat2 Exp $
+
+*mogilefs-server-2.670.0 (25 Jun 2013)
+
+ 25 Jun 2013; Robin H. Johnson <robbat2@gentoo.org>
+ +files/mogilefsd-init.d-2.66, +files/mogstored-init.d-2.66,
+ +mogilefs-server-2.670.0.ebuild:
+ Bump.
*mogilefs-server-2.650.0 (16 Aug 2012)
diff --git a/dev-perl/mogilefs-server/files/mogilefsd-init.d-2.66 b/dev-perl/mogilefs-server/files/mogilefsd-init.d-2.66
new file mode 100644
index 000000000000..e26598c08f61
--- /dev/null
+++ b/dev-perl/mogilefs-server/files/mogilefsd-init.d-2.66
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/files/mogilefsd-init.d-2.66,v 1.1 2013/06/25 04:20:45 robbat2 Exp $
+
+NAME="mogilefsd"
+BINARY="/usr/bin/mogilefsd"
+MOGILE_UID="mogile"
+MOGILE_GID="mogile"
+
+depend() {
+ use net mysql postgresql
+ after mysql postgresql
+}
+
+start() {
+ install -o $MOGILE_UID -g $MOGILE_GID -d $(dirname $PIDFILE)
+ ebegin "Starting $NAME"
+ start-stop-daemon --chuid ${MOGILE_UID}:${MOGILE_GID} --start \
+ --pidfile ${PIDFILE} --exec ${BINARY} \
+ -- ${MOGILEFSD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping $NAME"
+ start-stop-daemon --stop --quiet --pidfile="${PIDFILE}"
+ eend $?
+}
+
+# vim: ft=gentoo-init-d:
diff --git a/dev-perl/mogilefs-server/files/mogstored-init.d-2.66 b/dev-perl/mogilefs-server/files/mogstored-init.d-2.66
new file mode 100644
index 000000000000..757820ba4e0a
--- /dev/null
+++ b/dev-perl/mogilefs-server/files/mogstored-init.d-2.66
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/files/mogstored-init.d-2.66,v 1.1 2013/06/25 04:20:45 robbat2 Exp $
+
+NAME="mogstored"
+BINARY="/usr/bin/mogstored"
+MOGILE_UID="mogile"
+MOGILE_GID="mogile"
+
+depend() {
+ use net
+ before mogilefsd
+ need mogautomount
+}
+
+start() {
+ install -o $MOGILE_UID -g $MOGILE_GID -d $(dirname $PIDFILE)
+ ebegin "Starting $NAME"
+ start-stop-daemon --start --quiet \
+ --pidfile=${PIDFILE} --exec ${BINARY} \
+ -- --daemonize --pidfile=${PIDFILE} ${MOGSTORED_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping $NAME"
+ start-stop-daemon --stop --quiet --pidfile="${PIDFILE}"
+ eend $?
+}
+
+# vim: ft=gentoo-init-d:
diff --git a/dev-perl/mogilefs-server/mogilefs-server-2.670.0.ebuild b/dev-perl/mogilefs-server/mogilefs-server-2.670.0.ebuild
new file mode 100644
index 000000000000..d6988c3112b2
--- /dev/null
+++ b/dev-perl/mogilefs-server/mogilefs-server-2.670.0.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.670.0.ebuild,v 1.1 2013/06/25 04:20:45 robbat2 Exp $
+
+EAPI=4
+
+MY_PN=MogileFS-Server
+MODULE_AUTHOR=DORMANDO
+MODULE_VERSION=${PV%0.0}
+inherit user perl-module
+
+DESCRIPTION="Server for the MogileFS distributed file system"
+HOMEPAGE="http://www.danga.com/mogilefs/ ${HOMEPAGE}"
+
+IUSE="mysql sqlite postgres"
+
+SLOT="0"
+LICENSE="|| ( Artistic GPL-2 )"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+# Upstream site recommends this,
+# but it breaks Perlbal
+# dev-perl/Perlbal-XS-HTTPHeaders
+RDEPEND="dev-perl/Net-Netmask
+ >=dev-perl/Danga-Socket-1.610.0
+ >=dev-perl/Sys-Syscall-0.220.0
+ >=dev-perl/Perlbal-1.790
+ >=dev-perl/IO-AIO-4
+ dev-perl/libwww-perl
+ >=dev-perl/MogileFS-Client-1.160.0
+ >=dev-perl/MogileFS-Utils-2.250.0
+ dev-perl/Cache-Memcached
+ mysql? ( dev-perl/DBD-mysql )
+ postgres? ( dev-perl/DBD-Pg )
+ sqlite? ( dev-perl/DBD-SQLite )"
+DEPEND="${RDEPEND}"
+
+# You need a local MySQL or Postgresql server for this
+#SRC_TEST="do"
+
+#PATCHES=( )
+
+MOGILE_USER="mogile"
+
+pkg_setup() {
+ # Warning! It is important that the uid is constant over Gentoo machines
+ # As mogilefs may be used with non-local block devices that move!
+ enewuser ${MOGILE_USER} 460 -1 -1
+}
+
+src_prepare() {
+ for f in Makefile.PL MANIFEST ; do
+ if [ -f "${S}"/${f}.orig ]; then
+ cp -f "${S}"/${f}{.orig,}
+ else
+ cp -f "${S}"/${f}{,.orig}
+ fi
+ done
+ # If we are not in a cutting edge Git source, we would prefer to not install
+ # duplicates of these.
+ sed -i -e '/directory.*mogdeps/d' "${S}"/Makefile.PL
+ sed -i -e '/^lib\/mogdeps/d' "${S}"/MANIFEST
+ mv -f "${S}/lib/mogdeps" "${S}"
+}
+
+src_compile() {
+ export MOGILE_NO_BUILTIN_DEPS=1
+ perl-module_src_compile || die "perl-module_src_compile failed"
+}
+
+src_install() {
+ export MOGILE_NO_BUILTIN_DEPS=1
+ perl-module_src_install || die "perl-module_src_install failed"
+ cd "${S}"
+
+ newconfd "${FILESDIR}"/mogilefsd-conf.d-2.16 mogilefsd
+ newinitd "${FILESDIR}"/mogilefsd-init.d-2.66 mogilefsd
+
+ newconfd "${FILESDIR}"/mogstored-conf.d-2.30 mogstored
+ newinitd "${FILESDIR}"/mogstored-init.d-2.66 mogstored
+
+ newinitd "${FILESDIR}"/mogautomount-init.d-2.50 mogautomount
+
+ diropts -m 700 -o ${MOGILE_USER}
+ keepdir /var/run/mogile
+ keepdir /var/mogdata
+ diropts -m 755 -o root
+
+ dodir /etc/mogilefs
+ insinto /etc/mogilefs
+ insopts -m 600 -o root -g ${MOGILE_USER}
+ newins "${FILESDIR}"/mogilefsd.conf-2.30 mogilefsd.conf
+ newins "${FILESDIR}"/mogstored.conf-2.16 mogstored.conf
+}
+
+pkg_postinst() {
+ chmod 640 "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
+ chown root:${MOGILE_USER} "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
+}