summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ Robert Ray <jrray@gentoo.org>2002-11-08 22:57:33 +0000
committerJ Robert Ray <jrray@gentoo.org>2002-11-08 22:57:33 +0000
commit50334491f5894583091ced4f19d1044de7e8490f (patch)
treeeeb67fdb0012f8355d8e20cd7ec2df1e2038b8bb /net-wireless/bluez-kernel
parentNew package, bug #6190 (diff)
downloadgentoo-2-50334491f5894583091ced4f19d1044de7e8490f.tar.gz
gentoo-2-50334491f5894583091ced4f19d1044de7e8490f.tar.bz2
gentoo-2-50334491f5894583091ced4f19d1044de7e8490f.zip
ebuilds for bluez bluetooth drivers and utils
Diffstat (limited to 'net-wireless/bluez-kernel')
-rw-r--r--net-wireless/bluez-kernel/ChangeLog8
-rw-r--r--net-wireless/bluez-kernel/bluez-kernel-2.3.ebuild61
-rw-r--r--net-wireless/bluez-kernel/files/digest-bluez-kernel-2.31
3 files changed, 70 insertions, 0 deletions
diff --git a/net-wireless/bluez-kernel/ChangeLog b/net-wireless/bluez-kernel/ChangeLog
new file mode 100644
index 000000000000..14eb7030ff23
--- /dev/null
+++ b/net-wireless/bluez-kernel/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-wireless/bluez-kernel
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez-kernel/ChangeLog,v 1.1 2002/11/08 22:57:33 jrray Exp $
+
+*bluez-kernel-2.3 (08 Nov 2002)
+
+ 08 Nov 2002; J Robert Ray <jrray@gentoo.org> :
+ New ebuild.
diff --git a/net-wireless/bluez-kernel/bluez-kernel-2.3.ebuild b/net-wireless/bluez-kernel/bluez-kernel-2.3.ebuild
new file mode 100644
index 000000000000..7de90ff231c5
--- /dev/null
+++ b/net-wireless/bluez-kernel/bluez-kernel-2.3.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez-kernel/bluez-kernel-2.3.ebuild,v 1.1 2002/11/08 22:57:33 jrray Exp $
+
+DESCRIPTION="bluetooth kernel drivers"
+HOMEPAGE="http://bluez.sourceforge.net/"
+SRC_URI="http://bluez.sourceforge.net/download/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+DEPEND=""
+S="${WORKDIR}/${P}"
+
+src_unpack() {
+ unpack ${A} || die "unpack failed"
+ cd ${S} || die
+
+ # don't let the install target try to run depmod
+ # and 'bnep' fails to compile
+
+ mv Makefile.in Makefile.in.orig
+ sed -e '25d' \
+ -e 's|bnep\s*||' \
+ Makefile.in.orig > Makefile.in
+}
+
+src_compile() {
+ ./configure \
+ --host=${CHOST} \
+ --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man || die "./configure failed"
+
+ emake || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+}
+
+pkg_setup() {
+ # bluez shouldn't be used with the std linux bluetooth usb driver
+ if [ -f /usr/src/linux/.config ]; then
+ if [[ `grep ^CONFIG_USB_BLUETOOTH=y /usr/src/linux/.config` ]]; then
+ einfo "You must disable the USB bluetooth driver in the linux kernel"
+ einfo "before running bluez"
+ die "Bad kernel config"
+ elif [[ `grep ^CONFIG_USB_BLUETOOTH=m /usr/src/linux/.config` ]]; then
+ einfo "Warning: bluez should not be used with the USB bluetooth driver"
+ einfo "Warning: in the linux kernel"
+ fi
+ fi
+}
+
+pkg_postinst() {
+ if [ "${ROOT}" = / ]
+ then
+ [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules
+ fi
+}
diff --git a/net-wireless/bluez-kernel/files/digest-bluez-kernel-2.3 b/net-wireless/bluez-kernel/files/digest-bluez-kernel-2.3
new file mode 100644
index 000000000000..1f00042d6768
--- /dev/null
+++ b/net-wireless/bluez-kernel/files/digest-bluez-kernel-2.3
@@ -0,0 +1 @@
+MD5 1193a6242a0b1f607dcdde7aaeb2095c bluez-kernel-2.3.tar.gz 174004