c2bf92c422240bb2a6b778b78d640473088ffe9b
[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         systemd \
20         python-influxdb \
21         "
22
23 do_configure_append () {
24         :
25
26
27 do_compile_append() {
28         :
29 }
30
31 local_unit_dir = "${sysconfdir}/systemd/system"
32
33 do_install_append() {
34
35         cd ${S}/influxdb-extensions/src
36         install -m 755 -d ${D}/${sysconfdir}
37         install -m 755 -d ${D}/${local_unit_dir}
38         install -m 755 -d ${D}/${sysconfdir}/influxdb
39
40         # support files ; service and pmon conf
41         install -m 644 influxdb.service  ${D}/${local_unit_dir}
42         install -m 600 influxdb.conf.pmon  ${D}/${sysconfdir}/influxdb
43 }
44
45 FILES_influxdb-extensions = " \
46         ${local_unit_dir}/influxdb.service \
47         ${sysconfdir}/influxdb \
48         "