Advertisement
Guest User

Untitled

a guest
Apr 16th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. SUMMARY = "Install services"
  2. SECTION = "Miscellaneous"
  3. LICENSE = "CLOSED"
  4.  
  5. SRC_URI = " file://install-psycopg2.sh \
  6. file://alignment.sh \
  7. file://install-psycopg2.service \
  8. file://alignment.service \
  9. file://edduv_boot.sh \
  10. file://edduv_boot.service \
  11. "
  12.  
  13. S = "${WORKDIR}"
  14.  
  15. inherit allarch update-rc.d systemd
  16.  
  17. SYSTEMD_PACKAGES = "${PN}"
  18. INITSCRIPT_PACKAGES = "${PN}"
  19.  
  20. SYSTEMD_SERVICE_${PN} = " \
  21. alignment.service \
  22. install-psycopg2.service \
  23. edduv_boot.service \
  24. "
  25. SYSTEMD_AUTO_ENABLE_${PN} = "enable"
  26.  
  27. #Copy scripts to rootfs
  28. do_install() {
  29. # For scripts
  30. install -d ${D}${sysconfdir}/scripts
  31. install -m 0755 ${S}/install-psycopg2.sh ${D}${sysconfdir}/scripts/install-psycopg2.sh
  32. install -m 0755 ${S}/alignment.sh ${D}${sysconfdir}/scripts/alignment.sh
  33. install -m 0755 ${S}/edduv_boot.sh ${D}${sysconfdir}/scripts/edduv_boot.sh
  34.  
  35. # For services
  36. install -d ${D}${systemd_system_unitdir}
  37. install -m 0644 ${S}/alignment.service ${D}${systemd_system_unitdir}/alignment.service
  38. install -m 0644 ${S}/install-psycopg2.service ${D}${systemd_system_unitdir}/install-psycopg2.service
  39. install -m 0644 ${S}/edduv_boot.service ${D}${systemd_system_unitdir}/edduv_boot.service
  40. }
  41.  
  42. FILES_${PN} += " /etc/scripts/install-psycopg2.sh"
  43. FILES_${PN} += " /etc/scripts/alignment.sh"
  44. FILES_${PN} += " /etc/scripts/edduv_boot.sh"
  45. FILES_${PN} += " /lib/systemd/system/install-psycopg2.service "
  46. FILES_${PN} += " /lib/systemd/system/alignment.service"
  47. FILES_${PN} += " /lib/systemd/system/edduv_boot.service"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement