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 /sys-apps/newrelic-sysmond | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
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 'sys-apps/newrelic-sysmond')
-rw-r--r-- | sys-apps/newrelic-sysmond/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc | 24 | ||||
-rw-r--r-- | sys-apps/newrelic-sysmond/metadata.xml | 8 | ||||
-rw-r--r-- | sys-apps/newrelic-sysmond/newrelic-sysmond-1.1.2.124.ebuild | 57 |
4 files changed, 90 insertions, 0 deletions
diff --git a/sys-apps/newrelic-sysmond/Manifest b/sys-apps/newrelic-sysmond/Manifest new file mode 100644 index 000000000000..7950ed38dcdc --- /dev/null +++ b/sys-apps/newrelic-sysmond/Manifest @@ -0,0 +1 @@ +DIST newrelic-sysmond-1.1.2.124-linux.tar.gz 2177939 SHA256 b77424b5dd98d38537503cfe49d772e9a8c220f436d87682010f03b5d3950b46 SHA512 beda4b9c3fc089a9cd836790a074f886a65980ee7b471d9e5fb54f56f369ef69172f00661962ae57482f2bffbc84bb27f9484dc01ca7b6a3b5d9a4ad7cf8c4b6 WHIRLPOOL 4ab79112c13f7fd00c28f0237ea6453694cf01d5d1ca9c145d4ffc6d152306febfb5108cb8a692b7a3c0906b0b957fbd115b998ca91adf3140f7a059bd6e9f0a diff --git a/sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc b/sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc new file mode 100644 index 000000000000..20b7d1d6ca15 --- /dev/null +++ b/sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use net +} + +start() { + ebegin "Starting NewRelic System Monitor" + start-stop-daemon --start \ + --user newrelic \ + --exec /usr/sbin/nrsysmond -- \ + -c /etc/newrelic/nrsysmond.cfg \ + -p /var/run/newrelic/nrsysmond.pid + eend $? +} + +stop() { + ebegin "Stopping NewRelic System Monitor" + start-stop-daemon --stop --pidfile /var/run/newrelic/nrsysmond.pid + eend $? +} diff --git a/sys-apps/newrelic-sysmond/metadata.xml b/sys-apps/newrelic-sysmond/metadata.xml new file mode 100644 index 000000000000..4b139df1fa91 --- /dev/null +++ b/sys-apps/newrelic-sysmond/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription>NewRelic System Monitor</longdescription> +</pkgmetadata> diff --git a/sys-apps/newrelic-sysmond/newrelic-sysmond-1.1.2.124.ebuild b/sys-apps/newrelic-sysmond/newrelic-sysmond-1.1.2.124.ebuild new file mode 100644 index 000000000000..33d232cdae3b --- /dev/null +++ b/sys-apps/newrelic-sysmond/newrelic-sysmond-1.1.2.124.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit user + +DESCRIPTION="NewRelic System Monitor" +HOMEPAGE="http://www.newrelic.com/" +SRC_URI="http://download.newrelic.com/server_monitor/release/${P}-linux.tar.gz" + +LICENSE="newrelic Apache-2.0 MIT ISC openssl GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +RESTRICT="strip" + +S="${WORKDIR}/${P}-linux" + +pkg_setup() { + enewgroup newrelic + enewuser newrelic -1 -1 -1 newrelic +} + +src_install() { + if [[ "${ARCH}" == "amd64" ]]; then + NR_ARCH="x64" + elif [[ "${ARCH}" == "x86" ]]; then + NR_ARCH="x86" + else + die "Unsupported architecture (${ARCH})" + fi + + dosbin "scripts/nrsysmond-config" + newsbin "daemon/nrsysmond.${NR_ARCH}" "nrsysmond" + newinitd "${FILESDIR}/newrelic-sysmond.rc" "newrelic-sysmond" + + keepdir "/etc/newrelic" + insinto "/etc/newrelic" + doins nrsysmond.cfg + + keepdir "/var/run/newrelic" + fowners newrelic.newrelic "/var/run/newrelic" + fperms 0775 "/var/run/newrelic" + + keepdir "/var/log/newrelic" + fowners newrelic.newrelic "/var/log/newrelic" + fperms 0775 "/var/log/newrelic" + + dodoc INSTALL.txt LICENSE.txt +} + +pkg_postinst() { + elog "Remember to set your license key via:" + elog "$ nrsysmond-config --set license_key=\$YOUR_KEY" +} |