Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=bluez.git;a=commitdiff;h=435e2a22de26c48fe19baf1a4b2b27f62579ab8f

commit 435e2a22de26c48fe19baf1a4b2b27f62579ab8f
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Sat Oct 3 22:03:41 2009 +0200

bluez-4.54-1-i686
*new package
*that replace bluez-*

diff --git a/source/apps/bluez/FrugalBuild b/source/apps/bluez/FrugalBuild
new file mode 100644
index 0000000..6692bc9
--- /dev/null
+++ b/source/apps/bluez/FrugalBuild
@@ -0,0 +1,55 @@
+# Compiling Time: 0.42 SBU
+# Maintainer: Priyank Gosalia <priyan...@gmail.com>
+
+pkgname=bluez
+pkgver=4.54
+pkgrel=1
+pkgdesc="Library to use the BlueZ Linux Bluetooth stack"
+url="http://bluez.sourceforge.net/";
+depends=('dbus-glib>=0.76' 'hal>=0.5.11' 'alsa-lib' 'openobex>=1.3-10')
+groups=('apps')
+archs=('i686' 'x86_64' 'ppc')
+up2date="Flasttar http://www.bluez.org/download/";
+source=(http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.gz \
+        rc.bluetooth uart.conf bluetooth.default bluetooth-dbus.conf)
+sha1sums=('b61ea5eebf524c3d3fad41fda649e8b63feb3383' \
+          'd7b8ea99d68c2f9c1e411ebc47d49cbbb8d44b4b' \
+          '706231256b0ef53e20f22b4f163e8008f092d28a' \
+          'e80cf645c853c30378411e4a7262dfd03a6f909e' \
+          '7b62baa3bdf06b2d54cf9e9bc3358e2f90454311')
+conflicts=('bluez-utils' 'bluez-lib')
+provides=('bluez-utils' 'bluez-lib')
+replaces=('bluez-utils' 'bluez-lib')
+backup=(etc/sysconfig/bluetooth etc/bluetooth/hcid.conf etc/bluetooth/rfcomm.conf etc/bluetooth/uart.conf)
+
+#--enable-gstreamer
+
+build() {
+       Frcd bluetooth
+       Ffile bluetooth.default /etc/sysconfig/bluetooth
+        Ffile uart.conf /etc/bluetooth/uart.conf
+        Fbuild --enable-serial \
+               --enable-input \
+               --enable-audio \
+               --enable-service \
+               --enable-alsa \
+               --enable-usb \
+               --enable-netlink \
+               --enable-tools \
+               --enable-bccmd \
+               --enable-hid2hci \
+               --enable-dfutool \
+               --enable-hidd \
+               --enable-pand \
+               --enable-dund \
+               --enable-cups \
+               --enable-configfiles \
+               --localstatedir=/var
+       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/bluez/bluetooth-dbus.conf 
b/source/apps/bluez/bluetooth-dbus.conf
new file mode 100644
index 0000000..39b46f9
--- /dev/null
+++ b/source/apps/bluez/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>
diff --git a/source/apps/bluez/bluetooth.default 
b/source/apps/bluez/bluetooth.default
new file mode 100644
index 0000000..729405b
--- /dev/null
+++ b/source/apps/bluez/bluetooth.default
@@ -0,0 +1,11 @@
+# Bluetooth configuraton file
+
+# Run hid2hci (allowed values are "true" and "false")
+HID2HCI_ENABLE=true
+
+# Run hcid
+HCID_ENABLE=true
+
+# Don't edit the following line unless you know what you're doing
+HCID_CONFIG="/etc/bluetooth/hcid.conf"
+
diff --git a/source/apps/bluez/bluez.install b/source/apps/bluez/bluez.install
new file mode 100644
index 0000000..5ea3d4b
--- /dev/null
+++ b/source/apps/bluez/bluez.install
@@ -0,0 +1,18 @@
+# arg 1:  the new package version
+post_install()
+{
+       chkconfig --add rc.bluetooth
+}
+
+# arg 1:  the old package version
+pre_remove()
+{
+       chkconfig --del rc.bluetooth
+}
+
+op=$1
+shift
+
+$op $*
+
+# vim: ft=sh
diff --git a/source/apps/bluez/messages/bluetooth.en 
b/source/apps/bluez/messages/bluetooth.en
new file mode 100644
index 0000000..3615694
--- /dev/null
+++ b/source/apps/bluez/messages/bluetooth.en
@@ -0,0 +1,16 @@
+startbluetooth="Initializing Bluetooth subsystem..."
+starthcid="Starting hcid"
+startsdpd="Starting sdpd"
+starthidd="Starting hidd"
+starthid2hci="Starting hid2hci"
+startrfcomm="Starting rfcomm"
+startdund="Starting dund"
+startpand="Starting pand"
+stopbluetooth="Bringing down Bluetooth subsystem..."
+stoppand="Stopping pand"
+stopdund="Stopping dund"
+stoprfcomm="Stopping rfcomm"
+stophidd="Stopping hidd"
+stopsdpd="Stopping sdpd"
+stophcid="Stopping hcid"
+startdbusservices="Registering dbus services for bluez..."
diff --git a/source/apps/bluez/messages/bluetooth.hu 
b/source/apps/bluez/messages/bluetooth.hu
new file mode 100644
index 0000000..1df0d15
--- /dev/null
+++ b/source/apps/bluez/messages/bluetooth.hu
@@ -0,0 +1,16 @@
+startbluetooth="Bluetooth alrendszer betöltése..."
+starthcid="hcid indítása"
+startsdpd="sdpd indítása"
+starthidd="hidd indítása"
+starthid2hci="hid2hci indítása"
+startrfcomm="rfcomm indítása"
+startdund="dund indítása"
+startpand="pand indítása"
+stopbluetooth="Bluetooth alrendszer leállítása..."
+stoppand="pand leállítása"
+stopdund="dund leállítása"
+stoprfcomm="rfcomm leállítása"
+stophidd="hidd leállítása"
+stopsdpd="sdpd leállítása"
+stophcid="hcid leállítása"
+startdbusservices="Bluetooth alrendszer regisztrálása a Dbus rendszerben..."
\ No newline at end of file
diff --git a/source/apps/bluez/rc.bluetooth b/source/apps/bluez/rc.bluetooth
new file mode 100644
index 0000000..1a9429c
--- /dev/null
+++ b/source/apps/bluez/rc.bluetooth
@@ -0,0 +1,93 @@
+#!/bin/sh
+
+# (c) 2006 Christian Hamar alias krix <kr...@linuxforum.hu>
+# rc.bluetooth for FrugalWare
+# distributed under GPL License
+
+. /etc/rc.d/rc.functions
+. /etc/sysconfig/bluetooth
+
+# chkconfig: 2345 98 12
+# description:  Bluetooth management daemon
+
+submsg() {
+       echo -ne "\e[01;36m\t*\e[0m \e[01m$1\e[0m"
+}
+
+if [ "$1" = "stop" ]; then
+  stop "$stopbluetooth"; echo
+  if [ "$PAND_ENABLE" = "true" ]; then
+    submsg "$stoppand"
+    killall pand &> /dev/null
+    ok $?
+  fi
+  if [ "$DUND_ENABLE" = "true" ]; then
+    submsg "$stopdund"
+    killall dund &> /dev/null
+    ok $?
+  fi
+  if [ "$RFCOMM_ENABLE" = "true" ]; then
+    submsg "$stoprfcomm"
+    rfcomm release all &> /dev/null
+    ok $?
+  fi
+  #if [ "$HIDD_ENABLE" = "true" ]; then
+  #  submsg "$stophidd"
+  #  killall hidd &> /dev/null
+  #  ok $?
+  #fi
+  #if [ "$SDPD_ENABLE" = "true" ]; then
+  #  submsg "$stopsdpd"
+  #  killall sdpd &> /dev/null
+  #  ok $?
+  #fi
+  if [ "$HCID_ENABLE" = "true" ]; then
+    submsg "$stophcid"
+    killall hcid &> /dev/null
+    ok $?
+  fi
+elif [ "$1" = "restart" ]; then
+  "$0" stop
+  sleep 1
+  "$0" start
+elif [ "$1" = "start" ]; then
+  start "$startbluetooth"; echo
+  submsg "$startdbusservices"
+  dbus-send --system --dest=org.bluez /org/bluez/hci0 
org.bluez.Adapter.SetMode string:discoverable
+  ok $?
+  if [ "$HCID_ENABLE" = "true" ]; then
+    submsg "$starthcid"
+    hcid -f $HCID_CONFIG
+    ok $?
+  fi
+  #if [ "$SDPD_ENABLE" = "true" ]; then
+  #  submsg "$startsdpd"
+  #  sdpd
+  #  ok $?
+  #fi
+  #if [ "$HIDD_ENABLE" = "true" ]; then
+  #  submsg "$starthidd"
+  #  hidd $HIDD_OPTIONS --server || true
+  #  ok $?
+  #fi
+  if [ "$HID2HCI_ENABLE" = "true" ]; then
+    submsg "$starthid2hci"
+    hid2hci --tohci &> /dev/null || true
+    ok $?
+  fi
+  if [ "$RFCOMM_ENABLE" = "true" ]; then
+    submsg "$startrfcomm"
+    rfcomm -f $RFCOMM_CONFIG bind all || true
+    ok $?
+  fi
+  if [ "$DUND_ENABLE" = "true" ]; then
+    submsg "$startdund"
+    dund $DUND_OPTIONS
+    ok $?
+  fi
+  if [ "$PAND_ENABLE" = "true" ]; then
+    submsg "$startpand"
+    pand $PAND_OPTIONS
+    ok $?
+  fi
+fi
diff --git a/source/apps/bluez/uart.conf b/source/apps/bluez/uart.conf
new file mode 100644
index 0000000..1fc43e7
--- /dev/null
+++ b/source/apps/bluez/uart.conf
@@ -0,0 +1 @@
+/dev/ttyS2 csr 460800
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to