SUMMARY = "rkscript" LICENSE = "CLOSED" inherit bin_package FILESPATH =+ "${TOPDIR}/../../external/:" SRC_URI = "file://rkscript" S = "${WORKDIR}/rkscript" do_install() { # systemd is udev compatible. if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then install -d ${D}${bindir}/ install -m 0755 ${S}/disk-helper ${D}/${bindir}/disk-helper install -m 0755 ${S}/resize-helper ${D}/${bindir}/resize-helper install -d ${D}/${systemd_system_unitdir} install -d ${D}/${sysconfdir}/systemd/system/sysinit.target.wants/ install -m 0644 ${S}/resize-all.service ${D}${systemd_system_unitdir}/resize-all.service ln -sf ${systemd_system_unitdir}/resize-all.service ${D}/${sysconfdir}/systemd/system/sysinit.target.wants/resize-all.service fi } FILES_${PN} += "${sysconfdir}" FILES_${PN} += "${bindir}" FILES_${PN} += "${systemd_system_unitdir}"