influxdb: add new recipe and related dependency
[pti/rtp.git] / meta-stx / recipes-core / stx-monitoring / influxdb-extensions.inc
1 #
2 ## Copyright (C) 2019 Wind River Systems, Inc.
3 #
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15
16 PACKAGES += " influxdb-extensions"
17
18 RDEPENDS_influxdb-extensions += " \
19         influxdb \
20         systemd \
21         python-influxdb \
22         "
23
24 do_configure_append () {
25         :
26
27
28 do_compile_append() {
29         :
30 }
31
32 local_unit_dir = "${sysconfdir}/systemd/system"
33
34 do_install_append() {
35
36         cd ${S}/influxdb-extensions/src
37         install -m 755 -d ${D}/${sysconfdir}
38         install -m 755 -d ${D}/${local_unit_dir}
39         install -m 755 -d ${D}/${sysconfdir}/influxdb
40
41         # support files ; service and pmon conf
42         install -m 644 influxdb.service  ${D}/${local_unit_dir}
43         install -m 600 influxdb.conf.pmon  ${D}/${sysconfdir}/influxdb
44 }
45
46 FILES_influxdb-extensions = " \
47         ${local_unit_dir}/influxdb.service \
48         ${sysconfdir}/influxdb \
49         "