SPECS: hal.spec - grant proper PolKit rights

patrys patrys at pld-linux.org
Tue Jan 15 19:03:54 CET 2008


Author: patrys                       Date: Tue Jan 15 18:03:54 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- grant proper PolKit rights

---- Files affected:
SPECS:
   hal.spec (1.149 -> 1.150) 

---- Diffs:

================================================================
Index: SPECS/hal.spec
diff -u SPECS/hal.spec:1.149 SPECS/hal.spec:1.150
--- SPECS/hal.spec:1.149	Thu Jan 10 19:33:20 2008
+++ SPECS/hal.spec	Tue Jan 15 19:03:48 2008
@@ -7,7 +7,7 @@
 Summary(pl.UTF-8):	HAL - abstrakcyjna warstwa dostępu do sprzętu
 Name:		hal
 Version:	0.5.10
-Release:	5
+Release:	6
 License:	AFL v2.0 or GPL v2
 Group:		Libraries
 Source0:	http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz
@@ -20,7 +20,7 @@
 Patch2:		%{name}-link.patch
 Patch3:		%{name}-dbus.patch
 URL:		http://freedesktop.org/Software/hal
-BuildRequires:	PolicyKit-devel >= 0.5
+BuildRequires:	PolicyKit-devel >= 0.7
 BuildRequires:	autoconf >= 2.57
 BuildRequires:	automake
 BuildRequires:	dbus-glib-devel >= 0.71
@@ -57,10 +57,11 @@
 Requires(pre):	/usr/bin/getgid
 Requires(pre):	/usr/sbin/groupadd
 Requires(pre):	/usr/sbin/useradd
+Requires(pre):	/usr/bin/polkit-auth
 %pyrequires_eq	python
 Requires:	%{name}-libs = %{version}-%{release}
 #Requires:	ConsoleKit
-Requires:	PolicyKit >= 0.5
+Requires:	PolicyKit >= 0.7
 Requires:	dbus >= 0.91
 Requires:	dmidecode >= 2.7
 Requires:	glib2 >= 1:2.12.1
@@ -198,6 +199,8 @@
 %pre
 %groupadd -g 126 -r -f haldaemon
 %useradd -u 126 -r -d /usr/share/empty -s /bin/false -c "HAL daemon" -g haldaemon haldaemon
+/usr/bin/polkit-auth --user haldaemon --grant org.freedesktop.policykit.read >& /dev/null || :
+
 
 %post
 /sbin/chkconfig --add haldaemon
@@ -286,6 +289,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.150  2008-01-15 18:03:48  patrys
+- grant proper PolKit rights
+
 Revision 1.149  2008-01-10 18:33:20  patrys
 - include upstream fix for addons dying
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/hal.spec?r1=1.149&r2=1.150&f=u



More information about the pld-cvs-commit mailing list