Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 270859 | Differences between
and this patch

Collapse All | Expand All

(-)bluez-4.39-r2.ebuild (-53 / +44 lines)
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-66 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
        #patch needed for ps3 bdremote
53
        epatch "${FILESDIR}/fakehid.patch"
54
        #Puts device in power save mode when idle
55
        epatch "${FILESDIR}/device.patch"
56
52
	# needed for both patches
57
	# needed for both patches
53
	eautoreconf
58
	eautoreconf
54
}
59
}
55
60
56
src_configure() {
61
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 \
62
	econf \
63
		$(use_enable doc gtk-doc) \
63
		$(use_enable caps capng) \
64
		--enable-network \
64
		--enable-network \
65
		--enable-serial \
65
		--enable-serial \
66
		--enable-input \
66
		--enable-input \
Lines 79-88 Link Here
79
		$(use_enable old-daemons dund) \
79
		$(use_enable old-daemons dund) \
80
		$(use_enable cups) \
80
		$(use_enable cups) \
81
		$(use_enable test-programs test) \
81
		$(use_enable test-programs test) \
82
		--enable-manpages \
82
		--enable-udevrules \
83
		--enable-configfiles \
83
		--enable-configfiles \
84
		--disable-initscripts \
84
		$(use_enable pcmcia) \
85
		--disable-pcmciarules \
86
		$(use_enable debug) \
85
		$(use_enable debug) \
87
		--localstatedir=/var
86
		--localstatedir=/var
88
}
87
}
Lines 91-96 Link Here
91
	emake DESTDIR="${D}" install || die "make install failed"
90
	emake DESTDIR="${D}" install || die "make install failed"
92
91
93
	dodoc AUTHORS ChangeLog README || die
92
	dodoc AUTHORS ChangeLog README || die
93
	# don't install useless .la files
94
	find "${D}" -type f -name '*.la' -delete || die "failed to remove .la files"
95
94
96
95
	if use test-programs ; then
97
	if use test-programs ; then
96
		cd "${S}/test"
98
		cd "${S}/test"
Lines 105-151 Link Here
105
		cd "${S}"
107
		cd "${S}"
106
	fi
108
	fi
107
109
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
110
	if use old-daemons; then
112
		newconfd "${FILESDIR}/4.18/conf.d-hidd" hidd || die
111
		newconfd "${FILESDIR}/4.18/conf.d-hidd" hidd || die
113
		newinitd "${FILESDIR}/4.18/init.d-hidd" hidd || die
112
		newinitd "${FILESDIR}/4.18/init.d-hidd" hidd || die
114
	fi
113
	fi
115
114
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
115
	insinto /etc/bluetooth
126
	doins \
116
	doins \
127
		input/input.conf \
117
		input/input.conf \
128
		audio/audio.conf \
118
		audio/audio.conf \
129
		network/network.conf
119
		network/network.conf \
120
		serial/serial.conf \
121
		|| die
130
}
122
}
131
123
132
pkg_postinst() {
124
pkg_postinst() {
133
	udevadm control --reload_rules && udevadm trigger
125
	udevadm control --reload_rules && udevadm trigger --subsystem-match=bluetooth
134
126
135
	elog
127
	elog
136
	elog "To use dial up networking you must install net-dialup/ppp."
128
	elog "To use dial up networking you must install net-dialup/ppp."
137
	elog ""
129
	elog ""
138
	elog "Since 3.0 bluez has changed the passkey handling to use a dbus based"
130
	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."
131
	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"
132
	elog "install net-wireless/kbluetooth."
141
	elog "and net-wireless/gnome-bluetooth:2 for GNOME. For KDE, see bug 246381"
142
	elog ""
133
	elog ""
143
	elog "Since 3.10.1 we don't install the old style daemons any more but rely"
134
	elog "For registering devices that don't pair, use net-wireless/blueman."
144
	elog "on the new service architechture:"
145
	elog "	http://wiki.bluez.org/wiki/Services"
146
	elog ""
147
	elog "3.15 adds support for the audio service. See"
148
	elog "http://wiki.bluez.org/wiki/HOWTO/AudioDevices for configuration help."
149
	elog ""
135
	elog ""
150
	elog "Use the old-daemons use flag to get the old daemons like hidd"
136
	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"
137
	elog "installed. Please note that the init script doesn't stop the old"
Lines 153-173 Link Here
153
	elog "  /etc/init.d/bluetooth stop"
139
	elog "  /etc/init.d/bluetooth stop"
154
	elog "before updating your configuration files or you can manually kill"
140
	elog "before updating your configuration files or you can manually kill"
155
	elog "the extra daemons you previously enabled in /etc/conf.d/bluetooth."
141
	elog "the extra daemons you previously enabled in /etc/conf.d/bluetooth."
156
	elog ""
142
	if use consolekit; then
157
	elog "If you want to use rfcomm as a normal user, you need to add the user"
143
		elog ""
158
	elog "to the uucp group."
144
		elog "If you want to use rfcomm as a normal user, you need to add the user"
159
	elog ""
145
		elog "to the uucp group."
146
	else
147
		elog ""
148
		ewarn "Since you have the consolekit use flag disabled for this package, you will only be "
149
		ewarn "able to run bluetooth clients as root.  If you want to be able to run bluetooth "
150
		ewarn "clients as a regular user, you must enable the consolekit use flag for this package."
151
	fi
160
	if use old-daemons; then
152
	if use old-daemons; then
153
		elog ""
161
		elog "The hidd init script was installed because you have the old-daemons"
154
		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"
155
		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"
156
		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"
157
		elog "you need init scripts for the other daemons, please file requests"
165
		elog "to https://bugs.gentoo.org."
158
		elog "to https://bugs.gentoo.org."
166
	else
159
	else
160
		elog ""
167
		elog "The bluetooth service should be started automatically by udev"
161
		elog "The bluetooth service should be started automatically by udev"
168
		elog "when the required hardware is inserted next time."
162
		elog "when the required hardware is inserted next time."
169
	fi
163
	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
}
164
}

Return to bug 270859