bluez: New port that replaces bluez-libs and bluez-utils

This commit is contained in:
Alan Mizrahi 2012-03-28 18:28:27 +09:00
parent 611962baca
commit 7963039558
13 changed files with 177 additions and 181 deletions

View File

@ -1,25 +0,0 @@
drwxr-xr-x root/root usr/
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/
-rw-r--r-- root/root usr/lib/libbluetooth.a
-rwxr-xr-x root/root usr/lib/libbluetooth.la
lrwxrwxrwx root/root usr/lib/libbluetooth.so -> libbluetooth.so.1.0.25
lrwxrwxrwx root/root usr/lib/libbluetooth.so.1 -> libbluetooth.so.1.0.25
-rwxr-xr-x root/root usr/lib/libbluetooth.so.1.0.25
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/bluez.pc
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/aclocal/
-rw-r--r-- root/root usr/share/aclocal/bluez.m4

View File

@ -1,2 +0,0 @@
ebc8408c9a74c785786a2ef7185fe628 bluez-libs-2.25.tar.gz
a042c10f6d70de9a3ae16cf5db78f2cd bluez-libs.gcc43.patch

View File

@ -1,16 +0,0 @@
# Description: Official linux bluetooth protocol stack - libraries
# URL: http://www.bluez.org/
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
name=bluez-libs
version=2.25
release=2
source=(http://bluez.sourceforge.net/download/$name-$version.tar.gz bluez-libs.gcc43.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/bluez-libs.gcc43.patch
./configure --prefix=/usr
make
make DESTDIR=$PKG install
}

View File

@ -1,10 +0,0 @@
--- bluez-libs-2.25/src/sdp.c.orig 2009-05-29 23:15:56.842504977 +0900
+++ bluez-libs-2.25/src/sdp.c 2009-05-29 23:16:10.695271325 +0900
@@ -38,6 +38,7 @@
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
+#include <limits.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>

View File

@ -1,56 +0,0 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/bluetooth/
-rw-r--r-- root/root etc/bluetooth/hcid.conf
-rw------- root/root etc/bluetooth/pin
-rw-r--r-- root/root etc/bluetooth/rfcomm.conf
drwxr-xr-x root/root etc/default/
-rw-r--r-- root/root etc/default/bluetooth
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/bluetooth
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/bluepin
-rwxr-xr-x root/root usr/bin/ciptool
-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/lib/
drwxr-xr-x root/root usr/lib/alsa-lib/
-rwxr-xr-x root/root usr/lib/alsa-lib/libasound_module_pcm_a2dp.la
-rwxr-xr-x root/root usr/lib/alsa-lib/libasound_module_pcm_a2dp.so
-rwxr-xr-x root/root usr/lib/alsa-lib/libasound_module_pcm_headset.la
-rwxr-xr-x root/root usr/lib/alsa-lib/libasound_module_pcm_headset.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/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/ciptool.1.gz
-rw-r--r-- root/root usr/man/man1/dund.1.gz
-rw-r--r-- root/root usr/man/man1/hcitool.1.gz
-rw-r--r-- root/root usr/man/man1/hidd.1.gz
-rw-r--r-- root/root usr/man/man1/l2ping.1.gz
-rw-r--r-- root/root usr/man/man1/pand.1.gz
-rw-r--r-- root/root usr/man/man1/rfcomm.1.gz
-rw-r--r-- root/root usr/man/man1/sdptool.1.gz
drwxr-xr-x root/root usr/man/man5/
-rw-r--r-- root/root usr/man/man5/hcid.conf.5.gz
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/hciattach.8.gz
-rw-r--r-- root/root usr/man/man8/hciconfig.8.gz
-rw-r--r-- root/root usr/man/man8/hcid.8.gz
-rw-r--r-- root/root usr/man/man8/hid2hci.8.gz
-rw-r--r-- root/root usr/man/man8/sdpd.8.gz
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/hciattach
-rwxr-xr-x root/root usr/sbin/hciconfig
-rwxr-xr-x root/root usr/sbin/hcid
-rwxr-xr-x root/root usr/sbin/hid2hci
-rwxr-xr-x root/root usr/sbin/sdpd
drwxr-xr-x root/root usr/var/
drwxr-xr-x root/root usr/var/lib/
drwxr-xr-x root/root usr/var/lib/bluetooth/

