From 8d36e7d94c0c940d7eac811b442e210221e1275f Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 6 Apr 2011 19:40:17 +0000 Subject: main/bluez: moved from testing --- main/bluez/APKBUILD | 78 ++++++++++++++++++++++++++++++++++++++++++ main/bluez/bluetooth-conf.d | 7 ++++ main/bluez/bluetooth-init.d | 31 +++++++++++++++++ main/bluez/bluetooth.confd | 7 ++++ main/bluez/bluetooth.initd | 32 +++++++++++++++++ testing/bluez/APKBUILD | 78 ------------------------------------------ testing/bluez/bluetooth-conf.d | 7 ---- testing/bluez/bluetooth-init.d | 31 ----------------- testing/bluez/bluetooth.confd | 7 ---- testing/bluez/bluetooth.initd | 32 ----------------- 10 files changed, 155 insertions(+), 155 deletions(-) create mode 100644 main/bluez/APKBUILD create mode 100644 main/bluez/bluetooth-conf.d create mode 100644 main/bluez/bluetooth-init.d create mode 100644 main/bluez/bluetooth.confd create mode 100644 main/bluez/bluetooth.initd delete mode 100644 testing/bluez/APKBUILD delete mode 100644 testing/bluez/bluetooth-conf.d delete mode 100644 testing/bluez/bluetooth-init.d delete mode 100644 testing/bluez/bluetooth.confd delete mode 100644 testing/bluez/bluetooth.initd diff --git a/main/bluez/APKBUILD b/main/bluez/APKBUILD new file mode 100644 index 000000000..0e08eb9b1 --- /dev/null +++ b/main/bluez/APKBUILD @@ -0,0 +1,78 @@ +# Maintainer: Natanael Copa +pkgname=bluez +pkgver=4.91 +pkgrel=0 +pkgdesc="Tools for the Bluetooth protocol stack" +url="http://www.bluez.org/" +arch="all" +license="GPL2" +depends="consolekit" +makedepends="dbus-dev gst-plugins-base-dev alsa-lib-dev libusb-compat-dev + libnl-dev consolekit-dev" +subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-alsa + $pkgname-cups $pkgname-gstreamer" +source="http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.bz2 + bluetooth.initd + bluetooth.confd + " + +_builddir="$srcdir"/$pkgname-$pkgver +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libexecdir=/lib \ + --mandir=/usr/share/man \ + --enable-gstreamer \ + --enable-alsa \ + --enable-usb \ + --enable-tools \ + --enable-bccmd \ + --enable-hid2hci \ + --enable-dfutool \ + --enable-hidd \ + --enable-pand \ + --enable-dund \ + --enable-cups \ + --enable-configfiles \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make install DESTDIR="$pkgdir" + install -Dm755 "$srcdir"/bluetooth.initd "$pkgdir"/etc/init.d/bluetooth + install -Dm644 "$srcdir"/bluetooth.confd "$pkgdir"/etc/conf.d/bluetooth + install -Dm755 test/simple-agent "$pkgdir"/usr/bin/bluez-simple-agent +} + +libs() { + pkgdesc="Libraries for Bluetooth protocol stack" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libbluetooth.so.* "$subpkgdir"/usr/lib/ +} + +alsa() { + pkgdesc="Bluez plugin for ALSA" + mkdir -p "$subpkgdir"/usr/share "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/share/alsa* "$subpkgdir"/usr/share/ || return 1 + mv "$pkgdir"/usr/lib/alsa* "$subpkgdir"/usr/lib/ +} + +cups() { + pkgdesc="Bluez backend for CUPS" + mkdir -p "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/lib/cups "$subpkgdir"/usr/lib/ +} + +gstreamer() { + pkgdesc="Bluez plugin for gstreamer" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/gstreamer* \ + "$subpkgdir"/usr/lib/ +} +md5sums="0a293ae6cf0d0e0bdd74fb65e655842a bluez-4.91.tar.bz2 +c511078403d7d27673581a8bb468b90b bluetooth.initd +a159d897a057f4675548327329c4cc22 bluetooth.confd" diff --git a/main/bluez/bluetooth-conf.d b/main/bluez/bluetooth-conf.d new file mode 100644 index 000000000..b0cc74441 --- /dev/null +++ b/main/bluez/bluetooth-conf.d @@ -0,0 +1,7 @@ +# Bluetooth configuraton file + +# Bind rfcomm devices (allowed values are "true" and "false") +RFCOMM_ENABLE=true + +# Config file for rfcomm +RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf" diff --git a/main/bluez/bluetooth-init.d b/main/bluez/bluetooth-init.d new file mode 100644 index 000000000..111902aae --- /dev/null +++ b/main/bluez/bluetooth-init.d @@ -0,0 +1,31 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/4.60/bluetooth-init.d,v 1.1 2010/02/01 19:47:46 pacho Exp $ + +depend() { + after coldplug + need dbus localmount +} + +start() { + ebegin "Starting Bluetooth" + + udevadm trigger --subsystem-match=bluetooth + eend $? + + if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then + if [ -f "${RFCOMM_CONFIG}" ]; then + ebegin " Starting rfcomm" + /usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all + eend $? + else + ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists" + fi + fi +} + +stop() { + ebegin "Shutting down Bluetooth" + eend 0 +} diff --git a/main/bluez/bluetooth.confd b/main/bluez/bluetooth.confd new file mode 100644 index 000000000..b0cc74441 --- /dev/null +++ b/main/bluez/bluetooth.confd @@ -0,0 +1,7 @@ +# Bluetooth configuraton file + +# Bind rfcomm devices (allowed values are "true" and "false") +RFCOMM_ENABLE=true + +# Config file for rfcomm +RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf" diff --git a/main/bluez/bluetooth.initd b/main/bluez/bluetooth.initd new file mode 100644 index 000000000..ef25720bf --- /dev/null +++ b/main/bluez/bluetooth.initd @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/4.60/bluetooth-init.d,v 1.1 2010/02/01 19:47:46 pacho Exp $ + +depend() { + after coldplug + need dbus localmount +} + +start() { + ebegin "Starting Bluetooth" + + if [ -x /sbin/udevadm ]; then + udevadm trigger --subsystem-match=bluetooth --action=add + eend $? + fi + + if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then + if [ -f "${RFCOMM_CONFIG}" ]; then + /usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all + else + ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists" + fi + fi + eend $? +} + +stop() { + ebegin "Shutting down Bluetooth" + eend 0 +} diff --git a/testing/bluez/APKBUILD b/testing/bluez/APKBUILD deleted file mode 100644 index 0e08eb9b1..000000000 --- a/testing/bluez/APKBUILD +++ /dev/null @@ -1,78 +0,0 @@ -# Maintainer: Natanael Copa -pkgname=bluez -pkgver=4.91 -pkgrel=0 -pkgdesc="Tools for the Bluetooth protocol stack" -url="http://www.bluez.org/" -arch="all" -license="GPL2" -depends="consolekit" -makedepends="dbus-dev gst-plugins-base-dev alsa-lib-dev libusb-compat-dev - libnl-dev consolekit-dev" -subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-alsa - $pkgname-cups $pkgname-gstreamer" -source="http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.bz2 - bluetooth.initd - bluetooth.confd - " - -_builddir="$srcdir"/$pkgname-$pkgver -build() { - cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --libexecdir=/lib \ - --mandir=/usr/share/man \ - --enable-gstreamer \ - --enable-alsa \ - --enable-usb \ - --enable-tools \ - --enable-bccmd \ - --enable-hid2hci \ - --enable-dfutool \ - --enable-hidd \ - --enable-pand \ - --enable-dund \ - --enable-cups \ - --enable-configfiles \ - || return 1 - make || return 1 -} - -package() { - cd "$_builddir" - make install DESTDIR="$pkgdir" - install -Dm755 "$srcdir"/bluetooth.initd "$pkgdir"/etc/init.d/bluetooth - install -Dm644 "$srcdir"/bluetooth.confd "$pkgdir"/etc/conf.d/bluetooth - install -Dm755 test/simple-agent "$pkgdir"/usr/bin/bluez-simple-agent -} - -libs() { - pkgdesc="Libraries for Bluetooth protocol stack" - mkdir -p "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/libbluetooth.so.* "$subpkgdir"/usr/lib/ -} - -alsa() { - pkgdesc="Bluez plugin for ALSA" - mkdir -p "$subpkgdir"/usr/share "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/share/alsa* "$subpkgdir"/usr/share/ || return 1 - mv "$pkgdir"/usr/lib/alsa* "$subpkgdir"/usr/lib/ -} - -cups() { - pkgdesc="Bluez backend for CUPS" - mkdir -p "$subpkgdir"/usr/lib/ - mv "$pkgdir"/usr/lib/cups "$subpkgdir"/usr/lib/ -} - -gstreamer() { - pkgdesc="Bluez plugin for gstreamer" - mkdir -p "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/gstreamer* \ - "$subpkgdir"/usr/lib/ -} -md5sums="0a293ae6cf0d0e0bdd74fb65e655842a bluez-4.91.tar.bz2 -c511078403d7d27673581a8bb468b90b bluetooth.initd -a159d897a057f4675548327329c4cc22 bluetooth.confd" diff --git a/testing/bluez/bluetooth-conf.d b/testing/bluez/bluetooth-conf.d deleted file mode 100644 index b0cc74441..000000000 --- a/testing/bluez/bluetooth-conf.d +++ /dev/null @@ -1,7 +0,0 @@ -# Bluetooth configuraton file - -# Bind rfcomm devices (allowed values are "true" and "false") -RFCOMM_ENABLE=true - -# Config file for rfcomm -RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf" diff --git a/testing/bluez/bluetooth-init.d b/testing/bluez/bluetooth-init.d deleted file mode 100644 index 111902aae..000000000 --- a/testing/bluez/bluetooth-init.d +++ /dev/null @@ -1,31 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/4.60/bluetooth-init.d,v 1.1 2010/02/01 19:47:46 pacho Exp $ - -depend() { - after coldplug - need dbus localmount -} - -start() { - ebegin "Starting Bluetooth" - - udevadm trigger --subsystem-match=bluetooth - eend $? - - if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then - if [ -f "${RFCOMM_CONFIG}" ]; then - ebegin " Starting rfcomm" - /usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all - eend $? - else - ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists" - fi - fi -} - -stop() { - ebegin "Shutting down Bluetooth" - eend 0 -} diff --git a/testing/bluez/bluetooth.confd b/testing/bluez/bluetooth.confd deleted file mode 100644 index b0cc74441..000000000 --- a/testing/bluez/bluetooth.confd +++ /dev/null @@ -1,7 +0,0 @@ -# Bluetooth configuraton file - -# Bind rfcomm devices (allowed values are "true" and "false") -RFCOMM_ENABLE=true - -# Config file for rfcomm -RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf" diff --git a/testing/bluez/bluetooth.initd b/testing/bluez/bluetooth.initd deleted file mode 100644 index ef25720bf..000000000 --- a/testing/bluez/bluetooth.initd +++ /dev/null @@ -1,32 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/4.60/bluetooth-init.d,v 1.1 2010/02/01 19:47:46 pacho Exp $ - -depend() { - after coldplug - need dbus localmount -} - -start() { - ebegin "Starting Bluetooth" - - if [ -x /sbin/udevadm ]; then - udevadm trigger --subsystem-match=bluetooth --action=add - eend $? - fi - - if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then - if [ -f "${RFCOMM_CONFIG}" ]; then - /usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all - else - ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists" - fi - fi - eend $? -} - -stop() { - ebegin "Shutting down Bluetooth" - eend 0 -} -- cgit v1.2.3