talimat 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # Description: Linux için bluetooth istemci ve kütüphaneleri.
  2. # URL: http://www.bluez.org/
  3. # Packager: pierre at nutyx dot org, tnut at nutyx dot org
  4. # Depends on: libical libvorbis alsa-lib libusb-compat libsndfile cups glib
  5. name=bluez
  6. version=5.37
  7. release=2
  8. source=(http://www.kernel.org/pub/linux/bluetooth/$name-$version.tar.xz
  9. $name-$version-obexd_without_systemd-1.patch)
  10. build() {
  11. source /etc/blfs-bootscripts
  12. wget http://anduin.linuxfromscratch.org/BLFS/blfs-bootscripts/blfs-bootscripts-$scriptsversion.tar.bz2
  13. tar xvf $scripts-$scriptsversion.tar.bz2
  14. cd $name-$version
  15. patch -Np1 -i ../$name-$version-obexd_without_systemd-1.patch
  16. ./configure --prefix=/usr \
  17. --sysconfdir=/etc \
  18. --localstatedir=/var \
  19. --libexecdir=/lib \
  20. --disable-systemd \
  21. --enable-gstreamer \
  22. --enable-alsa \
  23. --enable-usb \
  24. --enable-tools \
  25. --enable-bccmd \
  26. --enable-dfutool \
  27. --enable-hid2hci \
  28. --enable-hidd \
  29. --enable-pand \
  30. --enable-dund \
  31. --enable-cups \
  32. --disable-test \
  33. --enable-library \
  34. --without-systemdunitdir
  35. make
  36. make DESTDIR=$PKG install
  37. install -v -dm755 $PKG/{etc/bluetooth,usr/sbin}
  38. ln -svf /lib/bluetooth/bluetoothd $PKG/usr/sbin/
  39. cat > $PKG/etc/bluetooth/rfcomm.conf << "EOF"
  40. # rfcomm.conf
  41. # Set up the RFCOMM configuration of the Bluetooth subsystem in the Linux kernel.
  42. # Use one line per command
  43. # See the rfcomm man page for options
  44. # End of rfcomm.conf
  45. EOF
  46. cat > $PKG/etc/bluetooth/uart.conf << "EOF"
  47. #uart.conf
  48. # Attach serial devices via UART HCI to BlueZ stack
  49. # Use one line per device
  50. # See the hciattach man page for options
  51. # End of uart.conf
  52. EOF
  53. install -m644 profiles/network/network.conf \
  54. profiles/input/input.conf \
  55. $PKG/etc/bluetooth
  56. install -v -dm755 $PKG/usr/share/doc/$name-$version
  57. install -v -m644 doc/*.txt $PKG/usr/share/doc/$name-$version
  58. # Startup Script
  59. cd ../$scripts-$scriptsversion
  60. make DESTDIR=$PKG install-bluetooth
  61. }