From 30cd749fa5dc8af57ab3d91e3ea54374aba2b3d8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 9 Apr 2011 11:33:27 +0200 Subject: [PATCH] gnome-bluetooth: fix rfkill for all users, from Arch. --- .../files/61-gnome-bluetooth-rfkill.rules | 11 +++++++++++ srcpkgs/gnome-bluetooth/template | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 srcpkgs/gnome-bluetooth/files/61-gnome-bluetooth-rfkill.rules diff --git a/srcpkgs/gnome-bluetooth/files/61-gnome-bluetooth-rfkill.rules b/srcpkgs/gnome-bluetooth/files/61-gnome-bluetooth-rfkill.rules new file mode 100644 index 00000000000..a76c1e73cf7 --- /dev/null +++ b/srcpkgs/gnome-bluetooth/files/61-gnome-bluetooth-rfkill.rules @@ -0,0 +1,11 @@ +# Get access to /dev/rfkill for users +# See https://bugzilla.redhat.com/show_bug.cgi?id=514798 +# +# Updated for udev >= 154 +# http://bugs.debian.org/582188 +# https://bugzilla.redhat.com/show_bug.cgi?id=588660 + +ENV{ACL_MANAGE}=="0", GOTO="gnome_bluetooth_end" +ACTION!="add|change", GOTO="gnome_bluetooth_end" +KERNEL=="rfkill", TAG+="udev-acl" +LABEL="gnome_bluetooth_end" diff --git a/srcpkgs/gnome-bluetooth/template b/srcpkgs/gnome-bluetooth/template index 2b71f033ce7..240a9c7cc03 100644 --- a/srcpkgs/gnome-bluetooth/template +++ b/srcpkgs/gnome-bluetooth/template @@ -1,6 +1,7 @@ # Template file for 'gnome-bluetooth' pkgname=gnome-bluetooth version=3.0.0 +revision=1 distfiles="${GNOME_SITE}/$pkgname/3.0/$pkgname-$version.tar.bz2" build_style=gnu_configure configure_args="--disable-desktop-update --disable-schemas-compile @@ -65,3 +66,9 @@ Add_dependency full gvfs Add_dependency full obexd ">=0" Add_dependency full hicolor-icon-theme Add_dependency full desktop-file-utils + +post_install() +{ + install -m644 -D ${FILESDIR}/61-gnome-bluetooth-rfkill.rules \ + ${DESTDIR}/lib/udev/rules.d//61-gnome-bluetooth-rfkill.rules +}