Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/newrelic-sysmond/files/, sys-apps/newrelic-sysmond/
Date: Fri, 29 Apr 2016 19:32:45
Message-Id: 1461958333.2ff69cfea8dd775cff735636c6fbf93ef4de25a6.wizardedit@gentoo
1 commit: 2ff69cfea8dd775cff735636c6fbf93ef4de25a6
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 29 17:55:36 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 29 19:32:13 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ff69cfe
7
8 sys-apps/newrelic-sysmond: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/573846
11
12 Package-Manager: portage-2.2.26
13
14 .../newrelic-sysmond/files/newrelic-sysmond.rc | 4 +-
15 .../newrelic-sysmond-1.1.2.124-r1.ebuild | 57 ++++++++++++++++++++++
16 2 files changed, 59 insertions(+), 2 deletions(-)
17
18 diff --git a/sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc b/sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc
19 index 20b7d1d..a270d70 100644
20 --- a/sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc
21 +++ b/sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc
22 @@ -1,5 +1,5 @@
23 -#!/sbin/runscript
24 -# Copyright 1999-2012 Gentoo Foundation
25 +#!/sbin/openrc-run
26 +# Copyright 1999-2016 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 # $Id$
29
30
31 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
32 new file mode 100644
33 index 0000000..06241fb
34 --- /dev/null
35 +++ b/sys-apps/newrelic-sysmond/newrelic-sysmond-1.1.2.124-r1.ebuild
36 @@ -0,0 +1,57 @@
37 +# Copyright 1999-2016 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +EAPI=6
42 +
43 +inherit user
44 +
45 +DESCRIPTION="NewRelic System Monitor"
46 +HOMEPAGE="http://www.newrelic.com/"
47 +SRC_URI="http://download.newrelic.com/server_monitor/release/${P}-linux.tar.gz"
48 +
49 +LICENSE="newrelic Apache-2.0 MIT ISC openssl GPL-2"
50 +SLOT="0"
51 +KEYWORDS="~x86 ~amd64"
52 +IUSE=""
53 +RESTRICT="strip"
54 +
55 +S="${WORKDIR}/${P}-linux"
56 +
57 +pkg_setup() {
58 + enewgroup newrelic
59 + enewuser newrelic -1 -1 -1 newrelic
60 +}
61 +
62 +src_install() {
63 + if [[ "${ARCH}" == "amd64" ]]; then
64 + NR_ARCH="x64"
65 + elif [[ "${ARCH}" == "x86" ]]; then
66 + NR_ARCH="x86"
67 + else
68 + die "Unsupported architecture (${ARCH})"
69 + fi
70 +
71 + dosbin "scripts/nrsysmond-config"
72 + newsbin "daemon/nrsysmond.${NR_ARCH}" "nrsysmond"
73 + newinitd "${FILESDIR}/newrelic-sysmond.rc" "newrelic-sysmond"
74 +
75 + keepdir "/etc/newrelic"
76 + insinto "/etc/newrelic"
77 + doins nrsysmond.cfg
78 +
79 + keepdir "/var/run/newrelic"
80 + fowners newrelic.newrelic "/var/run/newrelic"
81 + fperms 0775 "/var/run/newrelic"
82 +
83 + keepdir "/var/log/newrelic"
84 + fowners newrelic.newrelic "/var/log/newrelic"
85 + fperms 0775 "/var/log/newrelic"
86 +
87 + dodoc INSTALL.txt LICENSE.txt
88 +}
89 +
90 +pkg_postinst() {
91 + elog "Remember to set your license key via:"
92 + elog "$ nrsysmond-config --set license_key=\$YOUR_KEY"
93 +}