2b1008ced8c6fcf802b2e52f1a42d39049132132
[pti/rtp.git] / meta-stx / recipes-core / stx-update / patch-alarm.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 += " patch-alarm"
17 DESCRIPTION_patch-alarm = "TIS Platform Patching"
18 SUMMARY_patch-alarm = "Patch alarm management"
19
20 inherit setuptools
21
22 RDEPENDS_patch-alarm_append = " \
23         bash \
24         python \
25         "
26
27 do_configure_append () {
28         cd ${S}/patch-alarm/patch-alarm
29         distutils_do_configure
30
31
32 do_compile_append () {
33         cd ${S}/patch-alarm/patch-alarm
34         distutils_do_compile
35 }
36
37 do_install_append () {
38         cd ${S}/patch-alarm/patch-alarm
39         distutils_do_install
40
41         cd ${S}/patch-alarm/
42
43         install -m 755 -d ${D}/${bindir}
44         install -m 755 -d ${D}/${sysconfdir}/init.d
45
46         install -m 700 scripts/bin/patch-alarm-manager ${D}/${bindir}/
47         install -m 700 scripts/bin/patch-alarm-manager ${D}/${sysconfdir}/init.d/
48         
49
50 }
51
52 FILES_patch-alarm = " \
53         ${libdir}/python2.7/site-packages/patch_alarm \
54         ${libdir}/python2.7/site-packages/patch_alarm*.egg-info \
55         ${bindir}/patch-alarm-manager \
56         ${sysconfdir}/init.d/patch-alarm-manager \
57         "