bluez-utils: Disable glib, and restore the dbus bluetooth configuration file.
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12440 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0b0233045b
commit
d7bc187232
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=bluez-utils
|
PKG_NAME:=bluez-utils
|
||||||
PKG_VERSION:=3.36
|
PKG_VERSION:=3.36
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://bluez.sourceforge.net/download
|
PKG_SOURCE_URL:=http://bluez.sourceforge.net/download
|
||||||
@ -33,6 +33,7 @@ define Package/bluez-utils/conffiles
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
|
--disable-glib \
|
||||||
--enable-pand \
|
--enable-pand \
|
||||||
--enable-rfcomm \
|
--enable-rfcomm \
|
||||||
--enable-dund \
|
--enable-dund \
|
||||||
@ -66,6 +67,7 @@ define Package/bluez-utils/install
|
|||||||
$(INSTALL_DIR) $(1)/etc/config
|
$(INSTALL_DIR) $(1)/etc/config
|
||||||
$(INSTALL_DATA) ./files/bluetooth.conf $(1)/etc/config/bluetooth
|
$(INSTALL_DATA) ./files/bluetooth.conf $(1)/etc/config/bluetooth
|
||||||
$(INSTALL_DIR) $(1)/etc/dbus-1/system.d/
|
$(INSTALL_DIR) $(1)/etc/dbus-1/system.d/
|
||||||
|
$(INSTALL_DATA) ./files/bluetooth.dbus $(1)/etc/dbus-1/system.d/
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
$(INSTALL_BIN) ./files/bluez-utils.init $(1)/etc/init.d/bluez-utils
|
$(INSTALL_BIN) ./files/bluez-utils.init $(1)/etc/init.d/bluez-utils
|
||||||
endef
|
endef
|
||||||
|
37
utils/bluez-utils/files/bluetooth.dbus
Normal file
37
utils/bluez-utils/files/bluetooth.dbus
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<!-- 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 at_console="true">
|
||||||
|
<allow send_path="/"/>
|
||||||
|
<allow send_path="/org/bluez"/>
|
||||||
|
|
||||||
|
<allow send_destination="org.bluez.Manager"/>
|
||||||
|
<allow receive_sender="org.bluez.Manager"/>
|
||||||
|
|
||||||
|
<allow send_destination="org.bluez.Adapter"/>
|
||||||
|
<allow receive_sender="org.bluez.Adapter"/>
|
||||||
|
|
||||||
|
<allow send_destination="org.bluez.Device"/>
|
||||||
|
<allow receive_sender="org.bluez.Device"/>
|
||||||
|
|
||||||
|
<allow send_destination="org.bluez.Service"/>
|
||||||
|
<allow receive_sender="org.bluez.Service"/>
|
||||||
|
|
||||||
|
<allow send_destination="org.bluez.Database"/>
|
||||||
|
<allow receive_sender="org.bluez.Database"/>
|
||||||
|
|
||||||
|
<allow send_destination="org.bluez.Security"/>
|
||||||
|
<allow receive_sender="org.bluez.Security"/>
|
||||||
|
</policy>
|
||||||
|
|
||||||
|
</busconfig>
|
Loading…
x
Reference in New Issue
Block a user