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 += " nfv-vim"
20 do_configure_prepend () {
22 distutils_do_configure
25 do_compile_prepend () {
30 do_install_prepend () {
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
44 #pkg_postinst_ontarget_${PN} () {
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 \
55 ${libdir}/python2.7/site-packages/nfv_vim \
56 ${libdir}/python2.7/site-packages/nfv_vim*egg-info \