blob: 0a696f76ff7ce35b901b163466921df5725f2297 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
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="~x86"
IUSE="debug expat usb cups udev"
DEPEND="app-pda/libopensync
=net-wireless/bluez-libs-3*
usb? ( dev-libs/libusb )
cups? ( net-print/cups )
dev-libs/glib
sys-apps/dbus"
src_compile() {
econf \
$(use_enable debug) \
--enable-inotify \
$(use_enable expat) \
$(use_enable usb) \
--enable-glib \
--enable-obex \
--enable-input \
--enable-sync \
--enable-hcid \
--enable-sdpd \
--enable-hidd \
$(use_enable cups) \
--enable-configfiles \
--disable-initscripts \
--enable-pcmciarules \
--enable-bccmd \
--enable-avctrl \
--enable-hid2hci \
--enable-dfutool \
--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
dosbin tools/hcisecfilter tools/ppporc
dobin daemon/passkey-agent
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() {
if use udev; then
einfo "You need to run 'udevstart' or reboot for the udev rules"
einfo "to take effect."
einfo
fi
einfo "If you use hidd, add --encrypt to the HIDD_OPTIONS in"
einfo "/etc/conf.d/bluetooth to secure your connection"
einfo
einfo "To use dund you must install net-dialup/ppp"
einfo
}
|