mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-01 13:40:04 +00:00
dropbear: cleanup packaging
* 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>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
inherit systemd
|
inherit systemd
|
||||||
|
|
||||||
PRINC = "1"
|
PRINC := "${@int(PRINC) + 1}"
|
||||||
|
|
||||||
# look for files in the layer first
|
# look for files in the layer first
|
||||||
FILESEXTRAPATHS := "${THISDIR}/${PN}"
|
FILESEXTRAPATHS := "${THISDIR}/${PN}"
|
||||||
@@ -17,17 +17,10 @@ do_install_append() {
|
|||||||
install -m 0644 ${WORKDIR}/dropbearkey.service ${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@.service ${D}${base_libdir}/systemd/system/
|
||||||
install -m 0644 ${WORKDIR}/dropbear.socket ${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"
|
PACKAGES += "${PN}-systemd"
|
||||||
|
|
||||||
RDEPENDS_${PN}-systemd += "dropbear"
|
RDEPENDS_${PN}-systemd += "dropbear"
|
||||||
FILES_${PN}-systemd = "${base_libdir}/systemd"
|
FILES_${PN}-systemd = "${base_libdir}/systemd"
|
||||||
|
|
||||||
pkg_postinst_${PN}-systemd_append() {
|
|
||||||
ln -sf /dev/null $D${base_libdir}/systemd/system/dropbear.service
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm_${PN}-systemd_append() {
|
|
||||||
rm -f ${base_libdir}/systemd/system/dropbear.service
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user