summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUltrabug <ultrabug@gentoo.org>2017-07-31 09:27:53 +0200
committerUltrabug <ultrabug@gentoo.org>2017-07-31 09:27:53 +0200
commitca761026cb13f3b275f1286839a7ce94317d770b (patch)
tree118b7f26ad8132052cdfaabeb464466e6bc7616e /app-admin/mms-agent/mms-agent-6.0.0.381_p1.ebuild
parentnet-dns/avahi: restore ~alpha and ~ia64 keywords (diff)
downloadgentoo-ca761026cb13f3b275f1286839a7ce94317d770b.tar.gz
gentoo-ca761026cb13f3b275f1286839a7ce94317d770b.tar.bz2
gentoo-ca761026cb13f3b275f1286839a7ce94317d770b.zip
app-admin/mms-agent: version bump
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'app-admin/mms-agent/mms-agent-6.0.0.381_p1.ebuild')
-rw-r--r--app-admin/mms-agent/mms-agent-6.0.0.381_p1.ebuild59
1 files changed, 59 insertions, 0 deletions
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..4f485765d821
--- /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
+}