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 += " patch-alarm"
17 DESCRIPTION_patch-alarm = "TIS Platform Patching"
18 SUMMARY_patch-alarm = "Patch alarm management"
22 RDEPENDS_patch-alarm_append = " \
27 do_configure_append () {
28 cd ${S}/patch-alarm/patch-alarm
29 distutils_do_configure
32 do_compile_append () {
33 cd ${S}/patch-alarm/patch-alarm
37 do_install_append () {
38 cd ${S}/patch-alarm/patch-alarm
43 install -m 755 -d ${D}/${bindir}
44 install -m 755 -d ${D}/${sysconfdir}/init.d
46 install -m 700 scripts/bin/patch-alarm-manager ${D}/${bindir}/
47 install -m 700 scripts/init.d/patch-alarm-manager ${D}/${sysconfdir}/init.d/
50 FILES_patch-alarm = " \
51 ${libdir}/python2.7/site-packages/patch_alarm \
52 ${libdir}/python2.7/site-packages/patch_alarm*.egg-info \
53 ${bindir}/patch-alarm-manager \
54 ${sysconfdir}/init.d/patch-alarm-manager \