95.3. bluez-5.87
Bluetooth protocol stack for Linux
5.87-1 · GPL-2.0-or-later AND LGPL-2.1-or-later · 0.9 SBU · 6.8 MiB, 130 files · 41_system, 47 of 1047 · ports/core/hardware/bluez
Homepage: https://github.com/bluez/bluez
BlueZ is the Linux Bluetooth stack in user space: bluetoothd, the system daemon that manages adapters and devices over D-Bus; obexd, the file-transfer and phonebook service on the session bus; bluetoothctl and the other tools; and libbluetooth. pipewire’s Bluetooth audio, networkmanager’s Bluetooth networking and the other ports that name it talk to the daemon or link the library. fs/etc/init.d/60_bluetooth.sh starts bluetoothd at boot.
Depends on: dbus, glib, python3-docutils, eudev, readline, libical, alsa-lib, cups.
Required by (11): bluedevil, bluez-qt, brltty, gpsd, kodi, libpcap, libsigrok, networkmanager, pipewire, qt6-qtconnectivity, supertuxkart.
Sources: bluez-5.87.tar.xz (2.2 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install bluez'
build.sh:
./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--localstatedir=/var \
--enable-library \
--disable-systemd \
--enable-obex \
--enable-cups \
--enable-midi \
--enable-deprecated \
--enable-sixaxis \
--enable-hid2hci \
--disable-mesh \
--disable-btpclient \
--disable-external-ell
make
make DESTDIR=$PKG install
install -d $PKG/usr/sbin
ln -svf ../lib/bluetooth/bluetoothd $PKG/usr/sbin/bluetoothd
--libexecdir=/usr/lib— Install the daemons under/usr/lib/bluetooth.build.shadds/usr/sbin/bluetoothdas a link to the daemon.--enable-library— Installlibbluetoothand its headers, which upstream does not install by default and which the ports that link BlueZ need.--disable-systemd— Install no systemd unit files. KDOS has no systemd (No systemd).--enable-obex— Buildobexd, the OBEX service for file transfer and phonebook access, which is also upstream’s default. It links libical’slibicalvcal. Its phonebook stays the defaultdummyback end; the other two,ebookandtracker, need evolution-data-server and Tracker.--enable-cups— Buildbluetooth, the CUPS backend for Bluetooth printers, which is also upstream’s default. It links no CUPS library. It is installed into thebackenddirectory under thecups_serverbinthat pkg-config reads from cups, or under/usr/lib/cupswhen that is not found; both are/usr/lib/cups/backendhere.--enable-midi— Build Bluetooth Low Energy MIDI support, which links alsa-lib.--enable-deprecated— Install the tools upstream marks deprecated, among themhciattach,rfcommandhcitool. UART-attached adapters and serial links over Bluetooth need them.--enable-sixaxis— Build the plugin that pairs a PlayStation controller when it is plugged in by USB.--enable-hid2hci— Buildhid2hci, which switches adapters that start in HID mode into normal Bluetooth (HCI) mode.--disable-mesh,--disable-btpclient— Build neither the Bluetooth Mesh daemon nor the BTP test client. Both need ELL, the Embedded Linux Library.--disable-external-ell— Do not look for an installed ELL; nothing built here uses it.
Programs: bluemoon, bluetoothctl, bluetoothd, btattach, btmon, ciptool, hciattach, hciconfig, hcitool, hex2hcd, isotest, l2ping, l2test, mpris-proxy, rctest, rfcomm, sdptool.
Libraries: libbluetooth.so.
Directories: /etc/bluetooth, /usr/include/bluetooth, /usr/lib/bluetooth, /usr/share/licenses/bluez, /var/lib/bluetooth.