i2c-tools: add udev rule and group
This commit is contained in:
parent
bae3983bb7
commit
f3c7157a94
2 changed files with 8 additions and 1 deletions
2
srcpkgs/i2c-tools/files/45-i2c-tools.rules
Normal file
2
srcpkgs/i2c-tools/files/45-i2c-tools.rules
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Assigns the i2c devices to group i2c, and gives that group RW access:
|
||||||
|
KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660"
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'i2c-tools'
|
# Template file for 'i2c-tools'
|
||||||
pkgname=i2c-tools
|
pkgname=i2c-tools
|
||||||
version=4.2
|
version=4.2
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
make_install_args="sbindir=/usr/bin"
|
make_install_args="sbindir=/usr/bin"
|
||||||
depends="perl"
|
depends="perl"
|
||||||
|
@ -11,6 +11,11 @@ license="GPL-2.0-or-later"
|
||||||
homepage="https://packages.debian.org/sid/i2c-tools"
|
homepage="https://packages.debian.org/sid/i2c-tools"
|
||||||
distfiles="${DEBIAN_SITE}/main/i/${pkgname}/${pkgname}_${version}.orig.tar.xz"
|
distfiles="${DEBIAN_SITE}/main/i/${pkgname}/${pkgname}_${version}.orig.tar.xz"
|
||||||
checksum=37f2dabc7082d185903ff21d1f584b5dcb4dd2eb2c879bbd8d7c50ae900dacd6
|
checksum=37f2dabc7082d185903ff21d1f584b5dcb4dd2eb2c879bbd8d7c50ae900dacd6
|
||||||
|
system_groups="i2c"
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vinstall "${FILESDIR}/45-i2c-tools.rules" 644 usr/lib/udev/rules.d
|
||||||
|
}
|
||||||
|
|
||||||
i2c-tools-devel_package() {
|
i2c-tools-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue