diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-11-19 10:19:50 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-11-19 10:19:50 +0000 |
commit | 20d8e9cfb95a9f054d654ab6405e848807186aa0 (patch) | |
tree | 8a308cb480d00fd37d0189950e04f7d59004954f /dev-perl/MogileFS-Server | |
parent | a5956e0a0daddcad648e0d8d8e5cb3e49e09bda7 (diff) |
gentoo resync : 19.11.2017
Diffstat (limited to 'dev-perl/MogileFS-Server')
3 files changed, 263 insertions, 0 deletions
diff --git a/dev-perl/MogileFS-Server/Manifest b/dev-perl/MogileFS-Server/Manifest index 8b345dbad165..69334ab23c89 100644 --- a/dev-perl/MogileFS-Server/Manifest +++ b/dev-perl/MogileFS-Server/Manifest @@ -1,3 +1,4 @@ +AUX MogileFS-Server-2.720.0-gentoo-init-conf.patch 3945 SHA256 38005ba3afb24497add4d9b48b38f2709537805b1caba8434a7c3054a1daca8b SHA512 e8a294dcea44a25f2128d199b3e202a799ed4fc8716ae1e99606ccee900a8d1ecb4a5dff7a5369038bf936bc40fcb2e0dae104a1a0d4415eb49dfbd47aa69a09 WHIRLPOOL 5a4c3a02d5da0769e184a09153ecb0c2a73bcb7e63679ea1f9b53e419065cbe6e4db5d5e54ef4f4d23752fcc3bbf6099c466b514846649e889a683cbeb649d24 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 @@ -7,7 +8,9 @@ AUX mogstored-init.d-2.66 538 SHA256 18a25f05172d2ade558cd20518943f11e8cc77a3646 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 +DIST MogileFS-Server-2.72.tar.gz 200057 SHA256 d7d5a45d50127bf62e451c6d86eb247103b01c46662898ae4e18daa08be8e0bf SHA512 4076ba33123c984f9d7c56db7d308b4d857e852caa8d811d86ed551b9ab74a6dfc93b034d034ec2802376035799860c613aef2bdd3898c1225e37727fda34ade WHIRLPOOL 1bb22dd7701d885268416556bec8c37f1f7cadcadcec50c27ecebd84c8222626eeb018d6d72f6ce2aeb985d3bbf9f625d9561a3109ef443c82a35faf15dce083 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 +EBUILD MogileFS-Server-2.720.0.ebuild 1968 SHA256 33c77b90166590ebbe11ba60643376a9674768bf9c01fa711d26aab770d4ca31 SHA512 d3ca5d3fd403635974729c2bd980def63293f193bc5e57f6d311fff7045ef57104921b64a10ca043a3271b763b10d9e700b4d96a6923dd0f678ff587e0ab7b28 WHIRLPOOL 883bc79afc5af4eb60017021ff464f82bba4c2af772167e48173f15fcb49b36be5a152a4c712b312c2a288de6835df8808b3151c6d3acb8ccbb1afa087f3b626 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.720.0.ebuild b/dev-perl/MogileFS-Server/MogileFS-Server-2.720.0.ebuild new file mode 100644 index 000000000000..70b6fe87e18b --- /dev/null +++ b/dev-perl/MogileFS-Server/MogileFS-Server-2.720.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=DORMANDO +DIST_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}" + +PATCHES=( + "${FILESDIR}/${P}-gentoo-init-conf.patch" +) +DIST_TEST="do" + +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_install() { + perl-module_src_install || die "perl-module_src_install failed" + cd "${S}" + + newconfd "${S}"/gentoo/conf.d/mogilefsd mogilefsd + newinitd "${S}"/gentoo/init.d/mogilefsd mogilefsd + + newconfd "${S}"/gentoo/conf.d/mogstored mogstored + newinitd "${S}"/gentoo/init.d/mogstored mogstored + + newinitd "${S}"/gentoo/init.d/mogautomount mogautomount + + diropts -m 700 -o ${MOGILE_USER} + keepdir /var/mogdata + + diropts -m 755 -o root + dodir /etc/mogilefs + + insinto /etc/mogilefs + insopts -m 600 -o root -g ${MOGILE_USER} + newins "${S}"/gentoo/conf/mogilefsd.conf mogilefsd.conf + newins "${S}"/gentoo/conf/mogstored.conf 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/MogileFS-Server-2.720.0-gentoo-init-conf.patch b/dev-perl/MogileFS-Server/files/MogileFS-Server-2.720.0-gentoo-init-conf.patch new file mode 100644 index 000000000000..7a90e5c5d793 --- /dev/null +++ b/dev-perl/MogileFS-Server/files/MogileFS-Server-2.720.0-gentoo-init-conf.patch @@ -0,0 +1,184 @@ +diff --git a/gentoo/conf.d/mogilefsd b/gentoo/conf.d/mogilefsd +new file mode 100644 +index 0000000..b6968d1 +--- /dev/null ++++ b/gentoo/conf.d/mogilefsd +@@ -0,0 +1,3 @@ ++PIDFILE="/var/run/mogile/mogilefsd.pid" ++MOGILEFSD_OPTS="--daemonize --pidfile=${PIDFILE}" ++# vim: ft=gentoo-conf-d: +diff --git a/gentoo/conf.d/mogstored b/gentoo/conf.d/mogstored +new file mode 100644 +index 0000000..aa3cb63 +--- /dev/null ++++ b/gentoo/conf.d/mogstored +@@ -0,0 +1,3 @@ ++PIDFILE="/var/run/mogile/mogstored.pid" ++MOGSTORED_OPTS="" ++# vim: ft=gentoo-conf-d: +diff --git a/gentoo/conf/mogilefsd.conf b/gentoo/conf/mogilefsd.conf +new file mode 100644 +index 0000000..df50e23 +--- /dev/null ++++ b/gentoo/conf/mogilefsd.conf +@@ -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/gentoo/conf/mogstored.conf b/gentoo/conf/mogstored.conf +new file mode 100644 +index 0000000..100a8c3 +--- /dev/null ++++ b/gentoo/conf/mogstored.conf +@@ -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/gentoo/init.d/mogautomount b/gentoo/init.d/mogautomount +new file mode 100644 +index 0000000..f287366 +--- /dev/null ++++ b/gentoo/init.d/mogautomount +@@ -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/gentoo/init.d/mogilefsd b/gentoo/init.d/mogilefsd +new file mode 100644 +index 0000000..062568e +--- /dev/null ++++ b/gentoo/init.d/mogilefsd +@@ -0,0 +1,31 @@ ++#!/sbin/openrc-run ++ ++NAME="mogilefsd" ++BINARY="/usr/bin/mogilefsd" ++MOGILE_UID="mogile" ++MOGILE_GID="mogile" ++ ++depend() { ++ use net mysql postgresql ++ after mysql postgresql ++} ++ ++start() { ++ checkpath --directory \ ++ --owner "${MOGILE_UID}:${MOGILE_GID}" \ ++ --mode 700 \ ++ "$(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 noet: +diff --git a/gentoo/init.d/mogstored b/gentoo/init.d/mogstored +new file mode 100644 +index 0000000..d28a853 +--- /dev/null ++++ b/gentoo/init.d/mogstored +@@ -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: |