summaryrefslogtreecommitdiffstats
path: root/meta-app-framework/recipes-core/smack-system-setup/smack-system-setup_1.bb
blob: b74f462b4d15e0dc040f9cc0c6aeab275656d377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2
DESCRIPTION = "setup of a system using smack"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

SRC_URI = "\
  file://55-udev-smack-default.rules \
  file://systemd-journald.service.conf \
  file://systemd-tmpfiles-setup.service.conf \
  file://tmp.mount.conf \
"

RDEPENDS:${PN}:append:with-lsm-smack = " smack"

do_install:append:with-lsm-smack() {
    # tuning systemd units
    install -Dm0644 ${WORKDIR}/systemd-tmpfiles-setup.service.conf \
                     ${D}${systemd_unitdir}/system/systemd-tmpfiles-setup.service.d/smack.conf
    install -Dm0644 ${WORKDIR}/systemd-journald.service.conf \
                     ${D}${systemd_unitdir}/system/systemd-journald.service.d/smack.conf
    install -Dm0644 ${WORKDIR}/tmp.mount.conf \
                     ${D}${systemd_unitdir}/system/tmp.mount.d/smack.conf

    # add udev rules
    install -Dm0644 ${WORKDIR}/55-udev-smack-default.rules \
                     ${D}${sysconfdir}/udev/rules.d/55-udev-smack-default.rules
}

FILES:${PN} += "${systemd_unitdir}"