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 += " platform-util"
18 RDEPENDS_platform-util_append = " bash"
20 do_configure_append() {
21 distutils_do_configure
25 cd ${S}/utilities/platform-util/platform-util
30 cd ${S}/utilities/platform-util/platform-util
33 install -d ${D}/${bindir}
34 install ${S}/utilities/platform-util/scripts/cgcs_tc_setup.sh ${D}/${bindir}
35 install ${S}/utilities/platform-util/scripts/remotelogging_tc_setup.sh ${D}/${bindir}
36 install ${S}/utilities/platform-util/scripts/connectivity_test ${D}/${bindir}
38 install -d ${D}/${sysconfdir}/init.d
39 install ${S}/utilities/platform-util/scripts/log_functions.sh ${D}/${sysconfdir}/init.d
41 install -d ${D}/${sbindir}
42 install -m 700 -p -D ${S}/utilities/platform-util/scripts/patch-restart-mtce ${D}/${sbindir}
43 install -m 700 -p -D ${S}/utilities/platform-util/scripts/patch-restart-processes ${D}/${sbindir}
44 install -m 700 -p -D ${S}/utilities/platform-util/scripts/patch-restart-haproxy ${D}/${sbindir}
46 install -d ${D}/${systemd_system_unitdir}
47 install -m 644 -p -D ${S}/utilities/platform-util/scripts/opt-platform.mount ${D}/${systemd_system_unitdir}
48 install -m 644 -p -D ${S}/utilities/platform-util/scripts/opt-platform.service ${D}/${systemd_system_unitdir}
51 FILES_platform-util = "\
52 ${libdir}/python2.7/site-packages/platform_util \
53 ${libdir}/python2.7/site-packages/platform_util-1.0.0-py2.7.egg-info \
54 ${bindir}/cgcs_tc_setup.sh \
55 ${bindir}/remotelogging_tc_setup.sh \
56 ${bindir}/connectivity_test \
57 ${bindir}/verify-license \
58 ${sysconfdir}/init.d/log_functions.sh \
59 ${sbindir}/patch-restart-mtce \
60 ${sbindir}/patch-restart-processes \
61 ${sbindir}/patch-restart-haproxy \
62 ${systemd_system_unitdir}/opt-platform.mount \
63 ${systemd_system_unitdir}/opt-platform.service \