2 ## Copyright (C) 2019 Wind River Systems, Inc.
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 PACKAGES += " ceph-manager"
18 RDEPENDS_ceph-manager += " sysinv"
19 DESCRIPTION_ceph-manager = " \
20 Handle Ceph API calls and provide status updates via alarms. \
21 Handle sysinv RPC calls for long running Ceph API operations: \
22 - cache tiering enable \
23 - cache tiering disable \
26 do_configure_append() {
27 cd ${S}/ceph/ceph-manager/ceph-manager
28 distutils_do_configure
31 cd ${S}/ceph/ceph-manager/ceph-manager
36 cd ${S}/ceph/ceph-manager/ceph-manager
39 install -d -m0755 ${D}/${bindir}
40 install -d -m0755 ${D}/${sysconfdir}/init.d
41 install -d -m0755 ${D}/${sysconfdir}/logrotate.d
42 install -d -m0755 ${D}/${systemd_system_unitdir}
44 install -p -m0700 ${S}/ceph/ceph-manager/scripts/init.d/ceph-manager ${D}/${sysconfdir}/init.d
45 install -p -m0700 ${S}/ceph/ceph-manager/scripts/bin/ceph-manager ${D}/${bindir}
46 install -p -m0700 ${S}/ceph/ceph-manager/files/ceph-manager.logrotate ${D}/${sysconfdir}/logrotate.d
47 install -p -m0700 ${S}/ceph/ceph-manager/files/ceph-manager.service ${D}/${systemd_system_unitdir}
50 FILES_ceph-manager = " \
51 ${bindir}/ceph-manager \
52 ${sysconfdir}/init.d/ceph-manager \
53 ${sysconfdir}/logrotate.d/ceph-manager.logrotate \
54 ${systemd_system_unitdir}/ceph-manager.service \
55 ${PYTHON_SITEPACKAGES_DIR}/ceph_manager \
56 ${PYTHON_SITEPACKAGES_DIR}/ceph_manager-1.0.0-py2.7.egg-info \