Lines 11-21
Link Here
|
11 |
SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.gz" |
11 |
SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.gz" |
12 |
LICENSE="GPL-2 LGPL-2.1" |
12 |
LICENSE="GPL-2 LGPL-2.1" |
13 |
SLOT="0" |
13 |
SLOT="0" |
14 |
KEYWORDS="amd64 arm ~hppa ppc ~ppc64 ~sh ~sparc x86" |
14 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86" |
15 |
|
15 |
|
16 |
IUSE="alsa +consolekit cups debug doc gstreamer old-daemons test-programs usb" |
16 |
IUSE="alsa caps +consolekit cups debug gstreamer old-daemons pcmcia test-programs usb" |
17 |
|
17 |
|
18 |
CDEPEND="alsa? ( media-libs/alsa-lib ) |
18 |
CDEPEND="alsa? ( media-libs/alsa-lib ) |
|
|
19 |
caps? ( >=sys-libs/libcap-ng-0.6.2 ) |
19 |
gstreamer? ( |
20 |
gstreamer? ( |
20 |
>=media-libs/gstreamer-0.10 |
21 |
>=media-libs/gstreamer-0.10 |
21 |
>=media-libs/gst-plugins-base-0.10 ) |
22 |
>=media-libs/gst-plugins-base-0.10 ) |
Lines 28-52
Link Here
|
28 |
>=dev-libs/libnl-1.1 |
29 |
>=dev-libs/libnl-1.1 |
29 |
!net-wireless/bluez-libs |
30 |
!net-wireless/bluez-libs |
30 |
!net-wireless/bluez-utils" |
31 |
!net-wireless/bluez-utils" |
31 |
DEPEND="sys-devel/flex |
32 |
DEPEND="${CDEPEND} |
32 |
>=dev-util/pkgconfig-0.20 |
33 |
dev-util/pkgconfig |
33 |
doc? ( dev-util/gtk-doc ) |
34 |
sys-devel/bison |
34 |
${CDEPEND}" |
35 |
sys-devel/flex" |
35 |
RDEPEND="${CDEPEND} |
36 |
RDEPEND="${CDEPEND} |
36 |
consolekit? ( sys-auth/pambase[consolekit] )" |
37 |
consolekit? ( sys-auth/pambase[consolekit] ) |
|
|
38 |
test-programs? ( |
39 |
dev-python/dbus-python |
40 |
dev-python/pygobject )" |
37 |
|
41 |
|
38 |
src_prepare() { |
42 |
src_prepare() { |
39 |
epatch \ |
|
|
40 |
"${FILESDIR}/4.31-as_needed.patch" \ |
41 |
"${FILESDIR}/4.34-conditional_libsbc.patch" |
42 |
|
43 |
if ! use consolekit; then |
43 |
if ! use consolekit; then |
44 |
# No consolekit for at_console etc, so we grant plugdev the rights |
44 |
# No consolekit for at_console etc, so we grant plugdev the rights |
45 |
epatch "${FILESDIR}/bluez-plugdev.patch" |
45 |
epatch "${FILESDIR}/bluez-plugdev.patch" |
46 |
fi |
46 |
fi |
47 |
|
47 |
|
48 |
if use cups; then |
48 |
if use cups; then |
49 |
epatch "${FILESDIR}/4.18/cups-location.patch" |
49 |
epatch "${FILESDIR}/4.50-cups-location.patch" |
50 |
fi |
50 |
fi |
51 |
|
51 |
|
52 |
# needed for both patches |
52 |
# needed for both patches |
Lines 54-66
Link Here
|
54 |
} |
54 |
} |
55 |
|
55 |
|
56 |
src_configure() { |
56 |
src_configure() { |
57 |
# the order is the same as ./configure --help |
|
|
58 |
|
59 |
# we don't need the other daemons either with the new |
60 |
# service architechture |
61 |
|
62 |
econf \ |
57 |
econf \ |
63 |
$(use_enable doc gtk-doc) \ |
58 |
$(use_enable caps capng) |
64 |
--enable-network \ |
59 |
--enable-network \ |
65 |
--enable-serial \ |
60 |
--enable-serial \ |
66 |
--enable-input \ |
61 |
--enable-input \ |
Lines 79-88
Link Here
|
79 |
$(use_enable old-daemons dund) \ |
74 |
$(use_enable old-daemons dund) \ |
80 |
$(use_enable cups) \ |
75 |
$(use_enable cups) \ |
81 |
$(use_enable test-programs test) \ |
76 |
$(use_enable test-programs test) \ |
82 |
--enable-manpages \ |
77 |
--enable-udevrules \ |
83 |
--enable-configfiles \ |
78 |
--enable-configfiles \ |
84 |
--disable-initscripts \ |
79 |
$(use_enable pcmcia) \ |
85 |
--disable-pcmciarules \ |
|
|
86 |
$(use_enable debug) \ |
80 |
$(use_enable debug) \ |
87 |
--localstatedir=/var |
81 |
--localstatedir=/var |
88 |
} |
82 |
} |
Lines 91-96
Link Here
|
91 |
emake DESTDIR="${D}" install || die "make install failed" |
85 |
emake DESTDIR="${D}" install || die "make install failed" |
92 |
|
86 |
|
93 |
dodoc AUTHORS ChangeLog README || die |
87 |
dodoc AUTHORS ChangeLog README || die |
|
|
88 |
# don't install useless .la files |
89 |
find "${D}" -type f -name '*.la' -delete || die "failed to remove .la files" |
90 |
|
94 |
|
91 |
|
95 |
if use test-programs ; then |
92 |
if use test-programs ; then |
96 |
cd "${S}/test" |
93 |
cd "${S}/test" |
Lines 105-151
Link Here
|
105 |
cd "${S}" |
102 |
cd "${S}" |
106 |
fi |
103 |
fi |
107 |
|
104 |
|
108 |
newinitd "${FILESDIR}/4.18/bluetooth-init.d" bluetooth || die |
|
|
109 |
newconfd "${FILESDIR}/4.18/bluetooth-conf.d" bluetooth || die |
110 |
|
111 |
if use old-daemons; then |
105 |
if use old-daemons; then |
112 |
newconfd "${FILESDIR}/4.18/conf.d-hidd" hidd || die |
106 |
newconfd "${FILESDIR}/4.18/conf.d-hidd" hidd || die |
113 |
newinitd "${FILESDIR}/4.18/init.d-hidd" hidd || die |
107 |
newinitd "${FILESDIR}/4.18/init.d-hidd" hidd || die |
114 |
fi |
108 |
fi |
115 |
|
109 |
|
116 |
# bug #84431 |
|
|
117 |
insinto /etc/udev/rules.d/ |
118 |
newins "${FILESDIR}/${PN}-4.18-udev.rules" 70-bluetooth.rules || die |
119 |
newins "${S}/scripts/bluetooth.rules" 70-bluetooth-pcmcia.rules || die |
120 |
|
121 |
exeinto /$(get_libdir)/udev/ |
122 |
newexe "${FILESDIR}/${PN}-4.18-udev.script" bluetooth.sh || die |
123 |
doexe "${S}/scripts/bluetooth_serial" || die |
124 |
|
125 |
insinto /etc/bluetooth |
110 |
insinto /etc/bluetooth |
126 |
doins \ |
111 |
doins \ |
127 |
input/input.conf \ |
112 |
input/input.conf \ |
128 |
audio/audio.conf \ |
113 |
audio/audio.conf \ |
129 |
network/network.conf |
114 |
network/network.conf \ |
|
|
115 |
serial/serial.conf \ |
116 |
|| die |
130 |
} |
117 |
} |
131 |
|
118 |
|
132 |
pkg_postinst() { |
119 |
pkg_postinst() { |
133 |
udevadm control --reload_rules && udevadm trigger |
120 |
udevadm control --reload_rules && udevadm trigger --subsystem-match=bluetooth |
134 |
|
121 |
|
135 |
elog |
122 |
elog |
136 |
elog "To use dial up networking you must install net-dialup/ppp." |
123 |
elog "To use dial up networking you must install net-dialup/ppp." |
137 |
elog "" |
124 |
elog "" |
138 |
elog "Since 3.0 bluez has changed the passkey handling to use a dbus based" |
125 |
elog "For a password agent, there is for example net-wireless/bluez-gnome" |
139 |
elog "API so please remember to update your /etc/bluetooth/hcid.conf." |
126 |
elog "and net-wireless/gnome-bluetooth:2 for GNOME; for KDE4 instead you can" |
140 |
elog "For a password agent, there are for example net-wireless/bluez-gnome" |
127 |
elog "install net-wireless/kbluetooth." |
141 |
elog "and net-wireless/gnome-bluetooth:2 for GNOME. For KDE, see bug 246381" |
|
|
142 |
elog "" |
143 |
elog "Since 3.10.1 we don't install the old style daemons any more but rely" |
144 |
elog "on the new service architechture:" |
145 |
elog " http://wiki.bluez.org/wiki/Services" |
146 |
elog "" |
128 |
elog "" |
147 |
elog "3.15 adds support for the audio service. See" |
129 |
elog "For registering devices that don't pair, use net-wireless/blueman." |
148 |
elog "http://wiki.bluez.org/wiki/HOWTO/AudioDevices for configuration help." |
|
|
149 |
elog "" |
130 |
elog "" |
150 |
elog "Use the old-daemons use flag to get the old daemons like hidd" |
131 |
elog "Use the old-daemons use flag to get the old daemons like hidd" |
151 |
elog "installed. Please note that the init script doesn't stop the old" |
132 |
elog "installed. Please note that the init script doesn't stop the old" |
Lines 157-173
Link Here
|
157 |
elog "If you want to use rfcomm as a normal user, you need to add the user" |
138 |
elog "If you want to use rfcomm as a normal user, you need to add the user" |
158 |
elog "to the uucp group." |
139 |
elog "to the uucp group." |
159 |
elog "" |
140 |
elog "" |
|
|
141 |
if use consolekit; then |
142 |
elog "" |
143 |
elog "If you want to use rfcomm as a normal user, you need to add the user" |
144 |
elog "to the uucp group." |
145 |
else |
146 |
elog "" |
147 |
ewarn "Since you have the consolekit use flag disabled for this package, you will only be " |
148 |
ewarn "able to run bluetooth clients as root. If you want to be able to run bluetooth " |
149 |
ewarn "clients as a regular user, you must enable the consolekit use flag for this package." |
150 |
fi |
160 |
if use old-daemons; then |
151 |
if use old-daemons; then |
|
|
152 |
elog "" |
161 |
elog "The hidd init script was installed because you have the old-daemons" |
153 |
elog "The hidd init script was installed because you have the old-daemons" |
162 |
elog "use flag on. It is not started by default via udev so please add it" |
154 |
elog "use flag on. It is not started by default via udev so please add it" |
163 |
elog "to the required runleves using rc-update <runlevel> add hidd. If" |
155 |
elog "to the required runlevels using rc-update <runlevel> add hidd. If" |
164 |
elog "you need init scripts for the other daemons, please file requests" |
156 |
elog "you need init scripts for the other daemons, please file requests" |
165 |
elog "to https://bugs.gentoo.org." |
157 |
elog "to https://bugs.gentoo.org." |
166 |
else |
158 |
else |
|
|
159 |
elog "" |
167 |
elog "The bluetooth service should be started automatically by udev" |
160 |
elog "The bluetooth service should be started automatically by udev" |
168 |
elog "when the required hardware is inserted next time." |
161 |
elog "when the required hardware is inserted next time." |
169 |
fi |
162 |
fi |
170 |
elog |
|
|
171 |
ewarn "On first install you need to run /etc/init.d/dbus reload or hcid" |
172 |
ewarn "will fail to start." |
173 |
} |
163 |
} |