Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. DESCRIPTION = "Analysing Car data"
  2. LICENSE = "CLOSED"
  3.  
  4. SRC_URI = " \
  5. file://test.py \
  6. file://test.service \
  7. "
  8.  
  9. inherit systemd
  10.  
  11. #systemd
  12. SYSTEMD_PACKAGES = "${PN}"
  13. SYSTEMD_SERVICE_${PN} = "test.service"
  14. SYSTEMD_AUTO_ENABLE_${PN} = "enable"
  15.  
  16. do_compile () {
  17. }
  18.  
  19. do_install () {
  20. #add python script to /usr/bin/
  21. install -d ${D}/${bindir}
  22. install -m 0755 ${WORKDIR}/test.py ${D}/${bindir}
  23.  
  24. #add python service to /lib/systemd/system/
  25. install -d ${D}${systemd_unitdir}/system/
  26. install -m 0644 ${WORKDIR}/test.service ${D}${systemd_unitdir}/system
  27. }
  28.  
  29. FILES_${PN} += "${libdir}/*"
  30. RDEPENDS_${PN} = "netdata python-sqlalchemy"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement