summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
Diffstat (limited to 'extra')
-rw-r--r--extra/bluez/.footprint94
-rw-r--r--extra/bluez/.md5sum3
-rwxr-xr-xextra/bluez/Pkgfile58
-rw-r--r--extra/bluez/bluetooth.conf.d30
-rw-r--r--extra/bluez/rc.bluetooth97
5 files changed, 282 insertions, 0 deletions
diff --git a/extra/bluez/.footprint b/extra/bluez/.footprint
new file mode 100644
index 000000000..f5c6cee22
--- /dev/null
+++ b/extra/bluez/.footprint
@@ -0,0 +1,94 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/alsa/
+-rw-r--r-- root/root etc/alsa/bluetooth.conf
+drwxr-xr-x root/root etc/bluetooth/
+-rw-r--r-- root/root etc/bluetooth/audio.conf
+-rw-r--r-- root/root etc/bluetooth/input.conf
+-rw-r--r-- root/root etc/bluetooth/main.conf
+-rw-r--r-- root/root etc/bluetooth/network.conf
+-rw-r--r-- root/root etc/bluetooth/rfcomm.conf
+-rw-r--r-- root/root etc/bluetooth/serial.conf
+drwxr-xr-x root/root etc/conf.d/
+-rw-r--r-- root/root etc/conf.d/bluetooth
+drwxr-xr-x root/root etc/dbus-1/
+drwxr-xr-x root/root etc/dbus-1/system.d/
+-rw-r--r-- root/root etc/dbus-1/system.d/bluetooth.conf
+drwxr-xr-x root/root etc/rc.d/
+drwxr-xr-x root/root etc/rc.d/init.d/
+-rwxr-xr-x root/root etc/rc.d/init.d/bluetooth
+drwxr-xr-x root/root lib/
+drwxr-xr-x root/root lib/udev/
+drwxr-xr-x root/root lib/udev/rules.d/
+-rw-r--r-- root/root lib/udev/rules.d/97-bluetooth.rules
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/bluez-simple-agent
+-rwxr-xr-x root/root usr/bin/ciptool
+-rwxr-xr-x root/root usr/bin/dfutool
+-rwxr-xr-x root/root usr/bin/dund
+-rwxr-xr-x root/root usr/bin/hcitool
+-rwxr-xr-x root/root usr/bin/hidd
+-rwxr-xr-x root/root usr/bin/l2ping
+-rwxr-xr-x root/root usr/bin/pand
+-rwxr-xr-x root/root usr/bin/rfcomm
+-rwxr-xr-x root/root usr/bin/sdptool
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/bluetooth/
+-rw-r--r-- root/root usr/include/bluetooth/bluetooth.h
+-rw-r--r-- root/root usr/include/bluetooth/bnep.h
+-rw-r--r-- root/root usr/include/bluetooth/cmtp.h
+-rw-r--r-- root/root usr/include/bluetooth/hci.h
+-rw-r--r-- root/root usr/include/bluetooth/hci_lib.h
+-rw-r--r-- root/root usr/include/bluetooth/hidp.h
+-rw-r--r-- root/root usr/include/bluetooth/l2cap.h
+-rw-r--r-- root/root usr/include/bluetooth/rfcomm.h
+-rw-r--r-- root/root usr/include/bluetooth/sco.h
+-rw-r--r-- root/root usr/include/bluetooth/sdp.h
+-rw-r--r-- root/root usr/include/bluetooth/sdp_lib.h
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/alsa-lib/
+-rwxr-xr-x root/root usr/lib/alsa-lib/libasound_module_ctl_bluetooth.la
+-rwxr-xr-x root/root usr/lib/alsa-lib/libasound_module_ctl_bluetooth.so
+-rwxr-xr-x root/root usr/lib/alsa-lib/libasound_module_pcm_bluetooth.la
+-rwxr-xr-x root/root usr/lib/alsa-lib/libasound_module_pcm_bluetooth.so
+drwxr-xr-x root/root usr/lib/bluetooth/
+drwxr-xr-x root/root usr/lib/bluetooth/plugins/
+-rwxr-xr-x root/root usr/lib/bluetooth/plugins/netlink.la
+-rwxr-xr-x root/root usr/lib/bluetooth/plugins/netlink.so
+drwxr-xr-x root/root usr/lib/cups/
+drwxr-xr-x root/root usr/lib/cups/backend/
+-rwxr-xr-x root/root usr/lib/cups/backend/bluetooth
+drwxr-xr-x root/root usr/lib/gstreamer-0.10/
+-rwxr-xr-x root/root usr/lib/gstreamer-0.10/libgstbluetooth.la
+-rwxr-xr-x root/root usr/lib/gstreamer-0.10/libgstbluetooth.so
+-rwxr-xr-x root/root usr/lib/libbluetooth.la
+lrwxrwxrwx root/root usr/lib/libbluetooth.so -> libbluetooth.so.3.9.0
+lrwxrwxrwx root/root usr/lib/libbluetooth.so.3 -> libbluetooth.so.3.9.0
+-rwxr-xr-x root/root usr/lib/libbluetooth.so.3.9.0
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/bluez.pc
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/bccmd
+-rwxr-xr-x root/root usr/sbin/bluetoothd
+-rwxr-xr-x root/root usr/sbin/hciattach
+-rwxr-xr-x root/root usr/sbin/hciconfig
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/ciptool.1.gz
+-rw-r--r-- root/root usr/share/man/man1/dfutool.1.gz
+-rw-r--r-- root/root usr/share/man/man1/dund.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hcitool.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hidd.1.gz
+-rw-r--r-- root/root usr/share/man/man1/pand.1.gz
+-rw-r--r-- root/root usr/share/man/man1/rfcomm.1.gz
+-rw-r--r-- root/root usr/share/man/man1/sdptool.1.gz
+drwxr-xr-x root/root usr/share/man/man8/
+-rw-r--r-- root/root usr/share/man/man8/bccmd.8.gz
+-rw-r--r-- root/root usr/share/man/man8/bluetoothd.8.gz
+-rw-r--r-- root/root usr/share/man/man8/hciattach.8.gz
+-rw-r--r-- root/root usr/share/man/man8/hciconfig.8.gz
+-rw-r--r-- root/root usr/share/man/man8/l2ping.8.gz
+drwxr-xr-x root/root var/
+drwxr-xr-x root/root var/lib/
+drwxr-xr-x root/root var/lib/bluetooth/
diff --git a/extra/bluez/.md5sum b/extra/bluez/.md5sum
new file mode 100644
index 000000000..2eff792fd
--- /dev/null
+++ b/extra/bluez/.md5sum
@@ -0,0 +1,3 @@
+8f60a5eb9d84b9c64c478d63e1c24b10 bluetooth.conf.d
+350568aa11a95eac6e56e9289ff1f91d bluez-4.69.tar.bz2
+e815eae10caf6150d8aa183fb3c55d73 rc.bluetooth
diff --git a/extra/bluez/Pkgfile b/extra/bluez/Pkgfile
new file mode 100755
index 000000000..6b741f454
--- /dev/null
+++ b/extra/bluez/Pkgfile
@@ -0,0 +1,58 @@
+# Description: Librairies et outils pour le bluetooth
+# URL: http://www.bluez.org/
+# Maintainer: NuTyX packager team
+# Packager: lesibel at free dot fr
+# Depends on: dbus, gstreamer, libnl, libsndfile, dbus-python, pygobject, libusb, cups
+
+name=bluez
+version=4.69
+release=1
+source=(http://www.kernel.org/pub/linux/bluetooth/$name-$version.tar.bz2
+ bluetooth.conf.d
+ rc.bluetooth)
+
+build() {
+ cd $name-$version
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libexecdir=/lib \
+ --mandir=/usr/share/man \
+ --enable-network \
+ --enable-serial \
+ --enable-input \
+ --enable-audio \
+ --enable-service \
+ --enable-gstreamer \
+ --enable-alsa \
+ --enable-usb \
+ --enable-netlink \
+ --enable-tools \
+ --enable-bccmd \
+ --enable-dfutool \
+ --enable-hidd \
+ --enable-pand \
+ --enable-dund \
+ --enable-cups \
+ --enable-udevrules \
+ --enable-configfiles
+ make -j5
+ make DESTDIR=$PKG install
+
+ install -Dm755 $SRC/rc.bluetooth $PKG/etc/rc.d/init.d/bluetooth
+
+ install -d $PKG/etc/bluetooth
+ install -m644 network/network.conf \
+ input/input.conf \
+ audio/audio.conf \
+ serial/serial.conf \
+ $PKG/etc/bluetooth/
+
+ install -Dm644 $SRC/bluetooth.conf.d \
+ $PKG/etc/conf.d/bluetooth
+
+ install -Dm755 test/simple-agent \
+ $PKG/usr/bin/bluez-simple-agent
+}
+
diff --git a/extra/bluez/bluetooth.conf.d b/extra/bluez/bluetooth.conf.d
new file mode 100644
index 000000000..6648740eb
--- /dev/null
+++ b/extra/bluez/bluetooth.conf.d
@@ -0,0 +1,30 @@
+# Bluetooth configuraton file
+
+# Bluetooth services (allowed values are "true" and "false")
+
+# Run the bluetoothd daemon (default: true)
+#DAEMON_ENABLE="false"
+
+# Run the sdp daemon (default: false)
+# If this is disabled, hcid's internal sdp daemon will be used
+#SDPD_ENABLE="true"
+
+# Run the bluetooth HID daemon (default: false)
+#HIDD_ENABLE="true"
+
+# Activate rfcomm ports (default: false)
+#RFCOMM_ENABLE="true"
+
+# Run bluetooth dial-up networking daemon (default: false)
+#DUND_ENABLE="true"
+
+# Run bluetooth PAN daemon (default: false)
+#PAND_ENABLE="true"
+
+# rfcomm configuration file (default: /etc/bluetooth/rfcomm.conf)
+#RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"
+
+# Options for hidd, dund and pand (default: none)
+#HIDD_OPTIONS=""
+#DUND_OPTIONS=""
+#PAND_OPTIONS=""
diff --git a/extra/bluez/rc.bluetooth b/extra/bluez/rc.bluetooth
new file mode 100644
index 000000000..baca3cf22
--- /dev/null
+++ b/extra/bluez/rc.bluetooth
@@ -0,0 +1,97 @@
+#!/bin/bash
+#
+# Start/stop the Bluetooth daemons
+#
+
+DAEMON_NAME="bluetoothd"
+HIDD_NAME="hidd"
+RFCOMM_NAME="rfcomm"
+PAND_NAME="pand"
+DUND_NAME="dund"
+
+DAEMON_EXEC="/usr/sbin/bluetoothd"
+HIDD_EXEC="/usr/bin/hidd"
+RFCOMM_EXEC="/usr/bin/rfcomm"
+PAND_EXEC="/usr/bin/pand"
+DUND_EXEC="/usr/bin/dund"
+
+DAEMON_ENABLE="true"
+HIDD_ENABLE="false"
+RFCOMM_ENABLE="false"
+DUND_ENABLE="false"
+PAND_ENABLE="false"
+
+RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"
+
+HIDD_OPTIONS=""
+DUND_OPTIONS=""
+PAND_OPTIONS=""
+
+[ -f /etc/conf.d/bluetooth ] && . /etc/conf.d/bluetooth
+
+case "$1" in
+ start)
+ #stat_busy "Starting bluetooth subsystem:"
+ if [ "$DAEMON_ENABLE" = "true" -a -x "$DAEMON_EXEC" ] ; then
+ #stat_append " $DAEMON_NAME"
+ $DAEMON_EXEC
+ sleep 1
+ fi
+ if [ "$SDPD_ENABLE" = "true" -a -x "$SDPD_EXEC" ] ; then
+ #stat_append " $SDPD_NAME"
+ $SDPD_EXEC
+ fi
+ if [ "$HIDD_ENABLE" = "true" -a -x "$HIDD_EXEC" ]; then
+ #stat_append " $HIDD_NAME"
+ $HIDD_EXEC $HIDD_OPTIONS --server
+ fi
+ if [ "$RFCOMM_ENABLE" = "true" -a -x "$RFCOMM_EXEC" -a -f "$RFCOMM_CONFIG" ]; then
+ #stat_append " $RFCOMM_NAME"
+ $RFCOMM_EXEC -f $RFCOMM_CONFIG bind all
+ fi
+ if [ "$DUND_ENABLE" = "true" -a -x "$DUND_EXEC" -a -n "$DUND_OPTIONS" ]; then
+ #stat_append " $DUND_NAME"
+ $DUND_EXEC $DUND_OPTIONS
+ fi
+ if [ "$PAND_ENABLE" = "true" -a -x "$PAND_EXEC" -a -n "$PAND_OPTIONS" ]; then
+ #stat_append " $PAND_NAME"
+ $PAND_EXEC $PAND_OPTIONS
+ fi
+ #add_daemon bluetooth
+ #stat_done
+ ;;
+ stop)
+ #stat_busy "Stopping bluetooth subsystem:"
+
+ #stat_append " $PAND_NAME"
+ killall $PAND_NAME >/dev/null 2>&1
+
+ #stat_append " $DUND_NAME"
+ killall $DUND_NAME >/dev/null 2>&1
+
+ if [ -x "$RFCOMM_EXEC" ]; then
+ #stat_append " $RFCOMM_NAME"
+ $RFCOMM_EXEC release all >/dev/null 2>&1
+ fi
+
+ #stat_append " $HIDD_NAME"
+ killall $HIDD_NAME >/dev/null 2>&1
+
+ #stat_append " $SDPD_NAME"
+ killall $SDPD_NAME >/dev/null 2>&1
+
+ #stat_append " $DAEMON_NAME"
+ killall $DAEMON_NAME >/dev/null 2>&1
+
+ #rm_daemon bluetooth
+ #stat_done
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0