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
|
require recipes-connectivity/connman/connman.inc
# We use a known good version instead of some buggy point version.
SRCREV = "ea66bc2f59d2a3339ff07c5f556ee4876538115d"
SRC_URI = "\
git://git.kernel.org/pub/scm/network/connman/connman.git \
file://add_xuser_dbus_permission.patch \
file://connman.service \
"
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
file://src/main.c;beginline=1;endline=20;md5=486a279a6ab0c8d152bcda3a5b5edc36 \
"
# Enable debugging the easy way in systemd based distro.
# See 0001-doc-Debugging-in-host-that-uses-systemd.patch for usage.
SRC_URI += "\
file://0003-systemd-Use-environment-file-for-connman-vpnd-debug-.patch \
"
S = "${WORKDIR}/git"
PR = "${INC_PR}.0"
PV = "1.30+git${SRCPV}"
# Override some options from poky connman recipe
EXTRA_OECONF += "\
--enable-loopback=builtin \
--enable-ethernet=builtin \
--enable-test \
--enable-client \
--enable-tools \
--disable-polkit \
--enable-pacrunner \
--enable-wispr \
"
# Make sure we will use bluez5 instead of older bluez4
PACKAGECONFIG[bluez5] = "--enable-bluetooth, --disable-bluetooth, bluez5"
RDEPENDS_${PN} = "\
dbus \
${@base_contains('PACKAGECONFIG', 'bluez5', 'bluez5', '', d)} \
${@base_contains('PACKAGECONFIG', 'wifi','wpa-supplicant', '', d)} \
${@base_contains('PACKAGECONFIG', '3g','ofono', '', d)} \
"
do_install_append() {
install -d ${D}${sysconfdir}/connman
install -m 0644 ${S}/src/main.conf ${D}${sysconfdir}/connman/main.conf.example
install -m 0755 ${WORKDIR}/connman.service ${D}${nonarch_base_libdir}/systemd/system
}
|