build_inf.sh: change the protocal for github repo
[pti/rtp.git] / meta-stx / recipes-core / stx-utilities / tools / collect-engtools.inc
index 66fd74a..002ad36 100644 (file)
@@ -74,6 +74,12 @@ do_install_append() {
        install -d -m0755 ${D}/${systemd_system_unitdir}
        install -m0644 -p -D collect-engtools.service ${D}/${systemd_system_unitdir}
 
+       sed -i -e 's/network.service/networking.service/' \
+               ${D}/${systemd_system_unitdir}/collect-engtools.service
+
+       sed -i -e 's|/usr/local/bin/|${bindir}/|' \
+               ${D}/${sysconfdir}/init.d/collect-engtools.sh \
+               ${D}/${bindir}/cleanup-engtools.sh
 }
 
 FILES_collect-engtools = "  \
@@ -104,3 +110,7 @@ FILES_collect-engtools = "  \
        ${sysconfdir}/init.d/collect-engtools.sh \
        ${systemd_system_unitdir}/collect-engtools.service \
        "
+
+SYSTEMD_PACKAGES += "collect-engtools"
+SYSTEMD_SERVICE_collect-engtools = "collect-engtools.service"
+SYSTEMD_AUTO_ENABLE_collect-engtools = "enable"