From 420e58f846cc3e3e014cb1c7e7198e17747830b4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 17 Jul 2014 19:33:32 +0200 Subject: [PATCH] base-files: create a generic udev rules file to set proper perms to the input subsystem. --- srcpkgs/base-files/files/99-input.rules | 2 ++ srcpkgs/base-files/files/99-joystick.rules | 2 -- srcpkgs/base-files/template | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/base-files/files/99-input.rules delete mode 100644 srcpkgs/base-files/files/99-joystick.rules diff --git a/srcpkgs/base-files/files/99-input.rules b/srcpkgs/base-files/files/99-input.rules new file mode 100644 index 0000000000..db7cfa9a99 --- /dev/null +++ b/srcpkgs/base-files/files/99-input.rules @@ -0,0 +1,2 @@ +SUBSYSTEM=="input", GROUP="input" +SUBSYSTEM=="input", KERNEL=="js[0-9]*", MODE="0664" diff --git a/srcpkgs/base-files/files/99-joystick.rules b/srcpkgs/base-files/files/99-joystick.rules deleted file mode 100644 index cdec22eb93..0000000000 --- a/srcpkgs/base-files/files/99-joystick.rules +++ /dev/null @@ -1,2 +0,0 @@ -KERNEL=="event[0-9]*", ENV{ID_BUS}=="?*", ENV{ID_INPUT_JOYSTICK}=="?*", GROUP="video", MODE="0660" -KERNEL=="js[0-9]*", ENV{ID_BUS}=="?*", ENV{ID_INPUT_JOYSTICK}=="?*", GROUP="video", MODE="0664" diff --git a/srcpkgs/base-files/template b/srcpkgs/base-files/template index 9c2b03c825..44ebd19064 100644 --- a/srcpkgs/base-files/template +++ b/srcpkgs/base-files/template @@ -1,6 +1,6 @@ # Template file for 'base-files' pkgname=base-files -version=0.101 +version=0.102 revision=1 bootstrap=yes build_style="meta" @@ -69,5 +69,6 @@ do_install() { ln -sf /proc/self/mounts ${DESTDIR}/etc/mtab # udev rules - vinstall ${FILESDIR}/99-joystick.rules 644 usr/lib/udev/rules.d + vmkdir usr/lib/udev/rules.d + install -m644 ${FILESDIR}/*.rules ${DESTDIR}/usr/lib/udev/rules.d/ }