aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend
blob: f8ce77a5ed23c97ae1314d3d9894e0b02026aacc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"

inherit systemd

SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "X.service"

SRC_URI_append = " file://X.service \
                 "
do_install_append() {
    if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
        install -d ${D}${systemd_unitdir}/system/
        install -m 0644 ${WORKDIR}/X.service ${D}${systemd_unitdir}/system
    fi
}