summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2006-07-11 23:25:36 +0000
committerAlastair Tse <liquidx@gentoo.org>2006-07-11 23:25:36 +0000
commit82cbefbd59081850b912343d14960e11cc1e0861 (patch)
treeaf29e50a2d2be2038843bd60f153e8095c51b525 /net-wireless/bluez-utils
parentadding manifests and digests for vnc 4.1.2 (diff)
downloadliquidx-82cbefbd59081850b912343d14960e11cc1e0861.tar.gz
liquidx-82cbefbd59081850b912343d14960e11cc1e0861.tar.bz2
liquidx-82cbefbd59081850b912343d14960e11cc1e0861.zip
Adding experimental bluetooth ebuilds. These work partially, my testing reveals BCM adapters do not get put into discover mode, but otherwise everything else seems to work. Also GTK pin-helper is now deprecated and dbus is a required dependency. bluez-pin package is used as the pin entry replacement.
svn path=/; revision=7
Diffstat (limited to 'net-wireless/bluez-utils')
-rw-r--r--net-wireless/bluez-utils/Manifest16
-rw-r--r--net-wireless/bluez-utils/bluez-utils-3.1.ebuild103
-rw-r--r--net-wireless/bluez-utils/files/bluez-utils-2.24-udev.rules3
-rw-r--r--net-wireless/bluez-utils/files/bluez-utils-2.24-udev.script25
-rw-r--r--net-wireless/bluez-utils/files/digest-bluez-utils-3.13
5 files changed, 150 insertions, 0 deletions
diff --git a/net-wireless/bluez-utils/Manifest b/net-wireless/bluez-utils/Manifest
new file mode 100644
index 0000000..d879667
--- /dev/null
+++ b/net-wireless/bluez-utils/Manifest
@@ -0,0 +1,16 @@
+AUX bluez-utils-2.24-udev.rules 74 RMD160 779f5f29e9c532df668dc0ece81076a45de3d91e SHA1 5c26941efea28eb5b609ce1eb4dda53cde6ae1a5 SHA256 2df19f68791a04b23feaf7fa6722f9d649f232fab9e31cd1ec275c936264da4f
+MD5 6492c6e959a40f4e32e331d2dfbd60a2 files/bluez-utils-2.24-udev.rules 74
+RMD160 779f5f29e9c532df668dc0ece81076a45de3d91e files/bluez-utils-2.24-udev.rules 74
+SHA256 2df19f68791a04b23feaf7fa6722f9d649f232fab9e31cd1ec275c936264da4f files/bluez-utils-2.24-udev.rules 74
+AUX bluez-utils-2.24-udev.script 572 RMD160 f4ba713c996ba96cc6fed889029cf3b7741533c8 SHA1 4b58705889f8b6384ed65b5329e2dae62df323b5 SHA256 b5064a5e7f6d5de189316e9402e6dcf074e84b4f46b8b0b50c44790028f307a2
+MD5 df945b8dc13a93cbbef19d118ef645d7 files/bluez-utils-2.24-udev.script 572
+RMD160 f4ba713c996ba96cc6fed889029cf3b7741533c8 files/bluez-utils-2.24-udev.script 572
+SHA256 b5064a5e7f6d5de189316e9402e6dcf074e84b4f46b8b0b50c44790028f307a2 files/bluez-utils-2.24-udev.script 572
+DIST bluez-utils-3.1.tar.gz 607925 RMD160 b3a4ddc16ebf423d34f97456dd17e4d0149ce90a SHA1 9cfe32ddf1817661f7e3c1b77cda7366217e56ba SHA256 518de6148c6fe0297126dcfe347da91057fdd6f711e5bb842867b6afc8adb6f2
+EBUILD bluez-utils-3.1.ebuild 2414 RMD160 755e23e9b0621a67430435b38311f8b0e933073f SHA1 e799811f5bfff4d73ae562fd85c73a73f49d0ed6 SHA256 fd65047857a5dfa84ca16b44905696bca42bab7d1248e723b7d5a46a2f6fd987
+MD5 d3a24f4a51739ce900aab3023b4e605b bluez-utils-3.1.ebuild 2414
+RMD160 755e23e9b0621a67430435b38311f8b0e933073f bluez-utils-3.1.ebuild 2414
+SHA256 fd65047857a5dfa84ca16b44905696bca42bab7d1248e723b7d5a46a2f6fd987 bluez-utils-3.1.ebuild 2414
+MD5 436b03c0dab26a88cf5bfe97ec8e952c files/digest-bluez-utils-3.1 247
+RMD160 9ca5f67d98cb87da0df5d4cc0c2c649ec751372e files/digest-bluez-utils-3.1 247
+SHA256 8248f743a980f6aad030624de8e5efdd1b2c47d9d2f8174451f0bddc07d21bb2 files/digest-bluez-utils-3.1 247
diff --git a/net-wireless/bluez-utils/bluez-utils-3.1.ebuild b/net-wireless/bluez-utils/bluez-utils-3.1.ebuild
new file mode 100644
index 0000000..918a638
--- /dev/null
+++ b/net-wireless/bluez-utils/bluez-utils-3.1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez-utils/bluez-utils-2.25-r1.ebuild,v 1.4 2006/06/26 13:59:11 gustavoz Exp $
+
+inherit eutils
+
+DESCRIPTION="Bluetooth Tools and System Daemons for Linux"
+HOMEPAGE="http://bluez.sourceforge.net/"
+SRC_URI="http://bluez.sourceforge.net/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
+
+IUSE="alsa cups fuse udev"
+
+RDEPEND="!net-wireless/bluez-pan
+ >=net-wireless/bluez-libs-3.1
+ >=net-wireless/bluez-pin-0.30
+ >=sys-apps/dbus-0.31
+ dev-libs/libusb
+ >=dev-libs/openobex-1.2
+ fuse? ( sys-fs/fuse )
+ alsa? ( >=media-libs/alsa-lib-1.0.9 )
+ cups? ( net-print/cups )
+ udev? ( sys-fs/udev )"
+
+DEPEND="sys-devel/bison
+ sys-devel/flex
+ >=sys-apps/sed-4
+ ${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+
+ sed -i \
+ -e "s:^HIDD_ENABLE=.*:HIDD_ENABLE=false:" \
+ -e "s:^HID2HCI_ENABLE=.*:HID2HCI_ENABLE=false:" \
+ -e "s:^\(# Start dund.*\)$:\1\n# If you want to use dund, you must install\: net-dialup/ppp .:" \
+ ${S}/scripts/bluetooth.default
+
+ sed -i \
+ -e "s:security .*;:security user;:" \
+ ${S}/hcid/hcid.conf
+
+ # fix cups-1.2
+ if use cups; then
+ sed -i -e "s:\$(libdir)/cups:$(cups-config --serverbin):" ${S}/cups/Makefile.{am,in}
+ fi
+}
+
+src_compile() {
+ econf \
+ $(use_enable alsa) \
+ $(use_enable cups) \
+ $(use_enable fuse) \
+ --enable-dbus \
+ --enable-bccmd \
+ --enable-avctrl \
+ --enable-bcm203x \
+ --enable-dfutool \
+ --enable-hid2hci \
+ --enable-obex \
+ --disable-initscripts \
+ --localstatedir=/var \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS ChangeLog README
+
+ # optional bluetooth utils
+ #cd ${S}/tools
+ #dosbin bccmd hcisecfilter ppporc pskey
+
+ #newinitd ${FILESDIR}/${PN}-2.25-init.d bluetooth
+ #newconfd ${S}/scripts/bluetooth.default bluetooth
+
+ # bug #84431
+ if use udev; then
+ insinto /etc/udev/rules.d/
+ newins ${FILESDIR}/${PN}-2.24-udev.rules 70-bluetooth.rules
+
+ exeinto /lib/udev/
+ newexe ${FILESDIR}/${PN}-2.24-udev.script bluetooth.sh
+ fi
+}
+
+pkg_postinst() {
+ einfo
+ einfo "A startup script has been installed in /etc/init.d/bluetooth."
+ einfo
+
+ if use udev; then
+ einfo "You need to run 'udevstart' or reboot for the udev rules"
+ einfo "to take effect."
+ einfo
+ fi
+}
diff --git a/net-wireless/bluez-utils/files/bluez-utils-2.24-udev.rules b/net-wireless/bluez-utils/files/bluez-utils-2.24-udev.rules
new file mode 100644
index 0000000..f4affad
--- /dev/null
+++ b/net-wireless/bluez-utils/files/bluez-utils-2.24-udev.rules
@@ -0,0 +1,3 @@
+# Bluetooth devices:
+#
+KERNEL=="hci[0-9]*", RUN+="/lib/udev/bluetooth.sh"
diff --git a/net-wireless/bluez-utils/files/bluez-utils-2.24-udev.script b/net-wireless/bluez-utils/files/bluez-utils-2.24-udev.script
new file mode 100644
index 0000000..516c046
--- /dev/null
+++ b/net-wireless/bluez-utils/files/bluez-utils-2.24-udev.script
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# bluetooth.sh: udev external RUN script
+#
+# Copyright 2005-2006 Henrik Brix Andersen <brix@gentoo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+script=/etc/init.d/bluetooth
+
+# Find out where sysfs is mounted. Exit if not available
+sysfs=`grep -F sysfs /proc/mounts | awk '{print $2}'`
+if [ "$sysfs" = "" ]; then
+ echo "sysfs is required"
+ exit 1
+fi
+
+if [ ! -d $sysfs/class/bluetooth/hci[0-9]* ]; then
+ if $script --quiet status; then
+ $script stop
+ fi
+else
+ if ! $script --quiet status; then
+ $script start
+ fi
+fi
diff --git a/net-wireless/bluez-utils/files/digest-bluez-utils-3.1 b/net-wireless/bluez-utils/files/digest-bluez-utils-3.1
new file mode 100644
index 0000000..2233b0b
--- /dev/null
+++ b/net-wireless/bluez-utils/files/digest-bluez-utils-3.1
@@ -0,0 +1,3 @@
+MD5 d3032439c3c47ff1ce73ac2ad5bd4ccb bluez-utils-3.1.tar.gz 607925
+RMD160 b3a4ddc16ebf423d34f97456dd17e4d0149ce90a bluez-utils-3.1.tar.gz 607925
+SHA256 518de6148c6fe0297126dcfe347da91057fdd6f711e5bb842867b6afc8adb6f2 bluez-utils-3.1.tar.gz 607925