summaryrefslogtreecommitdiff
path: root/recipes-qt/qt4/qt4-x11-free-systemd.bb
blob: 681a14d7c6416bb5b2fc307d2292660374ec2faa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SECTION = "x11/libs"
DESCRIPTION = "qtdemo autostart"
RDEPENDS_${PN} = ""
# The license is meant for this recipe and the files it installs.
# RNDIS is part of the kernel, udhcpd is part of busybox
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"

PR = "r1"

inherit allarch systemd

SRC_URI = "file://qtdemo.service \
           file://qtdemo-init "

FILES_${PN} += " ${sysconfdir}/init.d "
do_install () {
    install -d ${D}/${sysconfdir}/init.d
    install -m 0755 ${WORKDIR}/qtdemo-init ${D}/${sysconfdir}/init.d/

    install -d ${D}${systemd_unitdir}/system/
    install -m 0644 ${WORKDIR}/qtdemo.service ${D}${systemd_unitdir}/system
}

NATIVE_SYSTEMD_SUPPORT = "1"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "qtdemo.service"