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