diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-admin/mms-agent | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-admin/mms-agent')
-rw-r--r-- | app-admin/mms-agent/Manifest | 2 | ||||
-rw-r--r-- | app-admin/mms-agent/files/mms-monitoring-agent.initd | 25 | ||||
-rw-r--r-- | app-admin/mms-agent/metadata.xml | 21 | ||||
-rw-r--r-- | app-admin/mms-agent/mms-agent-3.6.0.201_p1.ebuild | 71 |
4 files changed, 119 insertions, 0 deletions
diff --git a/app-admin/mms-agent/Manifest b/app-admin/mms-agent/Manifest new file mode 100644 index 00000000000..c6319e41de4 --- /dev/null +++ b/app-admin/mms-agent/Manifest @@ -0,0 +1,2 @@ +DIST mongodb-mms-monitoring-agent-3.6.0.201-1.linux_i386.tar.gz 2553004 SHA256 c63e230b3ca831e3b5b946b73b90f3b5f643dfb78342a6f98917810a45d5f0c0 SHA512 e9497afb09c41de287b7c834ae4ac06623ac157e2c81c5f05aaf185dfc6beb3951a2261460c3217cd98de23c3f1513f5613ed51c6d0235a673062b50b72a3e61 WHIRLPOOL 29251dc975a247611c9711cf894ce43cd1fe35cc50f4a1f91d23c514119803dd2e12c100e990311b87b64b779cce4a1c95e13c4cef7248f4f2b52403e6ffd59d +DIST mongodb-mms-monitoring-agent-3.6.0.201-1.linux_x86_64.tar.gz 2641790 SHA256 5701e21e1243ddd2c4922251d207fbbfa5d6f328c30a9735818691d105459e75 SHA512 b73b3bb0042a13822c54b2af7b3933b9d43b4d4582206acbe6f64476b35b385ee89071f2691c2ecf1f80d8fb52fffc7010b7e9009ee8939c48c54d60b57153e7 WHIRLPOOL fb68a95b861a2bda67cdfe561249b9c73d70d4b0c120735c6118e54c9e69e7938c312b72441b21b2c6ea12d120bcfceee539de46e33fdfeef9db351fcab2c8b2 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 00000000000..76d58aca1c7 --- /dev/null +++ b/app-admin/mms-agent/files/mms-monitoring-agent.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 00000000000..480394a2675 --- /dev/null +++ b/app-admin/mms-agent/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>ultrabug@gentoo.org</email> + <name>Alexys Jacob</name> + </maintainer> + <maintainer> + <email>bugs@bergstroem.nu</email> + <name>Johan Bergström</name> + <description>Proxy Maintainer. CC on bugs</description> + </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.6.0.201_p1.ebuild b/app-admin/mms-agent/mms-agent-3.6.0.201_p1.ebuild new file mode 100644 index 00000000000..81440188c59 --- /dev/null +++ b/app-admin/mms-agent/mms-agent-3.6.0.201_p1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +} |