new package: add initial package 'bluez'

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-09-21 19:23:38 +02:00
parent 8cb7e741d7
commit 30d03aaccd
4 changed files with 124 additions and 0 deletions

66
packages/network/bluez/build Executable file
View File

@ -0,0 +1,66 @@
#!/bin/sh
. config/options
$SCRIPTS/build toolchain
$SCRIPTS/build alsa-lib
$SCRIPTS/build dbus
$SCRIPTS/build glib
#$SCRIPTS/build gettext
cd $PKG_BUILD
if [ $DEBUG = yes ]; then
DEBUG_CONFIG="--enable-debug"
else
DEBUG_CONFIG="--disable-debug"
fi
if [ $DEVTOOLS = yes ]; then
DEVTOOLS_CONFIG="--enable-bccmd --enable-test --enable-tools"
else
DEVTOOLS_CONFIG="--disable-bccmd --disable-test --disable-tools"
fi
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--localstatedir=/var \
--disable-dependency-tracking \
--disable-silent-rules \
--enable-shared \
--disable-static \
--enable-optimization \
--enable-fortify \
--disable-pie \
--disable-network \
--disable-serial \
--enable-usb \
--enable-input \
--disable-audio \
--enable-service \
--disable-mcap \
--disable-pnat \
--disable-attrib \
--disable-gstreamer \
--enable-alsa \
--disable-tracer \
--enable-pcmcia \
--enable-hid2hci \
--enable-dfutool \
--enable-hidd \
--disable-pand \
--disable-dund \
--disable-cups \
--enable-udevrules \
--enable-configfiles \
--disable-maemo6 \
--disable-hal \
--disable-capng \
--disable-netlink \
--with-gnu-ld \
$DEBUG_CONFIG \
$DEVTOOLS_CONFIG
make

56
packages/network/bluez/install Executable file
View File

@ -0,0 +1,56 @@
#!/bin/sh
. config/options
$SCRIPTS/install dbus
$SCRIPTS/install glib
$SCRIPTS/install alsa-lib
PKG_DIR=`find $PACKAGES -type d -name $1`
mkdir -p $INSTALL/etc/bluetooth
cp $PKG_BUILD/src/main.conf $INSTALL/etc/bluetooth
cp $PKG_BUILD/tools/rfcomm.conf $INSTALL/etc/bluetooth
mkdir -p $INSTALL/etc/dbus-1/system.d
cp $PKG_BUILD/src/bluetooth.conf $INSTALL/etc/dbus-1/system.d
mkdir -p $INSTALL/lib/udev
cp $PKG_BUILD/scripts/bluetooth_serial $INSTALL/lib/udev
chmod +x $INSTALL/lib/udev/bluetooth_serial
mkdir -p $INSTALL/lib/udev/rules.d
cp $PKG_BUILD/scripts/97-bluetooth.rules $INSTALL/lib/udev/rules.d
cp $PKG_BUILD/scripts/97-bluetooth-hid2hci.rules $INSTALL/lib/udev/rules.d
cp $PKG_BUILD/scripts/97-bluetooth-serial.rules $INSTALL/lib/udev/rules.d
if [ $DEVTOOLS = yes ]; then
mkdir -p $INSTALL/usr/bin
cp $PKG_BUILD/tools/.libs/ciptool $INSTALL/usr/bin
cp $PKG_BUILD/tools/.libs/hcitool $INSTALL/usr/bin
cp $PKG_BUILD/tools/.libs/l2ping $INSTALL/usr/bin
cp $PKG_BUILD/tools/.libs/rfcomm $INSTALL/usr/bin
cp $PKG_BUILD/tools/.libs/sdptool $INSTALL/usr/bin
cp $PKG_BUILD/tools/dfutool $INSTALL/usr/bin
cp $PKG_BUILD/compat/.libs/hidd $INSTALL/usr/bin
cp $PKG_BUILD/test/.libs/l2test $INSTALL/usr/bin
cp $PKG_BUILD/test/.libs/rctest $INSTALL/usr/bin
fi
mkdir -p $INSTALL/usr/lib
cp $PKG_BUILD/lib/.libs/libbluetooth.so* $INSTALL/usr/lib
mkdir -p $INSTALL/usr/lib/alsa-lib
cp $PKG_BUILD/audio/.libs/*.so $INSTALL/usr/lib/alsa-lib
mkdir -p $INSTALL/usr/lib/bluetooth/plugins
#cp $PKG_BUILD/plugins/.libs/*.so $INSTALL/usr/lib/bluetooth/plugins
mkdir -p $INSTALL/usr/sbin
cp $PKG_BUILD/src/.libs/bluetoothd $INSTALL/usr/sbin
cp $PKG_BUILD/tools/.libs/bccmd $INSTALL/usr/sbin
cp $PKG_BUILD/tools/.libs/hciattach $INSTALL/usr/sbin
cp $PKG_BUILD/tools/.libs/hciconfig $INSTALL/usr/sbin
cp $PKG_BUILD/test/.libs/hciemu $INSTALL/usr/sbin
cp $PKG_BUILD/tools/hid2hci $INSTALL/usr/sbin

View File

@ -0,0 +1 @@
http://www.kernel.org/pub/linux/bluetooth/bluez-4.71.tar.bz2

View File

@ -2,6 +2,7 @@
. config/options $1 . config/options $1
$SCRIPTS/install bluez # TODO: optional
$SCRIPTS/install connman $SCRIPTS/install connman
$SCRIPTS/install dropbear $SCRIPTS/install dropbear
$SCRIPTS/install ethtool $SCRIPTS/install ethtool