Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=5940d3d8d7d78767dfd6cc36919ba572abb55d12

commit 5940d3d8d7d78767dfd6cc36919ba572abb55d12
Author: Priyank <[email protected]>
Date:   Thu Dec 25 15:22:46 2008 +0530

bluez-utils-3.36-2-i686
* Added a custom dbus service file. The one included no longer works. bluetooth 
service is now accessible
* Build with dfutool, tools and manpages enabled

diff --git a/source/apps-extra/bluez-utils/FrugalBuild 
b/source/apps-extra/bluez-utils/FrugalBuild
index 36fb17d..2ab1b5c 100644
--- a/source/apps-extra/bluez-utils/FrugalBuild
+++ b/source/apps-extra/bluez-utils/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=bluez-utils
pkgver=3.36
-pkgrel=1
+pkgrel=2
pkgdesc="Bluetooth tools and daemons"
url="http://bluez.sourceforge.net/";
depends=('dbus-glib>=0.76' 'hal>=0.5.11' 'alsa-lib' 'openobex>=1.3-10' 
'bluez-libs>=3.36')
@@ -12,11 +12,12 @@ groups=('apps-extra')
archs=('i686' 'x86_64' 'ppc')
backup=(etc/sysconfig/bluetooth etc/bluetooth/hcid.conf 
etc/bluetooth/rfcomm.conf etc/bluetooth/uart.conf)
up2date="lynx -dump http://www.bluez.org/download.html|grep bluez-utils-|sed -n 
's/.*bluez-utils-\(.*\)\.t.*/\1/; 1 p'"
-source=("http://bluez.sourceforge.net/download/bluez-utils-$pkgver.tar.gz"; 
rc.bluetooth uart.conf bluetooth.default)
+source=("http://bluez.sourceforge.net/download/bluez-utils-$pkgver.tar.gz"; 
rc.bluetooth uart.conf bluetooth.default bluetooth-dbus.conf)
sha1sums=('f53ba1d17829df2c5933fe062d7f8fb1ab8c8e60' \
'e5323ae9a3bdfed6dac4e323dacaf1edc70171e6' \
'706231256b0ef53e20f22b4f163e8008f092d28a' \
-          '8a62cf9a7c10a4fee59acbab8e85f0a1058e4772')
+          '8a62cf9a7c10a4fee59acbab8e85f0a1058e4772' \
+          '7b62baa3bdf06b2d54cf9e9bc3358e2f90454311')

build() {
Frcd bluetooth
@@ -26,10 +27,13 @@ build() {
--enable-hal --enable-usb --enable-hcid --enable-serial \
--enable-configfiles --enable-hid2hci --enable-glib \
--disable-initscripts --disable-pcmciarules --enable-bccmd \
-               --enable-cups --enable-pand
+               --enable-cups --enable-pand --enable-tools --enable-dfutool \
+               --enable-manpages
Fmkdir /etc/udev/rules.d
cd scripts
Fcprel bluetooth.rules /etc/udev/rules.d/bluetooth.rules
+       Frm /etc/dbus-1/system.d/bluetooth.conf
+       Fcp bluetooth-dbus.conf /etc/dbus-1/system.d/bluetooth.conf
}

# optimization OK
diff --git a/source/apps-extra/bluez-utils/bluetooth-dbus.conf 
b/source/apps-extra/bluez-utils/bluetooth-dbus.conf
new file mode 100644
index 0000000..39b46f9
--- /dev/null
+++ b/source/apps-extra/bluez-utils/bluetooth-dbus.conf
@@ -0,0 +1,34 @@
+<!-- This configuration file specifies the required security policies
+     for Bluetooth core daemon to work. -->
+
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 
1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd";>
+<busconfig>
+
+  <!-- ../system.conf have denied everything, so we just punch some holes -->
+
+  <policy user="root">
+    <allow own="org.bluez"/>
+  </policy>
+
+  <policy context="default">
+    <allow send_destination="org.bluez.Manager"/>
+    <allow send_interface="org.bluez.Manager"/>
+
+    <allow send_destination="org.bluez.Adapter"/>
+    <allow send_interface="org.bluez.Adapter"/>
+
+    <allow send_destination="org.bluez.Device"/>
+    <allow send_interface="org.bluez.Device"/>
+
+    <allow send_destination="org.bluez.Service"/>
+    <allow send_interface="org.bluez.Service"/>
+
+    <allow send_destination="org.bluez.Database"/>
+    <allow send_interface="org.bluez.Database"/>
+
+    <allow send_destination="org.bluez.Security"/>
+    <allow send_interface="org.bluez.Security"/>
+  </policy>
+
+</busconfig>
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to