summaryrefslogtreecommitdiff
path: root/dev-perl/MogileFS-Server
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-perl/MogileFS-Server
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-perl/MogileFS-Server')
-rw-r--r--dev-perl/MogileFS-Server/Manifest13
-rw-r--r--dev-perl/MogileFS-Server/MogileFS-Server-2.700.0-r2.ebuild97
-rw-r--r--dev-perl/MogileFS-Server/MogileFS-Server-2.700.0-r3.ebuild97
-rw-r--r--dev-perl/MogileFS-Server/files/mogautomount-init.d-2.5021
-rw-r--r--dev-perl/MogileFS-Server/files/mogilefsd-conf.d-2.163
-rw-r--r--dev-perl/MogileFS-Server/files/mogilefsd-init.d-2.6628
-rw-r--r--dev-perl/MogileFS-Server/files/mogilefsd.conf-2.3034
-rw-r--r--dev-perl/MogileFS-Server/files/mogstored-conf.d-2.303
-rw-r--r--dev-perl/MogileFS-Server/files/mogstored-init.d-2.6629
-rw-r--r--dev-perl/MogileFS-Server/files/mogstored-init.d-2.7029
-rw-r--r--dev-perl/MogileFS-Server/files/mogstored.conf-2.1621
-rw-r--r--dev-perl/MogileFS-Server/metadata.xml75
12 files changed, 450 insertions, 0 deletions
diff --git a/dev-perl/MogileFS-Server/Manifest b/dev-perl/MogileFS-Server/Manifest
new file mode 100644
index 000000000000..8b345dbad165
--- /dev/null
+++ b/dev-perl/MogileFS-Server/Manifest
@@ -0,0 +1,13 @@
+AUX mogautomount-init.d-2.50 240 SHA256 6d94e569458b6afdc8653f8401b4384e6ca131f06881603de611722c626dfb61 SHA512 7b39a8fe2fd2fcba5b72417ba01f043c961d03f5228d3ed350e3bcb7c7d302c51ff4fa33998cd83c22f035fb98e6f302c573ea2db600f06659e366f155b6173a WHIRLPOOL 18c07ec0d30e7cd735d45699cbb3540083220919f2fb54a32845fa08114a04e88e095c2312aabb8d59e54d5286a650566c6b3cfeb94bfe8d972b226cd178c977
+AUX mogilefsd-conf.d-2.16 115 SHA256 1e6861c5db980c986e52e752d625a89b4e64543cce45b3dd22d4ae0e6ca1fccd SHA512 89c66308988f714013578a72db1bb0c1a0b9270e243c666a163b21de7d10179d92566b8cdde6661db733834291c0f08a6ad978d69fd78d83959a223f461cc65e WHIRLPOOL a95a3011ec4010996d4e2f4d9dd3d2244479dd39e6c9e9d3e21547371c135dc28168b8806daf7536591535a2b2f43730f43f8ab52744a964c2b8f2feda056c2b
+AUX mogilefsd-init.d-2.66 537 SHA256 a57e0fc957dc1ebcbde0203889da311d5c181d98b9d69254cbecab6a379a9525 SHA512 ca1382f842b7e5077102e180c872579b2ee1b52bbb9bc2880b443b0b4e96de6aa9606c8414d272d005a7abdb128727a4fd838d026e1c919a16c930a1723f4d4a WHIRLPOOL c30875390583b7b1064b5813c68ba16a87147f652f6ac4c3a8789ecf94ac133f48f2a55d3e08ec76ec74494ed9ba39a9b1f2fbd20c75a5ecab3a430bd07b2a79
+AUX mogilefsd.conf-2.30 627 SHA256 91a2041885f0f6dc12ab4ab9fd845f2a1b8e03bf83815432361a419eb08cb195 SHA512 0eced2bb92737b8726cbd1c4151671869d7e82bda36d28e4ee7e0405648ea010c15fc83e4b18e13d64613cd885a9d2f2912a6505f3468644af57b1529f25223d WHIRLPOOL 695ad542818b2fe3d2cc9164a2649cce78a668154fbbf7226fe8b17831ca6f2b06b0ee660dc01cfba0fbc469e1534d8b927bfcdfa9725e43601ffb00806bebb5
+AUX mogstored-conf.d-2.30 83 SHA256 8bc33a6ef92aa6a95de82aa5b0b128169c2ad70da4e0fb83a70adb9112e92061 SHA512 990743c00fd4ee161132b197985272cf7a7b01d119c0b80a996aaad50b07a548ede7b028565ce37a03845838db006c312b6d0dd740a742b34cd1e57d3b0ff339 WHIRLPOOL f68bd0214a6c43d36506985913ab117d0d170028a7b6150b1a7e0502c92f2081875fe8ac7e7ce096bf0b18470d0b5371f4d96220ee0acb831e210b394c0c49a9
+AUX mogstored-init.d-2.66 538 SHA256 18a25f05172d2ade558cd20518943f11e8cc77a36467d31c120a988accd3ef7c SHA512 9c2c1e7bdbce697e0261bc69906036599c2176e0cb0a05cbbded6f8986313490d96c1a55fd5ea0edf6dca44294ddf52707f0a305619f63d757af746e43083b09 WHIRLPOOL ec7e73f7702b0fc51f1fab086ea878d5abd1cb71e5a2818e9d0b69c30e275bca25f34ecee1ac163ef775d19fe8c1a256e5cfca7b10e3f76281b7b3a97ca5a109
+AUX mogstored-init.d-2.70 545 SHA256 eb3b58e8d94f4d5fe3cd35bc218a6dbed43900576583036034d8518ddc209da9 SHA512 94939841591331880972af3562d733327265dc685f3ec66a3a094732eca4900b5feee748c8ca6df407d228befcef625377293594474a48ca3fd3e57463a8369f WHIRLPOOL 70e28e65362fc20a0500c19134d597cef4e28e948296168641324b6a8078cd7a1d40e18ba7e327b883282a6e926f173f25398702550750d3d4b114a93c0db393
+AUX mogstored.conf-2.16 406 SHA256 02907e7194c0bf618764f90876a5cfc21316604552a28f3fa986bf5affcb0905 SHA512 b4cd1ad42aad330e471932dc61a8eb72145b2a5ddc8ecf3d8fc31aa727c5f1f33e229d63cd61d8e3a83baf12c6384f095f68adcaa3dd91cf8db511f695185bd9 WHIRLPOOL 06329a1b063d0ba68514ef285d2167e1384cbfcbe89b28dda19e8e0d1e6893eac55b7f95215c5a688ef2b31ef8d36d9ba3c1662fb5fc25ca21f3151437916fa8
+DIST MogileFS-Server-2.70.tar.gz 199850 SHA256 686f328a4a6dacdb6c6153e7c1837875580d8437bf91ebd74ef197b1caefa7a6 SHA512 e5dd7dbfd8422d69d1ffbe9d6cf5f8845e33484a7c812fe60285c0aa17d812a5de33d1a0503972749d70fed92767eedc1119bea650712150d9d5d4e4fdbccb8f WHIRLPOOL c47a79e0002b38d605d1b4407bab886a53f818f3b664421e6e83696a2db152fb71cd093acbaecc6fc46f2bb69a43339c105d4bf566af1e834492aa4a44adedcd
+EBUILD MogileFS-Server-2.700.0-r2.ebuild 2587 SHA256 e1ce40dd17102bb22002f9f4ca26b3734f9b28616754c391b8a71085e001acd1 SHA512 0ccf14d92d10083ec23eda4c9e4326d184583f1071051ea1e71701916f545ae60636b1db23979c8a14b2d3a055641f4250a8841fdec022b72674fa9f2fbf5960 WHIRLPOOL 306058d63b64a2d3bd6b483a0d48c54ffbdf1d30981fadcf5ec7f2063850db01f3cf81f47ab87e6152005e45ca376c9500f814c1590f214be41f3c476f72e1bd
+EBUILD MogileFS-Server-2.700.0-r3.ebuild 2587 SHA256 ba6f6bf7ab0af3bbcc869a04c95ae6c46ab26dfea576e2d87db27917a3fbab98 SHA512 ca9644b1234d139ef27ee0c28bd47c11362ef9a0c2a64ba9995d5f897b5e4a6439836a2ad329b693b4b4c0b8d1568ce3f240b36c8240013bb8ef999b34bac5ce WHIRLPOOL ece8c2fd36d26e5403e1b9f554353f3ca2a5b114812bea6c872d6ef0d8ae937260f1c687744482d53d56ee9470c76b07fb02c3e71c67c20afbb1c5d47b098c45
+MISC ChangeLog 842 SHA256 accc4871a72c6f3d3e58f74f89f5e924612313ce585097e30654262436a64530 SHA512 c5a008c3fa5f0aeba565d6456092657be9484b03637bb1fa5d3038d0148936e272ff7387c039110e528751e080de547791e0045da532090754ec569edec5b0d0 WHIRLPOOL 4575d7631b662dec45384d296882d080544eb3907821c5b7a3a31d274282c79ddbe43f42dff1558fd5803323705025f6d9371497a63f1d9e678e4bae6ca62bf5
+MISC metadata.xml 4599 SHA256 8da6fdc27eadcfdb708c5ac6a3f7974c1aa677a4a397ecb68627c47b2baf23d3 SHA512 4e5343bda5978b9740c639c1e11b5c8a984873938a78fc1bc839930b71f8706582839c60043a8630d2f476ca601045023685370e160020dad3cf4a759390bd7d WHIRLPOOL 2a62f05826ced6c54ac44596929b6bab7d33f039e21a549e6f0698dc9cb8a683c431388c5eb069b8891163704e2bec0d688bef6a3811e281425408ba8a2eab12
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 000000000000..9479d19042cb
--- /dev/null
+++ b/dev-perl/MogileFS-Server/MogileFS-Server-2.700.0-r2.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/MogileFS-Server-2.700.0-r3.ebuild b/dev-perl/MogileFS-Server/MogileFS-Server-2.700.0-r3.ebuild
new file mode 100644
index 000000000000..31168ffc29c5
--- /dev/null
+++ b/dev-perl/MogileFS-Server/MogileFS-Server-2.700.0-r3.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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.70 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 000000000000..f28736610f4f
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogautomount-init.d-2.50
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+
+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 000000000000..b6968d1aa991
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogilefsd-conf.d-2.16
@@ -0,0 +1,3 @@
+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 000000000000..0667fedb78a5
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogilefsd-init.d-2.66
@@ -0,0 +1,28 @@
+#!/sbin/openrc-run
+
+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 000000000000..df50e2304745
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogilefsd.conf-2.30
@@ -0,0 +1,34 @@
+# 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 000000000000..aa3cb631210c
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogstored-conf.d-2.30
@@ -0,0 +1,3 @@
+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 000000000000..98e1c1b6e994
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogstored-init.d-2.66
@@ -0,0 +1,29 @@
+#!/sbin/openrc-run
+
+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-init.d-2.70 b/dev-perl/MogileFS-Server/files/mogstored-init.d-2.70
new file mode 100644
index 000000000000..d28a8536cdeb
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogstored-init.d-2.70
@@ -0,0 +1,29 @@
+#!/sbin/openrc-run
+
+NAME="mogstored"
+BINARY="/usr/bin/mogstored"
+MOGILE_UID="mogile"
+MOGILE_GID="mogile"
+
+depend() {
+ use net logger
+ 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 000000000000..100a8c3adeed
--- /dev/null
+++ b/dev-perl/MogileFS-Server/files/mogstored.conf-2.16
@@ -0,0 +1,21 @@
+# 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 000000000000..dbd7d0f5a781
--- /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>