summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentfredric@gmail.com>2016-03-13 05:27:07 +1300
committerAndreas K. Hüttel <dilfridge@gentoo.org>2016-03-15 00:06:37 +0100
commit0499e08973625afca52fd525e5cf2352fc17b193 (patch)
treebfc7f906bad7476b24c0d285d703abba9f7343c4 /dev-perl/MogileFS-Server
parentdev-perl/perl-tk: Remove from tree, moved to dev-perl/Tk (diff)
downloadgentoo-0499e08973625afca52fd525e5cf2352fc17b193.tar.gz
gentoo-0499e08973625afca52fd525e5cf2352fc17b193.tar.bz2
gentoo-0499e08973625afca52fd525e5cf2352fc17b193.zip
dev-perl/MogileFS-Server: Copy from dev-perl/mogilefs-server
Migrating to a name closer to upstream conventions Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-perl/MogileFS-Server')
-rw-r--r--dev-perl/MogileFS-Server/Manifest1
-rw-r--r--dev-perl/MogileFS-Server/MogileFS-Server-2.700.0-r2.ebuild98
-rw-r--r--dev-perl/MogileFS-Server/files/mogautomount-init.d-2.5022
-rw-r--r--dev-perl/MogileFS-Server/files/mogilefsd-conf.d-2.164
-rw-r--r--dev-perl/MogileFS-Server/files/mogilefsd-init.d-2.6629
-rw-r--r--dev-perl/MogileFS-Server/files/mogilefsd.conf-2.3036
-rw-r--r--dev-perl/MogileFS-Server/files/mogstored-conf.d-2.304
-rw-r--r--dev-perl/MogileFS-Server/files/mogstored-init.d-2.6630
-rw-r--r--dev-perl/MogileFS-Server/files/mogstored.conf-2.1623
-rw-r--r--dev-perl/MogileFS-Server/metadata.xml75
10 files changed, 322 insertions, 0 deletions
diff --git a/dev-perl/MogileFS-Server/Manifest b/dev-perl/MogileFS-Server/Manifest
new file mode 100644
index 00000000000..34fd0abfc88
--- /dev/null
+++ b/dev-perl/MogileFS-Server/Manifest
@@ -0,0 +1 @@
+DIST MogileFS-Server-2.70.tar.gz 199850 SHA256 686f328a4a6dacdb6c6153e7c1837875580d8437bf91ebd74ef197b1caefa7a6 SHA512 e5dd7dbfd8422d69d1ffbe9d6cf5f8845e33484a7c812fe60285c0aa17d812a5de33d1a0503972749d70fed92767eedc1119bea650712150d9d5d4e4fdbccb8f WHIRLPOOL c47a79e0002b38d605d1b4407bab886a53f818f3b664421e6e83696a2db152fb71cd093acbaecc6fc46f2bb69a43339c105d4bf566af1e834492aa4a44adedcd
diff --git a/dev-perl/MogileFS-Server/MogileFS-Server-2.700.0-r2.ebuild b/dev-perl/MogileFS-Server/MogileFS-Server-2.700.0-r2.ebuild
new file mode 100644
index 00000000000..95a79a7bab8
--- /dev/null
+++ b/dev-perl/MogileFS-Server/MogileFS-Server-2.700.0-r2.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+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.170.0
+ >=dev-perl/MogileFS-Utils-2.280.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
+}
diff --git a/dev-perl/MogileFS-Server/files/mogautomount-init.d-2.50 b/dev-perl/MogileFS-Server/files/mogautomount-init.d-2.50
new file mode 100644
index 00000000000..3275ed50eed
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogautomount-init.d-2.50
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# $Id$
+
+NAME="mogautomount"
+BINARY="/usr/bin/mogautomount"
+
+depend() {
+ use net
+ before mogstored
+}
+
+start() {
+ ebegin "Mounting MogileFS disks"
+ ${BINARY} --chmod-mountpoints
+ eend $?
+}
+
+stop() {
+ :
+}
+
+# vim: ft=gentoo-init-d:
diff --git a/dev-perl/MogileFS-Server/files/mogilefsd-conf.d-2.16 b/dev-perl/MogileFS-Server/files/mogilefsd-conf.d-2.16
new file mode 100644
index 00000000000..63efe02e0d3
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogilefsd-conf.d-2.16
@@ -0,0 +1,4 @@
+# $Id$
+PIDFILE="/var/run/mogile/mogilefsd.pid"
+MOGILEFSD_OPTS="--daemonize --pidfile=${PIDFILE}"
+# vim: ft=gentoo-conf-d:
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 00000000000..84398541c42
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogilefsd-init.d-2.66
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# $Id$
+
+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/mogilefsd.conf-2.30 b/dev-perl/MogileFS-Server/files/mogilefsd.conf-2.30
new file mode 100644
index 00000000000..dc6fbc88219
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogilefsd.conf-2.30
@@ -0,0 +1,36 @@
+# $Id$
+
+# System user
+user = mogile
+# These are set inside the Gentoo conf.d/mogilefsd
+#pidfile = /var/run/mogile/mogilefsd.pid
+#daemonize = 1
+
+# Database settings
+db_dsn = DBI:mysql:mogilefs
+db_user = mogile
+# You must insert your password here!
+db_pass = __PASSWORD__
+
+# Network settings
+#conf_port = 7001
+#listen = 10.0.0.1:7001,
+
+# Storage
+#mog_root = /mnt/mogilefs
+
+# Plugins
+#plugins = ...
+
+# Tuning knobs
+#query_jobs = 20
+#delete_jobs = 1
+#replicate_jobs = 1
+#monitor_jobs = 1
+#reaper_jobs = 1
+#min_free_space = 100
+#max_disk_age = 5
+#node_timeout = 2
+#old_repl_compat = 1
+#default_mindevcount = 2
+#no_unreachable_tracking = 1
diff --git a/dev-perl/MogileFS-Server/files/mogstored-conf.d-2.30 b/dev-perl/MogileFS-Server/files/mogstored-conf.d-2.30
new file mode 100644
index 00000000000..1d6403b58d6
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogstored-conf.d-2.30
@@ -0,0 +1,4 @@
+# $Id$
+PIDFILE="/var/run/mogile/mogstored.pid"
+MOGSTORED_OPTS=""
+# vim: ft=gentoo-conf-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 00000000000..5f48de51b75
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogstored-init.d-2.66
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# $Id$
+
+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/files/mogstored.conf-2.16 b/dev-perl/MogileFS-Server/files/mogstored.conf-2.16
new file mode 100644
index 00000000000..5cc00a8c7b8
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogstored.conf-2.16
@@ -0,0 +1,23 @@
+# $Id$
+
+# These are set inside the Gentoo conf.d/mogilefsd
+#pidfile = /var/run/mogile/mogstored.pid
+#daemonize = 1
+
+# Network settings
+#httplisten = 0.0.0.0:7500
+#mgmtlisten = 0.0.0.0:7501
+
+# Storage
+#docroot = /var/mogdata
+
+# Server type
+# Perlbal is the default
+#server = perlbal
+# But lighttpd is supported too
+#server = lighttpd
+#serverbin = /usr/sbin/lighttpd
+
+# Tuning knobs
+#max_conns = 10000
+#opt_iostat 1
diff --git a/dev-perl/MogileFS-Server/metadata.xml b/dev-perl/MogileFS-Server/metadata.xml
new file mode 100644
index 00000000000..dbd7d0f5a78
--- /dev/null
+++ b/dev-perl/MogileFS-Server/metadata.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <description>Primary Maintainer</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpan">MogileFS-Server</remote-id>
+ <remote-id type="cpan-module">Mgd</remote-id>
+ <remote-id type="cpan-module">MogPath</remote-id>
+ <remote-id type="cpan-module">MogileFS</remote-id>
+ <remote-id type="cpan-module">MogileFS::Checksum</remote-id>
+ <remote-id type="cpan-module">MogileFS::Class</remote-id>
+ <remote-id type="cpan-module">MogileFS::Config</remote-id>
+ <remote-id type="cpan-module">MogileFS::Connection::Client</remote-id>
+ <remote-id type="cpan-module">MogileFS::Connection::Mogstored</remote-id>
+ <remote-id type="cpan-module">MogileFS::Connection::Worker</remote-id>
+ <remote-id type="cpan-module">MogileFS::DevFID</remote-id>
+ <remote-id type="cpan-module">MogileFS::Device</remote-id>
+ <remote-id type="cpan-module">MogileFS::DeviceState</remote-id>
+ <remote-id type="cpan-module">MogileFS::Domain</remote-id>
+ <remote-id type="cpan-module">MogileFS::Exception</remote-id>
+ <remote-id type="cpan-module">MogileFS::FID</remote-id>
+ <remote-id type="cpan-module">MogileFS::Factory</remote-id>
+ <remote-id type="cpan-module">MogileFS::Factory::Class</remote-id>
+ <remote-id type="cpan-module">MogileFS::Factory::Device</remote-id>
+ <remote-id type="cpan-module">MogileFS::Factory::Domain</remote-id>
+ <remote-id type="cpan-module">MogileFS::Factory::Host</remote-id>
+ <remote-id type="cpan-module">MogileFS::HTTPFile</remote-id>
+ <remote-id type="cpan-module">MogileFS::Host</remote-id>
+ <remote-id type="cpan-module">MogileFS::IOStatWatch::Client</remote-id>
+ <remote-id type="cpan-module">MogileFS::IOStatWatcher</remote-id>
+ <remote-id type="cpan-module">MogileFS::ProcManager</remote-id>
+ <remote-id type="cpan-module">MogileFS::Rebalance</remote-id>
+ <remote-id type="cpan-module">MogileFS::ReplicationPolicy</remote-id>
+ <remote-id type="cpan-module">MogileFS::ReplicationPolicy::MultipleHosts</remote-id>
+ <remote-id type="cpan-module">MogileFS::ReplicationPolicy::Union</remote-id>
+ <remote-id type="cpan-module">MogileFS::ReplicationRequest</remote-id>
+ <remote-id type="cpan-module">MogileFS::Server</remote-id>
+ <remote-id type="cpan-module">MogileFS::Store</remote-id>
+ <remote-id type="cpan-module">MogileFS::Store::MySQL</remote-id>
+ <remote-id type="cpan-module">MogileFS::Store::Postgres</remote-id>
+ <remote-id type="cpan-module">MogileFS::Store::SQLite</remote-id>
+ <remote-id type="cpan-module">MogileFS::Test</remote-id>
+ <remote-id type="cpan-module">MogileFS::Util</remote-id>
+ <remote-id type="cpan-module">MogileFS::Worker</remote-id>
+ <remote-id type="cpan-module">MogileFS::Worker::Delete</remote-id>
+ <remote-id type="cpan-module">MogileFS::Worker::Fsck</remote-id>
+ <remote-id type="cpan-module">MogileFS::Worker::JobMaster</remote-id>
+ <remote-id type="cpan-module">MogileFS::Worker::Monitor</remote-id>
+ <remote-id type="cpan-module">MogileFS::Worker::Query</remote-id>
+ <remote-id type="cpan-module">MogileFS::Worker::Reaper</remote-id>
+ <remote-id type="cpan-module">MogileFS::Worker::Replicate</remote-id>
+ <remote-id type="cpan-module">Mogstored::ChildProcess</remote-id>
+ <remote-id type="cpan-module">Mogstored::ChildProcess::DiskUsage</remote-id>
+ <remote-id type="cpan-module">Mogstored::ChildProcess::IOStat</remote-id>
+ <remote-id type="cpan-module">Mogstored::FIDStatter</remote-id>
+ <remote-id type="cpan-module">Mogstored::HTTPServer</remote-id>
+ <remote-id type="cpan-module">Mogstored::HTTPServer::Apache</remote-id>
+ <remote-id type="cpan-module">Mogstored::HTTPServer::Lighttpd</remote-id>
+ <remote-id type="cpan-module">Mogstored::HTTPServer::None</remote-id>
+ <remote-id type="cpan-module">Mogstored::HTTPServer::Perlbal</remote-id>
+ <remote-id type="cpan-module">Mogstored::SideChannelClient</remote-id>
+ <remote-id type="cpan-module">Mogstored::SideChannelListener</remote-id>
+ <remote-id type="cpan-module">Mogstored::TaskQueue</remote-id>
+ <remote-id type="cpan-module">MogstoredHandle</remote-id>
+ <remote-id type="cpan-module">ProcessHandle</remote-id>
+ <remote-id type="cpan-module">TrackerHandle</remote-id>
+ </upstream>
+</pkgmetadata>