- Add udev rules to access /dev/rfkill (#514798)

This commit is contained in:
Bastien Nocera 2009-08-11 11:48:56 +00:00
parent 1c609b4259
commit c91d47dc8a
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,3 @@
# Get access to /dev/rfkill for users
# See https://bugzilla.redhat.com/show_bug.cgi?id=514798
KERNEL=="rfkill", ENV{ACL_MANAGE}="1"

View File

@ -1,12 +1,13 @@
Name: gnome-bluetooth
Version: 2.27.9
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Bluetooth graphical utilities
Group: Applications/Communications
License: GPLv2+
URL: http://live.gnome.org/GnomeBluetooth
Source0: http://download.gnome.org/sources/gnome-bluetooth/2.27/gnome-bluetooth-%{version}.tar.bz2
Source1: 61-gnome-bluetooth-rfkill.rules
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Patch0: 0001-Bug-590874-crash-in-Bluetooth-adding-a-bluetoot.patch
@ -87,6 +88,8 @@ desktop-file-install --vendor="" \
--dir=$RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/ \
$RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/bluetooth-applet.desktop
install -m0644 -D %{SOURCE1} $RPM_BUILD_ROOT/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules
# gnome-bluetooth2 is the name for the gettext domain,
# gnome-bluetooth is the name in the docs
%find_lang gnome-bluetooth2
@ -177,6 +180,7 @@ fi
%{_datadir}/applications/*.desktop
%{_datadir}/gnome-bluetooth/
%{_mandir}/man1/*
/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules
%files libs
%defattr(-,root,root,-)
@ -193,6 +197,9 @@ fi
%{_datadir}/gtk-doc/html/gnome-bluetooth/
%changelog
* Tue Aug 11 2009 Bastien Nocera <bnocera@redhat.com> 2.27.9-4
- Add udev rules to access /dev/rfkill (#514798)
* Tue Aug 11 2009 Bastien Nocera <bnocera@redhat.com> 2.27.9-3
- Don't crash when exiting the wizard