wok-current view bluez/receipt @ rev 25698

Fix ntfs-3g receipt
author Stanislas Leduc <shann@slitaz.org>
date Tue Apr 16 19:01:01 2024 +0000 (2 months ago)
parents 3ad63c8fc2f9
children
line source
1 # SliTaz package receipt.
3 PACKAGE="bluez"
4 VERSION="5.64"
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 python-docutils"
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-hid2hci \
57 --enable-library \
58 --enable-sap \
59 --enable-tools \
60 --enable-deprecated \
61 --disable-systemd \
62 --disable-test \
63 $CONFIGURE_ARGS &&
64 make &&
65 make DESTDIR=$DESTDIR install
66 }
68 # Rules to gen a SliTaz package suitable for Tazpkg.
69 genpkg_rules()
70 {
71 mkdir -p $fs/lib
72 mkdir -p $fs/usr/lib
73 mkdir -p $fs/etc/bluetooth
75 cp -a $install/etc $fs
76 cp -a $install/lib/bluetooth $fs/lib
77 cp -a $install/lib/udev $fs/lib
78 cp -a $install/usr/bin $fs/usr
79 # cp -a $install/usr/sbin $fs/usr
80 cp -a $install/usr/lib/*.so* $fs/usr/lib
81 # cp -a $install/usr/lib/alsa-lib/*.so* $fs/usr/lib/alsa-lib
82 cp -a $install/usr/lib/cups $fs/usr/lib
83 # cp -a $install/var $fs
85 #some extra tools and configuration files
86 cp -a $src/test/simple-agent $fs/usr/bin/bluez-simple-agent
87 cp $src/src/main.conf $fs/etc/bluetooth
88 # cp $src/audio/audio.conf $fs/etc/bluetooth
89 }
91 # Post message when installing.
92 post_install()
93 {
94 [ -s $1/usr/bin/bluepin ] || cat > $1/usr/bin/bluepin <<EOT
95 #!/bin/sh
97 printf "PIN:%04d\n" \${1:-$(($RANDOM%10000))}
98 EOT
99 chmod +x $1/usr/bin/bluepin
100 }