summaryrefslogtreecommitdiff
path: root/app-admin/mms-agent
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/mms-agent')
-rw-r--r--app-admin/mms-agent/Manifest9
-rw-r--r--app-admin/mms-agent/files/mms-monitoring-agent.initd24
-rw-r--r--app-admin/mms-agent/metadata.xml14
-rw-r--r--app-admin/mms-agent/mms-agent-3.7.0.212_p1.ebuild70
-rw-r--r--app-admin/mms-agent/mms-agent-6.0.0.381_p1.ebuild59
5 files changed, 176 insertions, 0 deletions
diff --git a/app-admin/mms-agent/Manifest b/app-admin/mms-agent/Manifest
new file mode 100644
index 000000000000..5fcde676b18d
--- /dev/null
+++ b/app-admin/mms-agent/Manifest
@@ -0,0 +1,9 @@
+AUX mms-monitoring-agent.initd 577 SHA256 015d406a198a508fa64334d56b478b17a514f05e5a88fe5f875c22cff807dc61 SHA512 5d03ae75fcd08fe3d7cb40ba940b0a5e3d72a48e8adb010349d0c93153409cc7e02cb5eeb9134742e8d62fbdfaad61cdbab76c0e7395cd4ba6ec19c541a1d12f WHIRLPOOL 36d47066eb910a6d839d95b6909f03145463a06899c91dc9b3295df507358c12d241b6e93ca076784638fdbca0542dd21d8258c62ba41d6343986f507a0d951c
+DIST mongodb-mms-monitoring-agent-3.7.0.212-1.linux_i386.tar.gz 2554037 SHA256 94e6c826c3bd63205dbf42dca9830d5ed706cd0cfe8c0ea16df014e01fa7a0aa SHA512 532d1c2dee00ee2b64654f43ded1cd8b40da8401ea0edb24c81cee80a46289ebde47697c43cb3ffbf6ce3ef88e8d6b78c6ba1e0a615a7488efe1c42f1d827897 WHIRLPOOL b8a7d77a6194134cec74ac164b178cd8896bc9774ba999bed2ce71e152926fcde8ed59c1d14c369a43d6b8c5fc1e09dfb2b725f080df2401fc159141ebe949fb
+DIST mongodb-mms-monitoring-agent-3.7.0.212-1.linux_x86_64.tar.gz 2643320 SHA256 cad543f43e1e803d2af691e634369922f721430f4355027df49d39fe276b8781 SHA512 c4c0d10bca91485680760d25b0cd9dde2081af60fe7bd5528fea13b12676cb10bb069dab5acfac645cf56001a4579df32d34b268b99f449a59d314c6e3ffaa21 WHIRLPOOL 03fd70c99fd7f97a968261fe0ce4ea473b33988dd15253422fa3c9b6e536e024c3bd36d822406d86750c2ab4a4a39dfb329754bc604add664e6e0c4b185d4cda
+DIST mongodb-mms-monitoring-agent-6.0.0.381-1.linux_x86_64.tar.gz 3618281 SHA256 5474e633c5b65817482da6c303f119c89c5beb74caabf1f82adc8690c7645ad1 SHA512 79366c8ec0aaa3209d7e54942a375185312c491ffc825d9bf70d1fca36b93ab819dccf12e8f1a54c8dbd24ff501a3e3547a5a453e80308d6d638e7c3cf866f9c WHIRLPOOL f2f7baf22890a69c36ab4275c3f923b2fee4661e324bd72ea618ddce580d887c54b70db3eb3aae1d0fe74259e0365588a122b9211f09de71a801890a7a6fd654
+EBUILD mms-agent-3.7.0.212_p1.ebuild 1505 SHA256 4ff97bef297216e58d441dd2fb98694a6bbf086f31e3c511052fa0cc48ea2bc2 SHA512 04098333aa796f7c7de91ba4f9707bb00bf54c902562dde7dfcea34b3d0534c93cc2c314aa08fea8b346c3db899511f708ff3dcb0bca82731e477a9e559767b1 WHIRLPOOL f1cd8a9878a11067379c2b162fade4a0c996ea8760036e72b89d142e2e41cfece2f4f1dbc860b5cdf3094de0877cfeb07f654240eb153727630bd01a7572c7b5
+EBUILD mms-agent-6.0.0.381_p1.ebuild 1282 SHA256 a0ef2002f4e18571e5b15bd509e8b33a52ce03bf0fa06250d3b22fbc1cc422a5 SHA512 90cfeb0f2f965a2a2814a28024cd4ccd91d0172dce9679335f195584259dd052b24e83feda90193b4d6237e2fb2be73e15d1fa5199dc2fbc359fd907433fddc8 WHIRLPOOL d6290f3c4363f6339ad595121e5b84a42ace83a3354ba3b1684f886d27455e0f138cc7d5004cf71820788766e62cd2b860efd4f0f14f73d54a55d2d78b385d24
+MISC ChangeLog 3539 SHA256 1294c969ee4240122677f232a5621783b93c118093ffce92ab4e015b648cfe60 SHA512 5fd98416ec632f80045176ab78c4d86caa3a5efd41a6db0cabbb7f9df7ac55cde305a01c10f751dddde8fc8412911570d978c69ec126a3e7e88f9e6698f5cabc WHIRLPOOL cc895540e5073b17e17ba7c819566f6b8843f69b17d60fbb9051a3a83755d6a79e44b736c0d01540d95a693ef4d9beb6903ccaa3aa76945d319e5d1863b4834a
+MISC ChangeLog-2015 1300 SHA256 9aa3518cc5e198accecbd5b67ae1e26e061d984dce7022c386f0a409d8ab0bd4 SHA512 f2e21dcb71b69b9b9737cdbfd2044917bce09a3bc735d70e4e6aebb5aa5224342b5e9a051959215fafe2884ea62d6798daea4d985af9bbda9698be74dd10a8fc WHIRLPOOL 17e66411394f517f97ef53e517451eeb8ff5a461468116b48b5cebf12a074eaea360be2ed2c4ab87edaf69d96e0f80924633d97cf5bc455b978ddac6c6d59cc1
+MISC metadata.xml 405 SHA256 6ee99ed63a87826fa76206714596c540fed299f1dabd52a4bfd658a2b3d38ad6 SHA512 1f2c0cf7a01e344fb2cf327b9a6619ca6e9d67e6a6e7e1a191b86a788f11826e72e0f2b96333e1270c91e2692d0733ad0fb64671d8d778b236f9c1b00d7a55b2 WHIRLPOOL 9dd1c7901b316b54b2f906981792f0eaa6ae0081655c137f0968648ea34ac4b0700cc9eeb73df495e8e8eb62666cf70581e0831353d19bd9b1c93b05a7d9f8d3
diff --git a/app-admin/mms-agent/files/mms-monitoring-agent.initd b/app-admin/mms-agent/files/mms-monitoring-agent.initd
new file mode 100644
index 000000000000..df0a6b54badd
--- /dev/null
+++ b/app-admin/mms-agent/files/mms-monitoring-agent.initd
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+logfile=/var/log/mongodb/mms-monitoring-agent.log
+run_dir=${run_dir:-/run/mongodb}
+
+command="./mongodb-mms-monitoring-agent &>${logfile}"
+command_background="true"
+
+pidfile=${run_dir}/${SVCNAME}.pid
+user=${user:-mongodb}
+group=${group:-mongodb}
+start_stop_daemon_args="--user ${user} --group ${group}"
+
+depend() {
+ need net
+ use syslog
+}
+
+start_pre() {
+ checkpath -d -m 0750 -o "${user}":"${group}" "${run_dir}"
+ cd /opt/mms-monitoring-agent
+}
diff --git a/app-admin/mms-agent/metadata.xml b/app-admin/mms-agent/metadata.xml
new file mode 100644
index 000000000000..153f98e5eac6
--- /dev/null
+++ b/app-admin/mms-agent/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ultrabug@gentoo.org</email>
+ <name>Alexys Jacob</name>
+ </maintainer>
+ <longdescription lang="en">
+ MongoDB MMS agents collection.
+ </longdescription>
+ <use>
+ <flag name="monitoring">Install the monitoring agent</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-admin/mms-agent/mms-agent-3.7.0.212_p1.ebuild b/app-admin/mms-agent/mms-agent-3.7.0.212_p1.ebuild
new file mode 100644
index 000000000000..af3f9b652cfb
--- /dev/null
+++ b/app-admin/mms-agent/mms-agent-3.7.0.212_p1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils user
+
+MY_PV=${PV/_p/-}
+
+DESCRIPTION="MongoDB MMS agents"
+HOMEPAGE="http://mms.mongodb.com"
+SRC_URI="
+ monitoring? (
+ amd64? ( https://mms.mongodb.com/download/agent/monitoring/mongodb-mms-monitoring-agent-${MY_PV}.linux_x86_64.tar.gz )
+ x86? ( https://mms.mongodb.com/download/agent/monitoring/mongodb-mms-monitoring-agent-${MY_PV}.linux_i386.tar.gz )
+ )
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+monitoring"
+
+REQUIRED_USE="|| ( monitoring )"
+
+RDEPEND="!<dev-db/mongodb-3.0.0[mms-agent]"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ enewgroup mongodb
+ enewuser mongodb -1 -1 /var/lib/${PN} mongodb
+}
+
+src_install() {
+ if use amd64; then
+ local arch="x86_64"
+ else
+ local arch="i386"
+ fi
+
+ if use monitoring; then
+ local MY_PN="mms-monitoring-agent"
+ local MY_D="/opt/${MY_PN}"
+
+ pushd "${S}/mongodb-mms-monitoring-agent-${MY_PV}.linux_${arch}"
+
+ insinto ${MY_D}
+ doins mongodb-mms-monitoring-agent
+ fperms +x "${MY_D}"/mongodb-mms-monitoring-agent
+
+ insinto /etc
+ doins monitoring-agent.config
+ rm monitoring-agent.config
+ dosym ../../etc/monitoring-agent.config ${MY_D}/monitoring-agent.config
+
+ fowners -R mongodb:mongodb ${MY_D}
+ newinitd "${FILESDIR}/${MY_PN}.initd" ${MY_PN}
+
+ popd
+ fi
+}
+
+pkg_postinst() {
+ if use monitoring; then
+ elog "MMS Monitoring Agent configuration file :"
+ elog " /etc/monitoring-agent.config"
+ fi
+}
diff --git a/app-admin/mms-agent/mms-agent-6.0.0.381_p1.ebuild b/app-admin/mms-agent/mms-agent-6.0.0.381_p1.ebuild
new file mode 100644
index 000000000000..e597d7f41fee
--- /dev/null
+++ b/app-admin/mms-agent/mms-agent-6.0.0.381_p1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils user
+
+MY_PV=${PV/_p/-}
+
+DESCRIPTION="MongoDB MMS agents"
+HOMEPAGE="http://cloud.mongodb.com"
+SRC_URI="
+ monitoring? (
+ https://cloud.mongodb.com/download/agent/monitoring/mongodb-mms-monitoring-agent-${MY_PV}.linux_x86_64.tar.gz
+ )
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+monitoring"
+
+REQUIRED_USE="|| ( monitoring )"
+
+RDEPEND="!<dev-db/mongodb-3.0.0[mms-agent]"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/mongodb-mms-monitoring-agent-${MY_PV}.linux_x86_64"
+
+pkg_setup() {
+ enewgroup mongodb
+ enewuser mongodb -1 -1 /var/lib/${PN} mongodb
+}
+
+src_install() {
+ if use monitoring; then
+ local MY_PN="mms-monitoring-agent"
+ local MY_D="/opt/${MY_PN}"
+
+ insinto ${MY_D}
+ doins mongodb-mms-monitoring-agent
+ fperms +x "${MY_D}"/mongodb-mms-monitoring-agent
+
+ insinto /etc
+ doins monitoring-agent.config
+ rm monitoring-agent.config
+ dosym ../../etc/monitoring-agent.config ${MY_D}/monitoring-agent.config
+
+ fowners -R mongodb:mongodb ${MY_D}
+ newinitd "${FILESDIR}/${MY_PN}.initd" ${MY_PN}
+ fi
+}
+
+pkg_postinst() {
+ if use monitoring; then
+ elog "MMS Monitoring Agent configuration file :"
+ elog " /etc/monitoring-agent.config"
+ fi
+}