bluez: Moved from contrib
This commit is contained in:
parent
229f277de2
commit
ee15297766
153
bluez/.footprint
Normal file
153
bluez/.footprint
Normal file
@ -0,0 +1,153 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
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/rc.d/
|
||||
-rwxr-xr-x root/root etc/rc.d/bluetoothd
|
||||
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-avctrl
|
||||
-rwxr-xr-x root/root usr/bin/bluez-avinfo
|
||||
-rwxr-xr-x root/root usr/bin/bluez-bccmd
|
||||
-rwxr-xr-x root/root usr/bin/bluez-ciptool
|
||||
-rwxr-xr-x root/root usr/bin/bluez-dfubabel
|
||||
-rwxr-xr-x root/root usr/bin/bluez-dfutool
|
||||
-rwxr-xr-x root/root usr/bin/bluez-hciattach
|
||||
-rwxr-xr-x root/root usr/bin/bluez-hciconfig
|
||||
-rwxr-xr-x root/root usr/bin/bluez-hcieventmask
|
||||
-rwxr-xr-x root/root usr/bin/bluez-hcisecfilter
|
||||
-rwxr-xr-x root/root usr/bin/bluez-hcitool
|
||||
-rwxr-xr-x root/root usr/bin/bluez-hid2hci
|
||||
-rwxr-xr-x root/root usr/bin/bluez-hsmicro
|
||||
-rwxr-xr-x root/root usr/bin/bluez-hsplay
|
||||
-rwxr-xr-x root/root usr/bin/bluez-l2ping
|
||||
-rwxr-xr-x root/root usr/bin/bluez-list-devices
|
||||
-rwxr-xr-x root/root usr/bin/bluez-monitor-bluetooth
|
||||
-rwxr-xr-x root/root usr/bin/bluez-ppporc
|
||||
-rwxr-xr-x root/root usr/bin/bluez-rfcomm
|
||||
-rwxr-xr-x root/root usr/bin/bluez-sdptool
|
||||
-rwxr-xr-x root/root usr/bin/bluez-simple-agent
|
||||
-rwxr-xr-x root/root usr/bin/bluez-simple-endpoint
|
||||
-rwxr-xr-x root/root usr/bin/bluez-simple-player
|
||||
-rwxr-xr-x root/root usr/bin/bluez-simple-service
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-adapter
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-attrib
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-audio
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-device
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-discovery
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-health
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-health-sink
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-input
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-manager
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-nap
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-network
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-oob
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-proximity
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-sap-server
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-serial
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-serial-proxy
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-service
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-telephony
|
||||
-rwxr-xr-x root/root usr/bin/bluez-test-thermometer
|
||||
-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/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.13.0
|
||||
lrwxrwxrwx root/root usr/lib/libbluetooth.so.3 -> libbluetooth.so.3.13.0
|
||||
-rwxr-xr-x root/root usr/lib/libbluetooth.so.3.13.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/bluez-ciptool.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/bluez-dfubabel.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/bluez-dfutool.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/bluez-hcitool.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/bluez-rfcomm.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/bluez-sdptool.1.gz
|
||||
-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/bluez-avctrl.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/bluez-bccmd.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/bluez-hciattach.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/bluez-hciconfig.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/bluez-hid2hci.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/bluez-l2ping.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 usr/share/dbus-1/
|
||||
drwxr-xr-x root/root usr/share/dbus-1/system-services/
|
||||
-rw-r--r-- root/root usr/share/dbus-1/system-services/org.bluez.service
|
||||
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
2
bluez/.md5sum
Normal file
@ -0,0 +1,2 @@
|
||||
cc63789c7582ba76353e75e28087390d bluetoothd
|
||||
c828c172f01f20c6ecd7f407894956a2 bluez-4.101.tar.xz
|
60
bluez/Pkgfile
Normal file
60
bluez/Pkgfile
Normal file
@ -0,0 +1,60 @@
|
||||
# Description: Bluetooth libraries and utilities
|
||||
# URL: http://www.bluez.org/
|
||||
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
||||
# Depends on: dbus alsa-lib gstreamer libusb-compat
|
||||
# Optional: pygobject dbus-python
|
||||
|
||||
name=bluez
|
||||
version=4.101
|
||||
release=1
|
||||
source=(http://www.kernel.org/pub/linux/bluetooth/bluez-$version.tar.xz bluetoothd)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--libexecdir=/lib \
|
||||
--mandir=/usr/man \
|
||||
--enable-audio \
|
||||
--enable-gstreamer \
|
||||
--enable-usb \
|
||||
--enable-tools \
|
||||
--disable-test \
|
||||
--enable-hidd \
|
||||
--enable-hid2hci \
|
||||
--enable-pand \
|
||||
--enable-cups \
|
||||
--enable-alsa \
|
||||
--enable-bccmd \
|
||||
--enable-dfutool \
|
||||
--enable-dund
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
# install all available tools and test programs with man pages
|
||||
shopt -s nullglob
|
||||
for i in test/* tools/*; do
|
||||
if [ -x $i ]; then
|
||||
install -D -m 755 $i $PKG/usr/bin/bluez-${i#*/}
|
||||
for j in $i.[1-8]; do
|
||||
install -D -m 644 $j $PKG/usr/man/man${j##*.}/bluez-${j##*/}
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
# install init script
|
||||
install -D -m 755 $SRC/bluetoothd $PKG/etc/rc.d/bluetoothd
|
||||
|
||||
# install config files
|
||||
for i in audio input network serial; do
|
||||
install -D -m 644 $i/$i.conf $PKG/etc/bluetooth/$i.conf
|
||||
done
|
||||
|
||||
# this is because of the /usr/etc CRUX oddity
|
||||
mkdir $PKG/usr/etc
|
||||
mv $PKG/etc/dbus-1 $PKG/usr/etc
|
||||
}
|
7
bluez/README
Normal file
7
bluez/README
Normal file
@ -0,0 +1,7 @@
|
||||
Bluez 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
|
||||
|
||||
pygobject 3.2.2 and dbus-python are required for the tools for pairing and such,
|
||||
but they can be omitted at will.
|
43
bluez/bluetoothd
Executable file
43
bluez/bluetoothd
Executable file
@ -0,0 +1,43 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# bluetooth startup script
|
||||
#
|
||||
|
||||
NAME=bluetoothd
|
||||
DAEMON=/usr/sbin/bluetoothd
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
pid=$(pgrep -f -x $DAEMON)
|
||||
if [ -n "$pid" ]; then
|
||||
echo "$NAME is already running with pid $pid" >&2
|
||||
exit 1
|
||||
fi
|
||||
$DAEMON
|
||||
;;
|
||||
stop)
|
||||
pid=$(pgrep -f -x $DAEMON)
|
||||
if [ -z "$pid" ]; then
|
||||
echo "$NAME is not running" >&2
|
||||
exit 1
|
||||
fi
|
||||
kill $pid
|
||||
t=0
|
||||
while [ -d /proc/$pid -a $t -lt 10 ]; do
|
||||
sleep 0.5
|
||||
let t++
|
||||
done
|
||||
if [ -d /proc/$pid ]; then
|
||||
echo "$NAME still running with pid $pid" >&2
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 [start|stop|restart]" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
Loading…
x
Reference in New Issue
Block a user