summaryrefslogtreecommitdiff
path: root/package/bluez
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/bluez
Initial import
Diffstat (limited to 'package/bluez')
-rw-r--r--package/bluez/Config.in10
-rw-r--r--package/bluez/Makefile47
-rw-r--r--package/bluez/files/bluez.init26
-rw-r--r--package/bluez/ipkg/bluez.control5
-rw-r--r--package/bluez/patches/patch-tools_hciattach_c19
5 files changed, 107 insertions, 0 deletions
diff --git a/package/bluez/Config.in b/package/bluez/Config.in
new file mode 100644
index 000000000..3bb4c4a37
--- /dev/null
+++ b/package/bluez/Config.in
@@ -0,0 +1,10 @@
+config ADK_PACKAGE_BLUEZ
+ prompt "bluez............................. Bluetooth library and tools"
+ tristate
+ default n
+ select ADK_KPACKAGE_KMOD_BT
+ help
+ Bluez libs and apps.
+
+ http://bluez.org
+
diff --git a/package/bluez/Makefile b/package/bluez/Makefile
new file mode 100644
index 000000000..7e9c4b89e
--- /dev/null
+++ b/package/bluez/Makefile
@@ -0,0 +1,47 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= bluez
+PKG_VERSION:= 4.12
+PKG_RELEASE:= 1
+PKG_MD5SUM:= e599d7f4ed7e022c85e485934f29a340
+MASTER_SITES:= ${MASTER_SITE_KERNEL:=bluetooth/}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,BLUEZ,bluez,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE:= gnu
+CONFIGURE_ARGS+= --enable-tools \
+ --enable-alsa \
+ --enable-usb \
+ --enable-bccmd \
+ --enable-hidd \
+ --enable-pand \
+ --enable-dund \
+ --disable-cups
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libbluetooth.so.* ${IDIR_BLUEZ}/usr/lib/
+ ${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
+ ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
+ ${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin/
+ ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/sbin
+ ${CP} ${WRKINST}/usr/sbin/* ${IDIR_BLUEZ}/usr/sbin/
+ ${INSTALL_DIR} ${IDIR_BLUEZ}/etc/bluetooth
+ ${CP} ${WRKINST}/etc/bluetooth/rfcomm.conf \
+ ${IDIR_BLUEZ}/etc/bluetooth/
+ $(INSTALL_DATA) $(WRKINST)/etc/dbus-1/system.d/bluetooth.conf \
+ $(IDIR_BLUEZ)/etc/dbus-1/system.d
+ ${INSTALL_DIR} ${IDIR_BLUEZ}/etc/init.d
+ ${INSTALL_BIN} ./files/bluez.init \
+ ${IDIR_BLUEZ}/etc/init.d/bluez
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/bluez/files/bluez.init b/package/bluez/files/bluez.init
new file mode 100644
index 000000000..20c128ad0
--- /dev/null
+++ b/package/bluez/files/bluez.init
@@ -0,0 +1,26 @@
+#!/bin/sh
+#FWINIT 90
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${bluez:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ bluetoothd
+ ;;
+stop)
+ killall bluetoothd
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?
diff --git a/package/bluez/ipkg/bluez.control b/package/bluez/ipkg/bluez.control
new file mode 100644
index 000000000..0b32376ad
--- /dev/null
+++ b/package/bluez/ipkg/bluez.control
@@ -0,0 +1,5 @@
+Package: bluez
+Priority: optional
+Section: net
+Description: Bluez libs and apps
+Depends: kmod-bluetooth
diff --git a/package/bluez/patches/patch-tools_hciattach_c b/package/bluez/patches/patch-tools_hciattach_c
new file mode 100644
index 000000000..ae8f70f57
--- /dev/null
+++ b/package/bluez/patches/patch-tools_hciattach_c
@@ -0,0 +1,19 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- bluez-4.12.orig/tools/hciattach.c 2008-08-05 23:14:56.000000000 +0200
++++ bluez-4.12/tools/hciattach.c 2009-05-12 18:14:29.000000000 +0200
+@@ -107,6 +107,7 @@ static int uart_speed(int s)
+ return B57600;
+ case 115200:
+ return B115200;
++#if 0
+ case 230400:
+ return B230400;
+ case 460800:
+@@ -125,6 +126,7 @@ static int uart_speed(int s)
+ return B1500000;
+ case 2000000:
+ return B2000000;
++#endif
+ #ifdef B2500000
+ case 2500000:
+ return B2500000;