wok view bluez/receipt @ rev 25669

Up lapack (3.12.0), less (633), libarchive (3.7.2), liblouis (3.28.0), libmicrohttpd (1.0.1), libpng (1.6.43), libssh (0.10.6), libtasn1 (4.19.0), libtirpc (1.3.4), libvpx (1.14.0), libwebp (1.3.2), logrotate (3.21.0), lua (5.4.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 25 16:11:20 2024 +0000 (3 months ago)
parents c228e4370f9d
children
line source
1 # SliTaz package receipt.
3 PACKAGE="bluez"
4 VERSION="5.54"
5 CATEGORY="system-tools"
6 TAGS="bluetooth"
7 SHORT_DESC="Bluetooth protocol stack."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.bluez.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://www.kernel.org/pub/linux/bluetooth/$TARBALL"
14 #WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/bluetooth/$TARBALL"
16 DEPENDS="dbus dbus-python glib libical libusb-compat linux-bluetooth pygobject"
17 BUILD_DEPENDS="dbus-dev glib-dev libical-dev libusb-compat libusb-dev
18 pkg-config readline-dev"
20 CONFIG_FILES="/etc/bluetooth"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/*} 2>/dev/null | \
26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 sed -i 's/NEED_USB/xx&/' tools/*.c
34 export LDFLAGS="$LDFLAGS -ltinfo"
36 # 5.54 unrecognised
37 # --enable-bccmd \
38 # --enable-dfutool \
39 # --enable-dund \
40 # --enable-hid2hci \
41 # --enable-hidd \
42 # --enable-pand \
43 # --enable-usb \
44 # --enable-wiimote \
46 # Patch for CVE-2023-45866
47 patch -p1 < $stuff/CVE-2023-45866.patch
49 ./configure \
50 --prefix=/usr \
51 --sysconfdir=/etc \
52 --localstatedir=/var \
53 --libexecdir=/lib \
54 --mandir=/usr/share/man \
55 --enable-cups \
56 --enable-library \
57 --enable-sap \
58 --enable-tools \
59 --enable-deprecated \
60 --disable-systemd \
61 --disable-test \
62 $CONFIGURE_ARGS &&
63 make &&
64 make DESTDIR=$DESTDIR install
65 }
67 # Rules to gen a SliTaz package suitable for Tazpkg.
68 genpkg_rules()
69 {
70 mkdir -p $fs/lib
71 mkdir -p $fs/usr/lib
72 mkdir -p $fs/etc/bluetooth
74 cp -a $install/etc $fs
75 cp -a $install/lib/bluetooth $fs/lib
76 cp -a $install/lib/udev $fs/lib
77 cp -a $install/usr/bin $fs/usr
78 # cp -a $install/usr/sbin $fs/usr
79 cp -a $install/usr/lib/*.so* $fs/usr/lib
80 # cp -a $install/usr/lib/alsa-lib/*.so* $fs/usr/lib/alsa-lib
81 cp -a $install/usr/lib/cups $fs/usr/lib
82 # cp -a $install/var $fs
84 #some extra tools and configuration files
85 cp -a $src/test/simple-agent $fs/usr/bin/bluez-simple-agent
86 cp $src/src/main.conf $fs/etc/bluetooth
87 # cp $src/audio/audio.conf $fs/etc/bluetooth
88 }
90 # Post message when installing.
91 post_install()
92 {
93 [ -s $1/usr/bin/bluepin ] || cat > $1/usr/bin/bluepin <<EOT
94 #!/bin/sh
96 printf "PIN:%04d\n" \${1:-$(($RANDOM%10000))}
97 EOT
98 chmod +x $1/usr/bin/bluepin
99 }