Added bluez-4.58 build template!
--HG-- extra : convert_revision : bbe502e2866a946e3e55416167c479b2f02b2645
This commit is contained in:
parent
18f41bd4df
commit
7a925429ed
13 changed files with 243 additions and 0 deletions
1
srcpkgs/bluez-alsa
Symbolic link
1
srcpkgs/bluez-alsa
Symbolic link
|
@ -0,0 +1 @@
|
|||
bluez
|
1
srcpkgs/bluez-compat
Symbolic link
1
srcpkgs/bluez-compat
Symbolic link
|
@ -0,0 +1 @@
|
|||
bluez
|
1
srcpkgs/bluez-gstreamer
Symbolic link
1
srcpkgs/bluez-gstreamer
Symbolic link
|
@ -0,0 +1 @@
|
|||
bluez
|
21
srcpkgs/bluez/bluez-alsa.template
Normal file
21
srcpkgs/bluez/bluez-alsa.template
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Template file for 'bluez-alsa'.
|
||||
#
|
||||
short_desc="Bluetooth ALSA support"
|
||||
long_desc="
|
||||
This package contains a driver to operate with the ALSA stack.
|
||||
|
||||
BlueZ is the official Linux Bluetooth Stack. It is an Open Source project
|
||||
distributed under GNU General Public License (GPL)."
|
||||
|
||||
conf_files="/usr/share/alsa/bluetooth.conf"
|
||||
|
||||
Add_dependency run glibc
|
||||
Add_dependency run alsa-lib
|
||||
Add_dependency run bluez
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/alsa-lib ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/etc/alsa ${DESTDIR}/usr/share
|
||||
}
|
22
srcpkgs/bluez/bluez-compat.template
Normal file
22
srcpkgs/bluez/bluez-compat.template
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Template file for 'bluez-compat'.
|
||||
#
|
||||
short_desc="BlueZ 3.x compatibility binaries"
|
||||
long_desc="
|
||||
This package provides the legacy binaries that were reminiscent of
|
||||
the BlueZ 3.x pairing methods. These binaries are not supported, and
|
||||
will go away again in the future. The provides binaries are:
|
||||
|
||||
hidd dund pand"
|
||||
|
||||
Add_dependency run glibc
|
||||
Add_dependency run libbluetooth
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/bin ${DESTDIR}/usr/share/man/man1
|
||||
for _bin_ in dund hidd pand; do
|
||||
mv ${SRCPKGDESTDIR}/usr/bin/${_bin_} ${DESTDIR}/usr/bin
|
||||
mv ${SRCPKGDESTDIR}/usr/share/man/man1/${_bin_}.1 \
|
||||
${DESTDIR}/usr/share/man/man1
|
||||
done
|
||||
}
|
18
srcpkgs/bluez/bluez-gstreamer.template
Normal file
18
srcpkgs/bluez/bluez-gstreamer.template
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Template file for 'bluez-gstreamer'.
|
||||
#
|
||||
short_desc="Bluetooth GStreamer support"
|
||||
long_desc="
|
||||
This package contains a plugin to operate with GStreamer applications.
|
||||
|
||||
BlueZ is the official Linux Bluetooth Stack. It is an Open Source project
|
||||
distributed under GNU General Public License (GPL)."
|
||||
|
||||
Add_dependency run glibc
|
||||
Add_dependency run bluez
|
||||
Add_dependency run gst-plugins-base
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/gstreamer* ${DESTDIR}/usr/lib
|
||||
}
|
27
srcpkgs/bluez/files/bluetooth.confd
Normal file
27
srcpkgs/bluez/files/bluetooth.confd
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Configuration file for BlueZ.
|
||||
|
||||
# Activate rfcomm ports (default: no)
|
||||
# RFCOMM_START=yes
|
||||
#
|
||||
# rfcomm configuration file
|
||||
RFCOMM_CONF="/etc/bluetooth/rfcomm.conf"
|
||||
|
||||
#
|
||||
# The following daemons are provided in 'bluez-compat'.
|
||||
#
|
||||
# Start the HID daemon (default: yes)
|
||||
# HIDD_START=no
|
||||
#
|
||||
# Start dial-up networking daemon (default: no)
|
||||
# DUND_START=yes
|
||||
#
|
||||
# Start the PAN daemon (default: no)
|
||||
# PAND_START=yes
|
||||
#
|
||||
# Options passed to daemons when starting.
|
||||
#
|
||||
# BLUETOOTHD_OPTIONS=""
|
||||
# RFCOMM_OPTIONS=""
|
||||
# HIDD_OPTIONS=""
|
||||
# DUND_OPTIONS=""
|
||||
# PAND_OPTIONS=""
|
63
srcpkgs/bluez/files/bluetooth.rc
Normal file
63
srcpkgs/bluez/files/bluetooth.rc
Normal file
|
@ -0,0 +1,63 @@
|
|||
#!/sbin/runscript
|
||||
|
||||
depend()
|
||||
{
|
||||
after coldplug
|
||||
need dbus localmount
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
einfo "Starting bluetooth subsystem"
|
||||
eindent
|
||||
|
||||
ebegin "Starting bluetoothd"
|
||||
start-stop-daemon --start --exec /usr/sbin/bluetoothd \
|
||||
$BLUETOOTHD_OPTIONS
|
||||
eend $?
|
||||
if [ -n "$RFCOMM_START" ]; then
|
||||
ebegin "Starting rfcomm"
|
||||
/usr/bin/rfcomm -f $RFCOMM_CONF bind all
|
||||
eend $?
|
||||
fi
|
||||
if [ -n "$HIDD_START" ]; then
|
||||
ebegin "Starting hidd"
|
||||
start-stop-daemon --start --exec /usr/bin/hidd \
|
||||
$HIDD_OPTIONS --server
|
||||
eend $?
|
||||
fi
|
||||
if [ -n "$DUND_START" ]; then
|
||||
ebegin "Starting dund"
|
||||
start-stop-daemon --start --exec /usr/bin/dund \
|
||||
$DUND_OPTIONS
|
||||
eend $?
|
||||
fi
|
||||
if [ -n "$PAND_START" ]; then
|
||||
ebegin "Starting pand"
|
||||
start-stop-daemon --start --exec /usr/bin/pand \
|
||||
$PAND_OPTIONS
|
||||
eend $?
|
||||
fi
|
||||
eoutdent
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
ebegin "Stopping bluetooth subsystem"
|
||||
|
||||
if [ -n "$PAND_START" ]; then
|
||||
start-stop-daemon --stop --quiet --exec /usr/bin/pand
|
||||
eend $?
|
||||
fi
|
||||
if [ -n "$DUND_START" ]; then
|
||||
start-stop-daemon --stop --quiet --exec /usr/bin/dund
|
||||
eend $?
|
||||
fi
|
||||
if [ -n "$HIDD_START" ]; then
|
||||
start-stop-daemon --stop --quiet --exec /usr/bin/hidd
|
||||
eend $?
|
||||
fi
|
||||
start-stop-daemon --stop --quiet --exec /usr/sbin/bluetoothd
|
||||
eend $?
|
||||
}
|
17
srcpkgs/bluez/libbluetooth-devel.template
Normal file
17
srcpkgs/bluez/libbluetooth-devel.template
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Template file for 'libbluetooth-devel'.
|
||||
#
|
||||
short_desc="Development files to use the BlueZ Linux Bluetooth library"
|
||||
long_desc="
|
||||
BlueZ is the official Linux Bluetooth Stack. It is an Open Source project
|
||||
distributed under GNU General Public License (GPL)."
|
||||
|
||||
Add_dependency run glibc-devel
|
||||
Add_dependency run libbluetooth
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/include ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/libbluetooth.so ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
|
||||
}
|
14
srcpkgs/bluez/libbluetooth.template
Normal file
14
srcpkgs/bluez/libbluetooth.template
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Template file for 'libbluetooth'.
|
||||
#
|
||||
short_desc="Library to use the Bluez Linux Bluetooth Stack"
|
||||
long_desc="
|
||||
BlueZ is the official Linux Bluetooth Stack. It is an Open Source project
|
||||
distributed under GNU General Public License (GPL)."
|
||||
|
||||
Add_dependency run glibc
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/libbluetooth.so.* ${DESTDIR}/usr/lib
|
||||
}
|
56
srcpkgs/bluez/template
Normal file
56
srcpkgs/bluez/template
Normal file
|
@ -0,0 +1,56 @@
|
|||
# Template file for 'bluez'
|
||||
pkgname=bluez
|
||||
version=4.58
|
||||
distfiles="${KERNEL_SITE}/bluetooth/$pkgname-$version.tar.bz2"
|
||||
build_style=gnu_configure
|
||||
configure_args="--localstatedir=/var --libexecdir=/lib --enable-gstreamer
|
||||
--enable-alsa --enable-usb --enable-netlink --enable-tools --enable-bccmd
|
||||
--enable-hid2hci --enable-dfutool --enable-hidd --enable-pand --enable-dund
|
||||
--disable-cups --enable-configfiles"
|
||||
short_desc="Bluetooth tools and daemons"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
checksum=b3f034f9c1697c6563ee047ff2ea6809c684a3fc11486de6c3e8141a0d5c0136
|
||||
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
|
||||
/etc/bluetooth/rfcomm.conf"
|
||||
openrc_services="bluetooth default"
|
||||
|
||||
subpackages="$pkgname-alsa $pkgname-compat $pkgname-gstreamer libbluetooth"
|
||||
subpackages="$subpackages libbluetooth-devel"
|
||||
|
||||
Add_dependency full glibc
|
||||
Add_dependency full dbus
|
||||
Add_dependency full libnl
|
||||
Add_dependency full libusb
|
||||
Add_dependency full udev
|
||||
Add_dependency full libcap-ng
|
||||
Add_dependency run libbluetooth
|
||||
Add_dependency build pkg-config
|
||||
Add_dependency build flex
|
||||
Add_dependency build gst-plugins-base
|
||||
Add_dependency build alsa-lib
|
||||
|
||||
post_install()
|
||||
{
|
||||
cd ${wrksrc} || return 1
|
||||
install -m644 network/network.conf input/input.conf audio/audio.conf \
|
||||
${DESTDIR}/etc/bluetooth || return 1
|
||||
install -m755 scripts/bluetooth_serial ${DESTDIR}/lib/udev || return 1
|
||||
install -m755 test/simple-agent \
|
||||
${DESTDIR}/usr/bin/bluez-simple-agent || return 1
|
||||
install -d ${DESTDIR}/etc/init.d ${DESTDIR}/etc/conf.d || return 1
|
||||
install -m755 ${FILESDIR}/bluetooth.rc \
|
||||
${DESTDIR}/etc/init.d/bluetooth || return 1
|
||||
install -m644 ${FILESDIR}/bluetooth.confd \
|
||||
${DESTDIR}/etc/conf.d/bluetooth || return 1
|
||||
}
|
1
srcpkgs/libbluetooth
Symbolic link
1
srcpkgs/libbluetooth
Symbolic link
|
@ -0,0 +1 @@
|
|||
bluez
|
1
srcpkgs/libbluetooth-devel
Symbolic link
1
srcpkgs/libbluetooth-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
bluez
|
Loading…
Reference in a new issue