| FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | |
| SRC_URI += "file://rngd.service" | |
| inherit systemd | |
| SYSTEMD_SERVICE_${PN} = "rngd.service" | |
| do_install_append() { | |
| if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | |
| install -d ${D}${systemd_unitdir}/system | |
| install -m 644 ${WORKDIR}/rngd.service ${D}${systemd_unitdir}/system | |
| sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/rngd.service | |
| fi | |
| } | |