aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/dlt-daemon/dlt-daemon_2.9.0.bb
blob: 8889333b11d27030fba90c2c75f9bc0912fa35d0 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
SUMMARY = "Diagnostic Log and Trace"
DESCRIPTION = "This component provides a standardised log and trace interface, based on \
		thestandardised protocol specified in the AUTOSAR standard 4.0 DLT.This \
		component can be used by GENIVI components and other applications aslogging \
		facility providing \
		- the DLT shared library \
		- the DLT daemon, including startup scripts \
		- the DLT daemon adaptors- the DLT client console utilities \
		- the DLT test applications \
		"
HOMEPAGE = "https://www.genivi.org/"
SECTION = "console/utils"

PR = "r2"

inherit gzipnative

LICENSE = "MPLv2"
LIC_FILES_CHKSUM = " \
    file://LICENSE.txt;md5=99ba60c3fad7eaf8c56bca6dd75cba09 \
    file://MPL.txt;md5=ccdb2761cef70c8b2612624c323f89dc \
    "

DEPENDS = "zlib"

SRC_URI = "git://git.projects.genivi.org/${PN}.git;protocol=git;tag=v${PV} \
           file://systemd_service_installation.patch \
           file://fix-in-build-builds.patch \
          "

S = "${WORKDIR}/git"

inherit autotools gettext cmake

FILES_${PN}-doc += "/usr/share/*"
FILES_${PN}-systemd += "${systemd_unitdir}/system/"

PACKAGES =+ "${PN}-systemd"

EXTRA_OECMAKE = "-DWITH_SYSTEMD=ON"

# Remove "User=genivi" option from systemd services
# as there is no such username
do_install_append() {
    sed -i '/User/d' ${D}/${systemd_unitdir}/system/*.service

    if [ ${@base_contains('EXTRA_OECMAKE', '-DWITH_SYSTEMD=ON', 'yes', 'no', d)} = yes ]; then
        # Install the required systemd services links
        install -d ${D}${base_libdir}/systemd/system/basic.target.wants
        ln -sf ../dlt.service ${D}${base_libdir}/systemd/system/basic.target.wants/dlt.service
        ln -sf ../dlt-system.service ${D}${base_libdir}/systemd/system/basic.target.wants/dlt-system.service
    fi

}