View File

@ -1,2 +0,0 @@
ae3729ab5592be06ed01b973d4b3e9fe bluez-utils-2.25.tar.gz
3515e68f53ab4018fdef10f0026f9508 bluez-utils.gcc43.patch

View File

@ -1,30 +0,0 @@
# Description: Official linux bluetooth protocol stack - utilities
# URL: http://www.bluez.org/
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
# Depends on: python, cups, libusb, bluez-libs
name=bluez-utils
version=2.25
release=2
source=(http://bluez.sourceforge.net/download/$name-$version.tar.gz bluez-utils.gcc43.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/bluez-utils.gcc43.patch
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-alsa \
--enable-cups \
--enable-initscripts \
--enable-hid2hci \
--disable-dbus \
--disable-nls
make
make DESTDIR=$PKG install
mv $PKG/etc/init.d $PKG/etc/rc.d
sed -i 's#/etc/init.d#/etc/rc.d#' $PKG/etc/rc.d/bluetooth
chown -R root:root $PKG
}

View File

@ -1,40 +0,0 @@
--- bluez-utils-2.25/tools/hciconfig.c.orig 2009-05-29 23:20:42.465846076 +0900
+++ bluez-utils-2.25/tools/hciconfig.c 2009-05-29 23:20:24.656113414 +0900
@@ -36,6 +36,7 @@
#include <getopt.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
+#include <limits.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
--- bluez-utils-2.25/tools/hciattach.c.orig 2009-05-29 23:09:38.201730680 +0900
+++ bluez-utils-2.25/tools/hciattach.c 2009-05-29 23:10:00.495664682 +0900
@@ -40,6 +40,7 @@
#include <sys/time.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
+#include <limits.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
--- bluez-utils-2.25/sdpd/request.c.orig 2009-05-29 23:21:31.751057125 +0900
+++ bluez-utils-2.25/sdpd/request.c 2009-05-29 23:21:45.857770332 +0900
@@ -33,6 +33,7 @@
#include <malloc.h>
#include <syslog.h>
#include <sys/socket.h>
+#include <limits.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/sdp.h>
--- bluez-utils-2.25/hidd/sdp.c.orig 2009-05-29 23:23:37.324463314 +0900
+++ bluez-utils-2.25/hidd/sdp.c 2009-05-29 23:24:18.087891487 +0900
@@ -34,6 +34,7 @@
#include <string.h>
#include <sys/stat.h>
#include <sys/socket.h>
+#include <limits.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/l2cap.h>

98
bluez/.footprint Normal file
View File

