From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- sys-apps/newrelic-sysmond/Manifest | 1 + .../newrelic-sysmond/files/newrelic-sysmond.rc | 24 +++++++++ sys-apps/newrelic-sysmond/metadata.xml | 8 +++ .../newrelic-sysmond-1.1.2.124.ebuild | 57 ++++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 sys-apps/newrelic-sysmond/Manifest create mode 100644 sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc create mode 100644 sys-apps/newrelic-sysmond/metadata.xml create mode 100644 sys-apps/newrelic-sysmond/newrelic-sysmond-1.1.2.124.ebuild (limited to 'sys-apps/newrelic-sysmond') 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 @@ + + + + + maintainer-needed@gentoo.org + + NewRelic System Monitor + 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" +} -- cgit v1.2.3-65-gdbad