e5ca1a8ab8d9b327bb7b55514c55a9240d339f81
[scm/bb/meta-tizen.git] / meta-tizen-common-share / recipes-connectivity / ofono / ofono-extraconf.inc
1 do_install() {
2  export RPM_BUILD_ROOT=${D}
3  cd ${S}
4  LANG=C
5  export LANG
6  unset DISPLAY
7  rm -rf ${D}
8  mkdir -p ${D}
9  
10  
11    oe_runmake \
12          DESTDIR=${D} \
13          INSTALL_ROOT=${D} \
14          BINDIR=${prefix}/bin \
15    install  
16    rm -f ${D}${infodir}/dir 
17    find ${D} -regex ".*\.la$" | xargs rm -f -- 
18    find ${D} -regex ".*\.a$" | xargs rm -f --
19  
20  mkdir -p ${D}/${systemd_unitdir}/system/network.target.wants
21  ln -s ../ofono.service ${D}/${systemd_unitdir}/system/network.target.wants/ofono.service
22  mkdir -p ${D}/${systemd_unitdir}/system/multi-user.target.wants 
23  ln -s ../ofono.service  ${D}/${systemd_unitdir}/system/multi-user.target.wants/ofono.service  
24  
25  
26  
27 }
28
29 do_install_append() {
30  # Because python3-dbus module is currently not there, just use
31  # python 2.x in the ofono test scripts
32  for PYTHSCRIPT in `grep -rIl ${bindir}/python3 ${D}${libdir}/${PN}`; do
33   sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT
34  done
35 }