summaryrefslogtreecommitdiffstats
path: root/meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb
blob: 57dda7787c7c5b8e40f11e8240cd698870b20dfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SUMMARY = "Rule for agl-driver to control agl-app@ services"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://50-agl-app.rules"

DEPENDS += "polkit"

inherit useradd features_check
REQUIRED_DISTRO_FEATURES = "polkit"

do_install() {
    install -m 700 -d ${D}${datadir}/polkit-1/rules.d
    chown polkitd:root ${D}/${datadir}/polkit-1/rules.d
    install -m 0644 ${WORKDIR}/50-agl-app.rules ${D}${datadir}/polkit-1/rules.d
}

USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} += "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;"

FILES:${PN} += "${datadir}/polkit-1/rules.d/*.rules"