summaryrefslogtreecommitdiff
path: root/app-admin/mms-agent
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-admin/mms-agent
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-admin/mms-agent')
-rw-r--r--app-admin/mms-agent/Manifest7
-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, 174 insertions, 0 deletions
diff --git a/app-admin/mms-agent/Manifest b/app-admin/mms-agent/Manifest
new file mode 100644
index 000000000000..b89723703026
--- /dev/null
+++ b/app-admin/mms-agent/Manifest
@@ -0,0 +1,7 @@
+AUX mms-monitoring-agent.initd 577 BLAKE2B 2a2df2f4179a8be766897fa97b543eb2e1166714d7caa3110bac3c4c2f19294b2f0a1df9a2845058d6386d73d17edacd0d7371727271856279541e2fe6b78f55 SHA512 5d03ae75fcd08fe3d7cb40ba940b0a5e3d72a48e8adb010349d0c93153409cc7e02cb5eeb9134742e8d62fbdfaad61cdbab76c0e7395cd4ba6ec19c541a1d12f
+DIST mongodb-mms-monitoring-agent-3.7.0.212-1.linux_i386.tar.gz 2554037 BLAKE2B be5f8d64da4aade086d6487067b5ca3961752ad832d4a5ca63fcaf8db38d92eb7ff40d8704622c68e9ee6ee14d3973911c594a7d8829a407cd2d8fdc2ca23ed5 SHA512 532d1c2dee00ee2b64654f43ded1cd8b40da8401ea0edb24c81cee80a46289ebde47697c43cb3ffbf6ce3ef88e8d6b78c6ba1e0a615a7488efe1c42f1d827897
+DIST mongodb-mms-monitoring-agent-3.7.0.212-1.linux_x86_64.tar.gz 2643320 BLAKE2B 8f532f9a3ffc17a7cf9109660cde232babf8256dbeb9a0c0034e5231bd84a2ce9e5cc679306d2800baf9b642e2299a4fcd5eef3c6bdeb79ea6c2ad862a6daf7c SHA512 c4c0d10bca91485680760d25b0cd9dde2081af60fe7bd5528fea13b12676cb10bb069dab5acfac645cf56001a4579df32d34b268b99f449a59d314c6e3ffaa21
+DIST mongodb-mms-monitoring-agent-6.0.0.381-1.linux_x86_64.tar.gz 3618281 BLAKE2B 9c036707aacad3cdbaeb72817a010df5dd91c1c4160dd95dc026c77471c5a7eff7047a93c5b9097a7fc89db96c88eb2c1c83489fde7f132cb4d14ac446333634 SHA512 79366c8ec0aaa3209d7e54942a375185312c491ffc825d9bf70d1fca36b93ab819dccf12e8f1a54c8dbd24ff501a3e3547a5a453e80308d6d638e7c3cf866f9c
+EBUILD mms-agent-3.7.0.212_p1.ebuild 1505 BLAKE2B 8339ce11955f18b83215d992c8d6ac9d963f49ae000dd9661b57c3c1195a6dc243a26769d97fae80baa6c2172899f6f098b5948dca8f573446047682581b9fec SHA512 04098333aa796f7c7de91ba4f9707bb00bf54c902562dde7dfcea34b3d0534c93cc2c314aa08fea8b346c3db899511f708ff3dcb0bca82731e477a9e559767b1
+EBUILD mms-agent-6.0.0.381_p1.ebuild 1282 BLAKE2B 685f9f590f4445af2cd262f8758345d1775d691733247bc1f99c61c6e9c11b9a2c554b22f88fc9a5cd3312f1029ad15915845869c6b3ff1279c309e290fcdea6 SHA512 90cfeb0f2f965a2a2814a28024cd4ccd91d0172dce9679335f195584259dd052b24e83feda90193b4d6237e2fb2be73e15d1fa5199dc2fbc359fd907433fddc8
+MISC metadata.xml 405 BLAKE2B ede71b3fd6b42c475b1f03b3fee1a715ef25c016645231b863fc3c6bdb7cb9b6a0c9d0ccedcd940198666ac6124f5037e918df2c9a315a588015b7ccd68b74b6 SHA512 1f2c0cf7a01e344fb2cf327b9a6619ca6e9d67e6a6e7e1a191b86a788f11826e72e0f2b96333e1270c91e2692d0733ad0fb64671d8d778b236f9c1b00d7a55b2
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
+}