summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-04-29 12:55:36 -0500
committerAustin English <wizardedit@gentoo.org>2016-04-29 14:32:13 -0500
commit2ff69cfea8dd775cff735636c6fbf93ef4de25a6 (patch)
tree5dc1c4746ca395cef98c954ebf3cf210dd54218e /sys-apps
parentsys-apps/nca: remove nca-0.9.0 (diff)
downloadgentoo-2ff69cfea8dd775cff735636c6fbf93ef4de25a6.tar.gz
gentoo-2ff69cfea8dd775cff735636c6fbf93ef4de25a6.tar.bz2
gentoo-2ff69cfea8dd775cff735636c6fbf93ef4de25a6.zip
sys-apps/newrelic-sysmond: use #!/sbin/openrc-run instead of #!/sbin/runscript
Gentoo-Bug: https://bugs.gentoo.org/573846 Package-Manager: portage-2.2.26
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc4
-rw-r--r--sys-apps/newrelic-sysmond/newrelic-sysmond-1.1.2.124-r1.ebuild57
2 files changed, 59 insertions, 2 deletions
diff --git a/sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc b/sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc
index 20b7d1d6ca15..a270d70d7352 100644
--- a/sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc
+++ b/sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
diff --git a/sys-apps/newrelic-sysmond/newrelic-sysmond-1.1.2.124-r1.ebuild b/sys-apps/newrelic-sysmond/newrelic-sysmond-1.1.2.124-r1.ebuild
new file mode 100644
index 000000000000..06241fbd115d
--- /dev/null
+++ b/sys-apps/newrelic-sysmond/newrelic-sysmond-1.1.2.124-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+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"
+}