@ -0,0 +1,98 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/bluetooth
drwxr-xr-x root/root lib/
drwxr-xr-x root/root lib/udev/
-rwxr-xr-x root/root lib/udev/hid2hci
drwxr-xr-x root/root lib/udev/rules.d/
-rw-r--r-- root/root lib/udev/rules.d/97-bluetooth-hid2hci.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/bluez-test-device
-rwxr-xr-x root/root usr/bin/bluez-test-input
-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/gatttool
-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/etc/
drwxr-xr-x root/root usr/etc/bluetooth/
-rw-r--r-- root/root usr/etc/bluetooth/audio.conf
-rw-r--r-- root/root usr/etc/bluetooth/input.conf
-rw-r--r-- root/root usr/etc/bluetooth/main.conf
-rw-r--r-- root/root usr/etc/bluetooth/network.conf
-rw-r--r-- root/root usr/etc/bluetooth/rfcomm.conf
-rw-r--r-- root/root usr/etc/bluetooth/serial.conf
drwxr-xr-x root/root usr/etc/dbus-1/
drwxr-xr-x root/root usr/etc/dbus-1/system.d/
-rw-r--r-- root/root usr/etc/dbus-1/system.d/bluetooth.conf
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/bluetooth/
-rw-r--r-- root/root usr/include/bluetooth/a2mp.h
-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/mgmt.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
-rw-r--r-- root/root usr/include/bluetooth/uuid.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/
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.12.0
lrwxrwxrwx root/root usr/lib/libbluetooth.so.3 -> libbluetooth.so.3.12.0
-rwxr-xr-x root/root usr/lib/libbluetooth.so.3.12.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/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/ciptool.1.gz
-rw-r--r-- root/root usr/man/man1/dfutool.1.gz
-rw-r--r-- root/root usr/man/man1/dund.1.gz
-rw-r--r-- root/root usr/man/man1/hcitool.1.gz
-rw-r--r-- root/root usr/man/man1/hidd.1.gz
-rw-r--r-- root/root usr/man/man1/pand.1.gz
-rw-r--r-- root/root usr/man/man1/rfcomm.1.gz
-rw-r--r-- root/root usr/man/man1/sdptool.1.gz
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/bccmd.8.gz
-rw-r--r-- root/root usr/man/man8/bluetoothd.8.gz
-rw-r--r-- root/root usr/man/man8/hciattach.8.gz
-rw-r--r-- root/root usr/man/man8/hciconfig.8.gz
-rw-r--r-- root/root usr/man/man8/hid2hci.8.gz
-rw-r--r-- root/root usr/man/man8/l2ping.8.gz
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/alsa/
-rw-r--r-- root/root usr/share/alsa/bluetooth.conf
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/lib/
drwxr-xr-x root/root var/lib/bluetooth/

2
bluez/.md5sum Normal file
View File

@ -0,0 +1,2 @@
47bbb7141c099be7e3c4e8ed7de6ffd6 bluetooth.rc
570aa10692ed890aa0a4297b37824912 bluez-4.99.tar.gz

46
bluez/Pkgfile Normal file
View File

@ -0,0 +1,46 @@
# Description: Bluetooth libraries and utilities
# URL: http://www.bluez.org
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
# Depends on: dbus
name=bluez
version=4.99
release=1
source=(http://www.kernel.org/pub/linux/bluetooth/$name-$version.tar.gz bluetooth.rc)
build() {
# note: sysconfdir is /usr/etc instead of /etc on purpose
# in CRUX some people use /usr/etc for config files, I know its stupid
cd $name-$version
./configure \
--prefix=/usr \
--sysconfdir=/usr/etc \
--mandir=/usr/man \
--localstatedir=/var \
--enable-usb \
--enable-tools \
--enable-hid2hci \
--enable-hidd \
--enable-pand \
--enable-dund \
--enable-alsa \
--enable-bccmd \
--enable-dfutool \
--enable-cups \
--enable-gstreamer \
--disable-test
make
make DESTDIR=$PKG install
for i in network input audio serial; do
cp $i/$i.conf $PKG/usr/etc/bluetooth
done
install -m 755 -o root -g root -D test/simple-agent $PKG/usr/bin/bluez-simple-agent
install -m 755 -o root -g root -D test/test-device $PKG/usr/bin/bluez-test-device
install -m 755 -o root -g root -D test/test-input $PKG/usr/bin/bluez-test-input
install -m 755 -o root -g root -D $SRC/bluetooth.rc $PKG/etc/rc.d/bluetooth
rm $PKG/lib/udev/rules.d/97-bluetooth.rules
}

4
bluez/README Normal file
View File

@ -0,0 +1,4 @@
Bluetooth uses dbus for inter-process communication.
If your desktop applications are unable to connect to the bluetooth daemon
please check the bluetooth security policies in
/usr/etc/dbus-1/system.d/bluetooth.conf

27
bluez/bluetooth.rc Executable file
View File

@ -0,0 +1,27 @@
#!/bin/sh
#
# /etc/rc.d/bluetooth: start/stop bluetooth daemon
#
# Note:
# To connect to an input device at boot time, add:
# hidd --connect XX:XX:XX:XX:XX:XX
case $1 in
start)
/usr/sbin/bluetoothd
;;
stop)
killall -e -q bluetoothd
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file