Add initial meta-stx to support StarlingX build
[pti/rtp.git] / meta-stx / recipes-core / stx-nfv / nfv-vim.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 += " nfv-vim"
17
18 inherit setuptools
19
20 do_configure_prepend () {
21         cd ${S}/nfv/nfv-vim
22         distutils_do_configure
23
24
25 do_compile_prepend () {
26         cd ${S}/nfv/nfv-vim
27         distutils_do_compile
28 }
29
30 do_install_prepend () {
31         cd ${S}/nfv/nfv-vim
32         distutils_do_install
33         install -d -m 755 ${D}/usr/lib/ocf/resource.d/nfv
34         install -p -D -m 755 scripts/vim ${D}/usr/lib/ocf/resource.d/nfv/vim
35         install -p -D -m 755 scripts/vim-api ${D}/usr/lib/ocf/resource.d/nfv/vim-api
36         install -p -D -m 755 scripts/vim-webserver ${D}/usr/lib/ocf/resource.d/nfv/vim-webserver
37         install -d -m 755 ${D}/${sysconfdir}/nfv/
38         install -d -m 755 ${D}/${sysconfdir}/nfv/vim/
39         install -p -D -m 600 nfv_vim/config.ini ${D}/${sysconfdir}/nfv/vim/config.ini
40         install -p -D -m 600 nfv_vim/debug.ini ${D}/${sysconfdir}/nfv/vim/debug.ini
41
42 }
43
44 #pkg_postinst_ontarget_${PN} () {
45
46 FILES_nfv-vim_append = " \
47         ${sysconfdir}/nfv/vim \
48         ${libdir}/ocf/resource.d/nfv/vim \
49         ${libdir}/ocf/resource.d/nfv/vim-api \
50         ${libdir}/ocf/resource.d/nfv/vim-webserver \
51         ${bindir}/nfv-vim-webserver \
52         ${bindir}/nfv-vim-api \
53         ${bindir}/nfv-vim-manage \
54         ${bindir}/nfv-vim \
55         ${libdir}/python2.7/site-packages/nfv_vim \
56         ${libdir}/python2.7/site-packages/nfv_vim*egg-info \
57         "