mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
New package: nitrokey-udev-rules-1.0.0
This commit is contained in:
parent
371634cc73
commit
ab9704f016
1 changed files with 20 additions and 0 deletions
20
srcpkgs/nitrokey-udev-rules/template
Normal file
20
srcpkgs/nitrokey-udev-rules/template
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Template file for 'nitrokey-udev-rules'
|
||||||
|
pkgname=nitrokey-udev-rules
|
||||||
|
version=1.0.0
|
||||||
|
revision=1
|
||||||
|
short_desc="Udev rules for Nitrokey devices"
|
||||||
|
maintainer="Mateusz Sylwestrzak <slymattz@gmail.com>"
|
||||||
|
license="CC0-1.0"
|
||||||
|
homepage="https://github.com/Nitrokey/nitrokey-udev-rules"
|
||||||
|
distfiles="https://github.com/Nitrokey/nitrokey-udev-rules/archive/refs/tags/v${version}.tar.gz"
|
||||||
|
checksum=604658f9d10c02b4ec4c299a103777efaa4b55ebf95f6deb2736461f7959ae9d
|
||||||
|
|
||||||
|
post_patch() {
|
||||||
|
# allow non-elogind users to access Nitrokey devices
|
||||||
|
vsed -i 41-nitrokey.rules \
|
||||||
|
-e '/TAG\s*+=\s*"uaccess"/s/$/, GROUP="plugdev"/'
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
vinstall 41-nitrokey.rules 0644 usr/lib/udev/rules.d
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue