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, 05 Nov 2019 21:35:55
Message-Id: 1572989746.69f6b72b09d9a88eae36b72133427184e0ce2e30.candrews@gentoo
1 commit: 69f6b72b09d9a88eae36b72133427184e0ce2e30
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 5 21:35:20 2019 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 5 21:35:46 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69f6b72b
7
8 net-analyzer/netdata: Cleanup old version
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
11 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
12
13 net-analyzer/netdata/netdata-1.18.1.ebuild | 128 -----------------------------
14 1 file changed, 128 deletions(-)
15
16 diff --git a/net-analyzer/netdata/netdata-1.18.1.ebuild b/net-analyzer/netdata/netdata-1.18.1.ebuild
17 deleted file mode 100644
18 index bc8756a7ec8..00000000000
19 --- a/net-analyzer/netdata/netdata-1.18.1.ebuild
20 +++ /dev/null
21 @@ -1,128 +0,0 @@
22 -# Copyright 1999-2019 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
27 -
28 -inherit autotools fcaps linux-info python-r1 systemd
29 -
30 -if [[ ${PV} == *9999 ]] ; then
31 - EGIT_REPO_URI="https://github.com/netdata/${PN}.git"
32 - inherit git-r3
33 -else
34 - SRC_URI="https://github.com/netdata/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
35 - KEYWORDS="~amd64 ~x86"
36 -fi
37 -
38 -DESCRIPTION="Linux real time system monitoring, done right!"
39 -HOMEPAGE="https://github.com/netdata/netdata https://my-netdata.io/"
40 -
41 -LICENSE="GPL-3+ MIT BSD"
42 -SLOT="0"
43 -IUSE="caps +compression cpu_flags_x86_sse2 cups +dbengine ipmi mysql nfacct nodejs postgres +python tor xen"
44 -REQUIRED_USE="
45 - mysql? ( python )
46 - python? ( ${PYTHON_REQUIRED_USE} )
47 - tor? ( python )"
48 -
49 -# most unconditional dependencies are for plugins.d/charts.d.plugin:
50 -RDEPEND="
51 - acct-group/netdata
52 - acct-user/netdata
53 - app-misc/jq
54 - >=app-shells/bash-4:0
55 - || (
56 - net-analyzer/openbsd-netcat
57 - net-analyzer/netcat
58 - )
59 - net-analyzer/tcpdump
60 - net-analyzer/traceroute
61 - net-misc/curl
62 - net-misc/wget
63 - sys-apps/util-linux
64 - virtual/awk
65 - caps? ( sys-libs/libcap )
66 - cups? ( net-print/cups )
67 - dbengine? (
68 - dev-libs/libuv
69 - app-arch/lz4
70 - dev-libs/judy
71 - dev-libs/openssl:=
72 - )
73 - compression? ( sys-libs/zlib )
74 - ipmi? ( sys-libs/freeipmi )
75 - nfacct? (
76 - net-firewall/nfacct
77 - net-libs/libmnl
78 - )
79 - nodejs? ( net-libs/nodejs )
80 - python? (
81 - ${PYTHON_DEPS}
82 - dev-python/pyyaml[${PYTHON_USEDEP}]
83 - mysql? (
84 - || (
85 - dev-python/mysqlclient[${PYTHON_USEDEP}]
86 - dev-python/mysql-python[${PYTHON_USEDEP}]
87 - )
88 - )
89 - postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
90 - tor? ( net-libs/stem[${PYTHON_USEDEP}] )
91 - )
92 - xen? (
93 - app-emulation/xen-tools
94 - dev-libs/yajl
95 - )"
96 -DEPEND="${RDEPEND}
97 - virtual/pkgconfig"
98 -
99 -FILECAPS=(
100 - 'cap_dac_read_search,cap_sys_ptrace+ep' 'usr/libexec/netdata/plugins.d/apps.plugin'
101 -)
102 -
103 -pkg_setup() {
104 - linux-info_pkg_setup
105 -}
106 -
107 -src_prepare() {
108 - default
109 - eautoreconf
110 -}
111 -
112 -src_configure() {
113 - econf \
114 - --localstatedir="${EPREFIX}"/var \
115 - --with-user=netdata \
116 - --disable-jsonc \
117 - $(use_enable cups plugin-cups) \
118 - $(use_enable dbengine) \
119 - $(use_enable nfacct plugin-nfacct) \
120 - $(use_enable ipmi plugin-freeipmi) \
121 - $(use_enable xen plugin-xenstat) \
122 - $(use_enable cpu_flags_x86_sse2 x86-sse) \
123 - $(use_with compression zlib)
124 -}
125 -
126 -src_install() {
127 - default
128 -
129 - rm -rf "${D}/var/cache" || die
130 -
131 - # Remove unneeded .keep files
132 - find "${ED}" -name ".keep" -delete || die
133 -
134 - fowners -Rc netdata:netdata /var/log/netdata
135 - keepdir /var/log/netdata
136 - fowners -Rc netdata:netdata /var/lib/netdata
137 - keepdir /var/lib/netdata
138 - keepdir /var/lib/netdata/registry
139 -
140 - fowners -Rc root:netdata /usr/share/${PN}
141 -
142 - newinitd system/netdata-openrc ${PN}
143 - systemd_dounit system/netdata.service
144 - insinto /etc/netdata
145 - doins system/netdata.conf
146 -
147 - echo "CONFIG_PROTECT=\"${EPREFIX}/usr/$(get_libdir)/netdata/conf.d\"" > 99netdata
148 - doenvd 99netdata
149 -}