bluez: enable wiimote support, use make_dirs for var/lib/bluetooth.

This commit is contained in:
Juan RP 2011-12-20 11:26:48 +01:00
parent db1aadbb06
commit 9cbb7c899f

View file

@ -3,12 +3,12 @@ pkgname=bluez
version=4.96 version=4.96
distfiles="${KERNEL_SITE}/bluetooth/$pkgname-$version.tar.bz2" distfiles="${KERNEL_SITE}/bluetooth/$pkgname-$version.tar.bz2"
build_style=gnu-configure build_style=gnu-configure
configure_args="--libexecdir=/lib --enable-gstreamer configure_args="--libexecdir=/lib --enable-gstreamer --enable-dund
--enable-alsa --enable-usb --enable-tools --enable-bccmd --enable-alsa --enable-usb --enable-tools --enable-bccmd
--enable-hid2hci --enable-dfutool --enable-hidd --enable-pand --enable-dund --enable-hid2hci --enable-dfutool --enable-hidd --enable-pand
--disable-cups --enable-capng --enable-pnat --disable-cups --enable-capng --enable-pnat --enable-wiimote
--with-systemdunitdir=/lib/systemd/system" --with-systemdunitdir=/lib/systemd/system"
revision=1 revision=2
short_desc="Bluetooth tools and daemons" short_desc="Bluetooth tools and daemons"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.bluez.org/" homepage="http://www.bluez.org/"
@ -20,6 +20,7 @@ long_desc="
BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source
project distributed under GNU General Public License (GPL)." project distributed under GNU General Public License (GPL)."
make_dirs="/var/lib/bluetooth 0750 root root"
conf_files=" conf_files="
/etc/bluetooth/main.conf /etc/bluetooth/main.conf
/etc/bluetooth/rfcomm.conf /etc/bluetooth/rfcomm.conf
@ -31,7 +32,6 @@ conf_files="
subpackages="$pkgname-alsa $pkgname-compat $pkgname-gstreamer libbluetooth" subpackages="$pkgname-alsa $pkgname-compat $pkgname-gstreamer libbluetooth"
subpackages="$subpackages libbluetooth-devel" subpackages="$subpackages libbluetooth-devel"
Add_dependency build pkg-config Add_dependency build pkg-config
Add_dependency build flex Add_dependency build flex
Add_dependency build libudev-devel Add_dependency build libudev-devel
@ -46,13 +46,13 @@ Add_dependency build libsndfile-devel
post_install() post_install()
{ {
install -d ${DESTDIR}/lib/udev/rules.d for f in network input audio serial; do
install -m644 network/network.conf input/input.conf audio/audio.conf \ vinstall ${f}/${f}.conf 644 etc/bluetooth
serial/serial.conf ${DESTDIR}/etc/bluetooth done
install -m755 scripts/bluetooth_serial ${DESTDIR}/lib/udev vinstall scripts/bluetooth_serial 755 lib/udev
install -m755 test/simple-agent \ for f in simple-agent test-device test-input; do
${DESTDIR}/usr/bin/bluez-simple-agent vinstall test/${f} 755 usr/bin bluez-${f}
done
# systemd takes care of bluetoothd initialization. # systemd takes care of bluetoothd initialization.
rm -f ${DESTDIR}/lib/udev/rules.d/97-bluetooth.rules rm -f ${DESTDIR}/lib/udev/rules.d/97-bluetooth.rules
} }