2009-12-02 23:36:10 +00:00
|
|
|
# Template file for 'bluez'
|
|
|
|
pkgname=bluez
|
2011-02-15 15:30:49 +00:00
|
|
|
version=4.88
|
2009-12-02 23:36:10 +00:00
|
|
|
distfiles="${KERNEL_SITE}/bluetooth/$pkgname-$version.tar.bz2"
|
|
|
|
build_style=gnu_configure
|
|
|
|
configure_args="--localstatedir=/var --libexecdir=/lib --enable-gstreamer
|
2010-10-29 14:36:56 +00:00
|
|
|
--enable-alsa --enable-usb --enable-tools --enable-bccmd
|
2009-12-02 23:36:10 +00:00
|
|
|
--enable-hid2hci --enable-dfutool --enable-hidd --enable-pand --enable-dund
|
2010-05-09 08:16:56 +00:00
|
|
|
--disable-cups --enable-configfiles --enable-capng --enable-pnat"
|
2009-12-02 23:36:10 +00:00
|
|
|
short_desc="Bluetooth tools and daemons"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-02-15 15:30:49 +00:00
|
|
|
checksum=5ef419232f82860d8976a06b36b72b0a3cc99e3bf96d9b9038dd5f9e400f6f29
|
2009-12-02 23:36:10 +00:00
|
|
|
long_desc="
|
|
|
|
This package contains tools and system daemons for using Bluetooth devices.
|
|
|
|
|
|
|
|
BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source
|
|
|
|
project distributed under GNU General Public License (GPL)."
|
|
|
|
|
|
|
|
conf_files="
|
|
|
|
/etc/conf.d/bluetooth
|
|
|
|
/etc/bluetooth/audio.conf
|
|
|
|
/etc/bluetooth/input.conf
|
|
|
|
/etc/bluetooth/main.conf
|
|
|
|
/etc/bluetooth/network.conf
|
2011-02-15 15:30:49 +00:00
|
|
|
/etc/bluetooth/serial.conf
|
2009-12-02 23:36:10 +00:00
|
|
|
/etc/bluetooth/rfcomm.conf"
|
2010-04-16 20:09:33 +00:00
|
|
|
openrc_services="bluetooth default true"
|
2009-12-02 23:36:10 +00:00
|
|
|
|
|
|
|
subpackages="$pkgname-alsa $pkgname-compat $pkgname-gstreamer libbluetooth"
|
|
|
|
subpackages="$subpackages libbluetooth-devel"
|
|
|
|
|
2010-01-09 22:13:50 +00:00
|
|
|
Add_dependency run glibc
|
2010-01-14 15:58:55 +00:00
|
|
|
Add_dependency run dbus-libs
|
2010-01-09 22:13:50 +00:00
|
|
|
Add_dependency run glib
|
|
|
|
Add_dependency run libusb-compat
|
|
|
|
Add_dependency run libcap-ng
|
|
|
|
Add_dependency run libbluetooth
|
2010-10-29 14:36:56 +00:00
|
|
|
|
2009-12-02 23:36:10 +00:00
|
|
|
Add_dependency build pkg-config
|
|
|
|
Add_dependency build flex
|
2010-01-09 22:13:50 +00:00
|
|
|
Add_dependency build gst-plugins-base-devel
|
|
|
|
Add_dependency build alsa-lib-devel
|
|
|
|
Add_dependency build dbus-devel
|
|
|
|
Add_dependency build glib-devel
|
|
|
|
Add_dependency build libusb-compat-devel
|
|
|
|
Add_dependency build libcap-ng-devel
|
2010-12-04 09:39:19 +00:00
|
|
|
Add_dependency build udev ">=0" # This is for udev rules location
|
2009-12-02 23:36:10 +00:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2011-01-11 22:35:13 +00:00
|
|
|
cd ${wrksrc}
|
2010-01-14 15:58:55 +00:00
|
|
|
install -d ${DESTDIR}/lib/udev/rules.d
|
2009-12-02 23:36:10 +00:00
|
|
|
install -m644 network/network.conf input/input.conf audio/audio.conf \
|
2011-02-15 15:30:49 +00:00
|
|
|
serial/serial.conf ${DESTDIR}/etc/bluetooth
|
2011-01-11 22:35:13 +00:00
|
|
|
install -m755 scripts/bluetooth_serial ${DESTDIR}/lib/udev
|
2009-12-02 23:36:10 +00:00
|
|
|
install -m755 test/simple-agent \
|
2011-01-11 22:35:13 +00:00
|
|
|
${DESTDIR}/usr/bin/bluez-simple-agent
|
|
|
|
install -d ${DESTDIR}/etc/init.d ${DESTDIR}/etc/conf.d
|
2009-12-02 23:36:10 +00:00
|
|
|
install -m755 ${FILESDIR}/bluetooth.rc \
|
2011-01-11 22:35:13 +00:00
|
|
|
${DESTDIR}/etc/init.d/bluetooth
|
2009-12-02 23:36:10 +00:00
|
|
|
install -m644 ${FILESDIR}/bluetooth.confd \
|
2011-01-11 22:35:13 +00:00
|
|
|
${DESTDIR}/etc/conf.d/bluetooth
|
|
|
|
}
|