PRINC = "1" THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:" SRC_URI += " \ file://missingAM_GLIB_GNU_GETTEXT.patch \ file://configfiles.patch \ " pkg_postinst_${PN}() { # Register up as default dm mkdir -p ${sysconfdir}/X11/ echo "${sbindir}/lxdm" > ${sysconfdir}/X11/default-display-manager # the lxdm script in init.d includes the script functions, make an empty one if this does not yet exist touch /etc/init.d/functions } pkg_postrm_${PN} () { sed -i /lxdm/d ${sysconfdir}/X11/default-display-manager || true }