blob: db2ed015b46e32e11412c150e467441a539b515b [file] [log] [blame]
Andrew Geisslerd5838332022-05-27 11:33:10 -05001DESCRIPTION = "Polkit rule to allow non-priviledged users mount/umount block devices via udisks2"
2LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
4
5require polkit-group-rule.inc
6
7# The file originates from https://github.com/coldfix/udiskie/wiki/Permissions
8SRC_URI = "file://50-org.freedesktop.udiskie.rules"
9
Andrew Geissler615f2f12022-07-15 14:00:58 -050010RDEPENDS:${PN} += "udisks2"
Andrew Geisslerd5838332022-05-27 11:33:10 -050011
12do_install() {
13 install -m 0755 ${WORKDIR}/50-org.freedesktop.udiskie.rules ${D}${sysconfdir}/polkit-1/rules.d
14}
15
16USERADD_PACKAGES = "${PN}"
17GROUPADD_PARAM:${PN} = "--system plugdev"