Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/netdata/
Date: Tue, 27 Mar 2018 21:23:27
Message-Id: 1522185795.d1c28ec3ef77e41ad04295155b6809e52e9c52a5.candrews@gentoo
1 commit: d1c28ec3ef77e41ad04295155b6809e52e9c52a5
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 27 21:22:35 2018 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 27 21:23:15 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1c28ec3
7
8 net-analyzer/netdata: 1.10.0 version bump
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 net-analyzer/netdata/Manifest | 1 +
13 net-analyzer/netdata/netdata-1.10.0.ebuild | 107 +++++++++++++++++++++++++++++
14 2 files changed, 108 insertions(+)
15
16 diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest
17 index e3fc1c50317..63eefb3104e 100644
18 --- a/net-analyzer/netdata/Manifest
19 +++ b/net-analyzer/netdata/Manifest
20 @@ -1,2 +1,3 @@
21 +DIST netdata-1.10.0.tar.gz 2611773 BLAKE2B ffc4bfa593e4a36785c7e09709f1063598bd337016ad858e435049c5821f44fd5f048e4e7874e06d67c7e59234f6ec67a8a50fc7573f6b2f0cd768770ee2a612 SHA512 2358db818ad7d1ef6298c25d3f9d6c5a5a850f5bbe033b82cca1f3bc154055523637691417b6f2c2d4b7273b575afa0ec13e203ea7c2dd6321088a078ef05017
22 DIST netdata-1.8.0.tar.gz 2779648 BLAKE2B 537d39c3f24ec53fbc7156663cf842143c560b8f8b40647d68e3ad0772bea441a70c7550da213bb0c5d75e0a0d685f32388f95f36e1e1101a0d619f44523c9f4 SHA512 8bb21f49ce1fcf3d199eabd18f65d5005ef784b227f08cd8efe91e5cab2ae980cf0aea4bcaa3aca1dc666c10845684deca48257510ad574bd948ecd019afcdaf
23 DIST netdata-1.9.0.tar.gz 2483847 BLAKE2B 7f1bcc9cc5768a91b39c39cac04f877472d008630dfa3da97c0893c3cceeed721fb2982fce1f377267cf76e2a9ea70cca650d53bdd442e944820b0356f2700ea SHA512 d17112e2222e48a7d06704d03598e6020b6172f93a6f19e5577657fc5ffe902b8a0472f53b880552eb653e855da3e743a863db446520af008d3b75fb1b438e90
24
25 diff --git a/net-analyzer/netdata/netdata-1.10.0.ebuild b/net-analyzer/netdata/netdata-1.10.0.ebuild
26 new file mode 100644
27 index 00000000000..5bde37d06a8
28 --- /dev/null
29 +++ b/net-analyzer/netdata/netdata-1.10.0.ebuild
30 @@ -0,0 +1,107 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
36 +
37 +inherit autotools fcaps linux-info python-r1 systemd user
38 +
39 +if [[ ${PV} == *9999 ]] ; then
40 + EGIT_REPO_URI="https://github.com/firehol/${PN}.git"
41 + inherit git-r3
42 +else
43 + SRC_URI="https://github.com/firehol/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 + KEYWORDS="~amd64 ~x86"
45 +fi
46 +
47 +DESCRIPTION="Linux real time system monitoring, done right!"
48 +HOMEPAGE="https://github.com/firehol/netdata https://my-netdata.io/"
49 +
50 +LICENSE="GPL-3+ MIT BSD"
51 +SLOT="0"
52 +IUSE="caps +compression cpu_flags_x86_sse2 ipmi mysql nfacct nodejs postgres +python"
53 +REQUIRED_USE="
54 + mysql? ( python )
55 + python? ( ${PYTHON_REQUIRED_USE} )"
56 +# most unconditional dependencies are for plugins.d/charts.d.plugin:
57 +RDEPEND="
58 + >=app-shells/bash-4:0
59 + || (
60 + net-analyzer/netcat6
61 + net-analyzer/netcat
62 + )
63 + net-analyzer/tcpdump
64 + net-analyzer/traceroute
65 + net-misc/curl
66 + net-misc/wget
67 + sys-apps/util-linux
68 + virtual/awk
69 + caps? ( sys-libs/libcap )
70 + compression? ( sys-libs/zlib )
71 + ipmi? ( sys-libs/freeipmi )
72 + nfacct? (
73 + net-firewall/nfacct
74 + net-libs/libmnl
75 + )
76 + nodejs? ( net-libs/nodejs )
77 + python? (
78 + ${PYTHON_DEPS}
79 + dev-python/pyyaml[${PYTHON_USEDEP}]
80 + mysql? (
81 + || (
82 + dev-python/mysqlclient[${PYTHON_USEDEP}]
83 + dev-python/mysql-python[${PYTHON_USEDEP}]
84 + )
85 + )
86 + postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
87 + )"
88 +DEPEND="${RDEPEND}
89 + virtual/pkgconfig"
90 +
91 +: ${NETDATA_USER:=netdata}
92 +: ${NETDATA_GROUP:=netdata}
93 +
94 +FILECAPS=(
95 + 'cap_dac_read_search,cap_sys_ptrace+ep' 'usr/libexec/netdata/plugins.d/apps.plugin'
96 +)
97 +
98 +pkg_setup() {
99 + linux-info_pkg_setup
100 +
101 + enewgroup ${PN}
102 + enewuser ${PN} -1 -1 / ${PN}
103 +}
104 +
105 +src_prepare() {
106 + default
107 + eautoreconf
108 +}
109 +
110 +src_configure() {
111 + econf \
112 + --localstatedir="${EPREFIX}"/var \
113 + --with-user=${NETDATA_USER} \
114 + $(use_enable nfacct plugin-nfacct) \
115 + $(use_enable ipmi plugin-freeipmi) \
116 + $(use_enable cpu_flags_x86_sse2 x86-sse) \
117 + $(use_with compression zlib)
118 +}
119 +
120 +src_install() {
121 + default
122 +
123 + rm -rf "${D}/var/cache/netdata" || die
124 +
125 + # Remove unneeded .keep files
126 + find "${ED}" -name ".keep" -delete || die
127 +
128 + fowners -Rc ${NETDATA_USER}:${NETDATA_GROUP} /var/log/netdata
129 + fowners -Rc ${NETDATA_USER}:${NETDATA_GROUP} /var/lib/netdata
130 +
131 + fowners -Rc root:${NETDATA_GROUP} /usr/share/${PN}
132 +
133 + newinitd system/netdata-openrc ${PN}
134 + systemd_dounit system/netdata.service
135 + insinto /etc/netdata
136 + doins system/netdata.conf
137 +}