Lines 1-6
Link Here
|
1 |
# Copyright 1999-2009 Gentoo Foundation |
1 |
# Copyright 1999-2009 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/bluez-4.39-r1.ebuild,v 1.1 2009/09/05 11:59:29 patrick Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI="2" |
5 |
EAPI="2" |
6 |
|
6 |
|
Lines 13-24
Link Here
|
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 cups debug doc gstreamer old-daemons test-programs usb" |
16 |
IUSE="alsa 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 |
gstreamer? ( |
19 |
gstreamer? ( |
20 |
>=media-libs/gstreamer-0.10 |
20 |
>=media-libs/gstreamer-0.10 |
21 |
>=media-libs/gst-plugins-base-0.10 ) |
21 |
>=media-libs/gst-plugins-base-0.10 |
|
|
22 |
) |
22 |
usb? ( dev-libs/libusb ) |
23 |
usb? ( dev-libs/libusb ) |
23 |
cups? ( net-print/cups ) |
24 |
cups? ( net-print/cups ) |
24 |
sys-fs/udev |
25 |
sys-fs/udev |
Lines 28-62
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-0.20 |
33 |
doc? ( dev-util/gtk-doc ) |
34 |
sys-devel/bison |
34 |
${CDEPEND}" |
35 |
sys-devel/flex" |
35 |
RDEPEND="${CDEPEND} |
36 |
RDEPEND="${CDEPEND} |
36 |
sys-auth/pambase[consolekit]" |
37 |
consolekit? ( sys-auth/pambase[consolekit] ) |
|
|
38 |
test-programs? ( |
39 |
dev-python/dbus-python |
40 |
dev-python/pygobject |
41 |
)" |
37 |
|
42 |
|
38 |
src_prepare() { |
43 |
src_prepare() { |
39 |
epatch \ |
44 |
epatch "${FILESDIR}"/${PN}-plugdev.patch |
40 |
"${FILESDIR}/4.31-as_needed.patch" \ |
|
|
41 |
"${FILESDIR}/4.34-conditional_libsbc.patch" |
42 |
|
45 |
|
43 |
epatch "${FILESDIR}/bluez-plugdev.patch" |
|
|
44 |
if use cups; then |
46 |
if use cups; then |
45 |
epatch "${FILESDIR}/4.18/cups-location.patch" |
47 |
epatch "${FILESDIR}"/4.50-cups-location.patch |
|
|
48 |
eautoreconf |
46 |
fi |
49 |
fi |
47 |
|
|
|
48 |
# needed for both patches |
49 |
eautoreconf |
50 |
} |
50 |
} |
51 |
|
51 |
|
52 |
src_configure() { |
52 |
src_configure() { |
53 |
# the order is the same as ./configure --help |
|
|
54 |
|
55 |
# we don't need the other daemons either with the new |
56 |
# service architechture |
57 |
|
58 |
econf \ |
53 |
econf \ |
59 |
$(use_enable doc gtk-doc) \ |
|
|
60 |
--enable-network \ |
54 |
--enable-network \ |
61 |
--enable-serial \ |
55 |
--enable-serial \ |
62 |
--enable-input \ |
56 |
--enable-input \ |
Lines 68-73
Link Here
|
68 |
--enable-netlink \ |
62 |
--enable-netlink \ |
69 |
--enable-tools \ |
63 |
--enable-tools \ |
70 |
--enable-bccmd \ |
64 |
--enable-bccmd \ |
|
|
65 |
$(use_enable pcmcia) \ |
71 |
--enable-hid2hci \ |
66 |
--enable-hid2hci \ |
72 |
--enable-dfutool \ |
67 |
--enable-dfutool \ |
73 |
$(use_enable old-daemons hidd) \ |
68 |
$(use_enable old-daemons hidd) \ |
Lines 75-93
Link Here
|
75 |
$(use_enable old-daemons dund) \ |
70 |
$(use_enable old-daemons dund) \ |
76 |
$(use_enable cups) \ |
71 |
$(use_enable cups) \ |
77 |
$(use_enable test-programs test) \ |
72 |
$(use_enable test-programs test) \ |
78 |
--enable-manpages \ |
73 |
--enable-udevrules \ |
79 |
--enable-configfiles \ |
74 |
--enable-configfiles \ |
80 |
--disable-initscripts \ |
|
|
81 |
--disable-pcmciarules \ |
82 |
$(use_enable debug) \ |
75 |
$(use_enable debug) \ |
83 |
--localstatedir=/var |
76 |
--localstatedir=/var |
84 |
} |
77 |
} |
85 |
|
78 |
|
86 |
src_install() { |
79 |
src_install() { |
87 |
emake DESTDIR="${D}" install || die "make install failed" |
80 |
emake DESTDIR="${D}" install || die "make install failed" |
88 |
|
|
|
89 |
dodoc AUTHORS ChangeLog README || die |
81 |
dodoc AUTHORS ChangeLog README || die |
90 |
|
82 |
|
|
|
83 |
# don't install useless .la files |
84 |
find "${D}" -type f -name '*.la' -delete || die "failed to remove .la files" |
85 |
|
91 |
if use test-programs ; then |
86 |
if use test-programs ; then |
92 |
cd "${S}/test" |
87 |
cd "${S}/test" |
93 |
dobin simple-agent simple-service monitor-bluetooth |
88 |
dobin simple-agent simple-service monitor-bluetooth |
Lines 97-158
Link Here
|
97 |
done |
92 |
done |
98 |
insinto /usr/share/doc/${PF}/test-services |
93 |
insinto /usr/share/doc/${PF}/test-services |
99 |
doins service-* |
94 |
doins service-* |
100 |
|
|
|
101 |
cd "${S}" |
95 |
cd "${S}" |
102 |
fi |
96 |
fi |
103 |
|
97 |
|
104 |
newinitd "${FILESDIR}/4.18/bluetooth-init.d" bluetooth || die |
|
|
105 |
newconfd "${FILESDIR}/4.18/bluetooth-conf.d" bluetooth || die |
106 |
|
107 |
if use old-daemons; then |
98 |
if use old-daemons; then |
108 |
newconfd "${FILESDIR}/4.18/conf.d-hidd" hidd || die |
99 |
newconfd "${FILESDIR}/4.18/conf.d-hidd" hidd || die |
109 |
newinitd "${FILESDIR}/4.18/init.d-hidd" hidd || die |
100 |
newinitd "${FILESDIR}/4.18/init.d-hidd" hidd || die |
110 |
fi |
101 |
fi |
111 |
|
102 |
|
112 |
# bug #84431 |
103 |
## TODO: use group uucp in new udev rules? |
113 |
insinto /etc/udev/rules.d/ |
|
|
114 |
newins "${FILESDIR}/${PN}-4.18-udev.rules" 70-bluetooth.rules || die |
115 |
newins "${S}/scripts/bluetooth.rules" 70-bluetooth-pcmcia.rules || die |
116 |
|
117 |
exeinto /$(get_libdir)/udev/ |
118 |
newexe "${FILESDIR}/${PN}-4.18-udev.script" bluetooth.sh || die |
119 |
doexe "${S}/scripts/bluetooth_serial" || die |
120 |
|
104 |
|
121 |
insinto /etc/bluetooth |
105 |
insinto /etc/bluetooth |
122 |
doins \ |
106 |
doins \ |
123 |
input/input.conf \ |
107 |
input/input.conf \ |
124 |
audio/audio.conf \ |
108 |
audio/audio.conf \ |
125 |
network/network.conf |
109 |
network/network.conf \ |
|
|
110 |
serial/serial.conf \ |
111 |
|| die |
126 |
} |
112 |
} |
127 |
|
113 |
|
128 |
pkg_postinst() { |
114 |
pkg_postinst() { |
129 |
udevadm control --reload_rules && udevadm trigger |
115 |
udevadm control --reload-rules && udevadm trigger --subsystem-match=bluetooth |
130 |
|
116 |
|
131 |
elog |
|
|
132 |
elog "To use dial up networking you must install net-dialup/ppp." |
117 |
elog "To use dial up networking you must install net-dialup/ppp." |
133 |
elog "" |
118 |
elog |
134 |
elog "Since 3.0 bluez has changed the passkey handling to use a dbus based" |
|
|
135 |
elog "API so please remember to update your /etc/bluetooth/hcid.conf." |
136 |
elog "For a password agent, there is for example net-wireless/bluez-gnome" |
119 |
elog "For a password agent, there is for example net-wireless/bluez-gnome" |
137 |
elog "for gnome and net-wireless/kdebluetooth for kde." |
120 |
elog "for gnome and net-wireless/kdebluetooth for kde." |
138 |
elog "" |
121 |
elog |
139 |
elog "Since 3.10.1 we don't install the old style daemons any more but rely" |
122 |
elog "If you want to use rfcomm as a normal user, you need to add the user" |
140 |
elog "on the new service architechture:" |
123 |
elog "to the uucp group." |
141 |
elog " http://wiki.bluez.org/wiki/Services" |
124 |
elog |
142 |
elog "" |
|
|
143 |
elog "3.15 adds support for the audio service. See" |
144 |
elog "http://wiki.bluez.org/wiki/HOWTO/AudioDevices for configuration help." |
145 |
elog "" |
146 |
elog "Use the old-daemons use flag to get the old daemons like hidd" |
125 |
elog "Use the old-daemons use flag to get the old daemons like hidd" |
147 |
elog "installed. Please note that the init script doesn't stop the old" |
126 |
elog "installed. Please note that the init script doesn't stop the old" |
148 |
elog "daemons after you update it so it's recommended to run:" |
127 |
elog "daemons after you update it so it's recommended to run:" |
149 |
elog " /etc/init.d/bluetooth stop" |
128 |
elog " /etc/init.d/bluetooth stop" |
150 |
elog "before updating your configuration files or you can manually kill" |
129 |
elog "before updating your configuration files or you can manually kill" |
151 |
elog "the extra daemons you previously enabled in /etc/conf.d/bluetooth." |
130 |
elog "the extra daemons you previously enabled in /etc/conf.d/bluetooth." |
152 |
elog "" |
131 |
elog |
153 |
elog "If you want to use rfcomm as a normal user, you need to add the user" |
|
|
154 |
elog "to the uucp group." |
155 |
elog "" |
156 |
if use old-daemons; then |
132 |
if use old-daemons; then |
157 |
elog "The hidd init script was installed because you have the old-daemons" |
133 |
elog "The hidd init script was installed because you have the old-daemons" |
158 |
elog "use flag on. It is not started by default via udev so please add it" |
134 |
elog "use flag on. It is not started by default via udev so please add it" |
Lines 163-169
Link Here
|
163 |
elog "The bluetooth service should be started automatically by udev" |
139 |
elog "The bluetooth service should be started automatically by udev" |
164 |
elog "when the required hardware is inserted next time." |
140 |
elog "when the required hardware is inserted next time." |
165 |
fi |
141 |
fi |
166 |
elog |
|
|
167 |
ewarn "On first install you need to run /etc/init.d/dbus reload or hcid" |
168 |
ewarn "will fail to start." |
169 |
} |
142 |
} |