aboutsummaryrefslogtreecommitdiffstats
path: root/meta-systemd/oe-core/recipes-core/dropbear/dropbear_%.bbappend
blob: fc18ea8e3209bd8bf31e5b03583e59f80f8fef2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
inherit systemd

# look for files in the layer first
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI += "file://dropbearkey.service \
            file://dropbear@.service \
            file://dropbear.socket"

RPROVIDES_${PN} += "${PN}-systemd"
RREPLACES_${PN} += "${PN}-systemd"
RCONFLICTS_${PN} += "${PN}-systemd"
SYSTEMD_SERVICE_${PN} = "dropbear.socket"

do_install_append() {
    install -d ${D}${systemd_unitdir}/system
    install -m 0644 ${WORKDIR}/dropbearkey.service ${D}${systemd_unitdir}/system
    install -m 0644 ${WORKDIR}/dropbear@.service ${D}${systemd_unitdir}/system
    install -m 0644 ${WORKDIR}/dropbear.socket ${D}${systemd_unitdir}/system
    ln -sf /dev/null ${D}${systemd_unitdir}/system/dropbear.service
}