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.
18 RDEPENDS_sm-api += " \
25 do_configure_append () {
26 cd ${S}/service-mgmt-api/sm-api
27 distutils_do_configure
30 do_compile_append () {
31 cd ${S}/service-mgmt-api/sm-api
35 do_install_append () {
36 cd ${S}/service-mgmt-api/sm-api
38 install -d -m 0755 ${D}/${sysconfdir}/sm
39 install -d -m 0755 ${D}/${sysconfdir}/init.d
40 install -d -m 0755 ${D}/${sysconfdir}/pmon.d
41 install -d -m 0755 ${D}/${sysconfdir}/sm-api
42 install -d -m 0755 ${D}/${systemd_system_unitdir}
43 install -m 644 scripts/sm_api.ini ${D}/${sysconfdir}/sm
44 install -m 755 scripts/sm-api ${D}/${sysconfdir}/init.d
45 install -m 644 scripts/sm-api.service ${D}/${systemd_system_unitdir}
46 install -m 644 scripts/sm-api.conf ${D}/${sysconfdir}/pmon.d
47 install -m 644 etc/sm-api/policy.json ${D}/${sysconfdir}/sm-api
51 ${libdir}/python2.7/site-packages/sm_api*.egg-info/ \
52 ${libdir}/python2.7/site-packages/sm_api/ \
53 ${systemd_system_unitdir}/sm-api.service \
54 ${sysconfdir}/init.d/sm-api \
55 ${sysconfdir}/pmon.d/sm-api.conf \
56 ${sysconfdir}/sm/sm_api.ini \
57 ${sysconfdir}/sm-api/policy.json \
61 SYSTEMD_PACKAGES += "sm-api"
62 SYSTEMD_SERVICE_sm-api = "sm-api.service"
63 SYSTEMD_AUTO_ENABLE_sm-api = "enable"