mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-10 08:04:56 +02:00
* the symbolic link required to disable the sysvinit init script is now done during the do_install task so making the recipe simple * convert to use PRINC to bump PR on bbappend Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
27 lines
822 B
Plaintext
27 lines
822 B
Plaintext
inherit systemd
|
|
|
|
PRINC := "${@int(PRINC) + 1}"
|
|
|
|
# look for files in the layer first
|
|
FILESEXTRAPATHS := "${THISDIR}/${PN}"
|
|
|
|
SRC_URI += "file://dropbearkey.service \
|
|
file://dropbear@.service \
|
|
file://dropbear.socket"
|
|
|
|
SYSTEMD_PACKAGES = "${PN}-systemd"
|
|
SYSTEMD_SERVICE_${PN}-systemd = "dropbear.socket"
|
|
|
|
do_install_append() {
|
|
install -d ${D}${base_libdir}/systemd/system
|
|
install -m 0644 ${WORKDIR}/dropbearkey.service ${D}${base_libdir}/systemd/system/
|
|
install -m 0644 ${WORKDIR}/dropbear@.service ${D}${base_libdir}/systemd/system/
|
|
install -m 0644 ${WORKDIR}/dropbear.socket ${D}${base_libdir}/systemd/system/
|
|
ln -sf /dev/null ${D}${base_libdir}/systemd/system/dropbear.service
|
|
}
|
|
|
|
PACKAGES += "${PN}-systemd"
|
|
|
|
RDEPENDS_${PN}-systemd += "dropbear"
|
|
FILES_${PN}-systemd = "${base_libdir}/systemd"
|