diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-12-08 18:30:52 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-09 17:46:34 +0000 |
commit | 1288313411f8db7628e9ec4c04f2ad7f830e994d (patch) | |
tree | ee02883e5c6dfde0d8447e40592aafb850a8b743 /meta/recipes-connectivity/connman/connman.inc | |
parent | 9ebdfb081fd9d95abc4302b77d4f9ea42e395f0e (diff) | |
download | poky-1288313411f8db7628e9ec4c04f2ad7f830e994d.tar.gz |
connman: update to 0.78
Updates the package to 0.78 bringing changes done on meta-oe and extra
cleanups as:
* xtables_version.patch: removed as it has been merged upstream
* use sed to fix dbus access policy
* remove build depends on dhclient as connman has an internal client
now
* make wifi and bluetooth building optional
* add ppp in depends that is used by some plugins
* add ntp in depends and enable ntp plugin
* package tools
* enable fake plugin
This uses PR as "r1" since it was previously available on meta-oe.
(From OE-Core rev: 4215b2fb04b3ed61e8e1cf0847639cf6fe31d337)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/connman/connman.inc')
-rw-r--r-- | meta/recipes-connectivity/connman/connman.inc | 96 |
1 files changed, 69 insertions, 27 deletions
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc index 7ee460ec8b..e90aa4b02a 100644 --- a/meta/recipes-connectivity/connman/connman.inc +++ b/meta/recipes-connectivity/connman/connman.inc | |||
@@ -13,7 +13,32 @@ LICENSE = "GPLv2" | |||
13 | LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ | 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ |
14 | file://src/main.c;beginline=1;endline=20;md5=4b55b550fa6b33cc2055ef30dd262b3e" | 14 | file://src/main.c;beginline=1;endline=20;md5=4b55b550fa6b33cc2055ef30dd262b3e" |
15 | 15 | ||
16 | DEPENDS = "libgdbus dbus glib-2.0 iptables" | 16 | # we need to define the depends here, the dynamic stuff is too late |
17 | DEPENDS = "dbus glib-2.0 ppp iptables gnutls ntp \ | ||
18 | ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)} \ | ||
19 | ${@base_contains('DISTRO_FEATURES', 'wifi','wpa-supplicant', '', d)} \ | ||
20 | " | ||
21 | |||
22 | EXTRA_OECONF += "\ | ||
23 | ac_cv_path_WPASUPPLICANT=${sbindir}/wpa_supplicant \ | ||
24 | ac_cv_path_PPPD=${sbindir}/pppd \ | ||
25 | --disable-gtk-doc \ | ||
26 | --enable-debug \ | ||
27 | --enable-threads \ | ||
28 | --enable-loopback \ | ||
29 | --enable-ethernet \ | ||
30 | ${@base_contains('DISTRO_FEATURES', 'wifi','--enable-wifi', '--disable-wifi', d)} \ | ||
31 | ${@base_contains('DISTRO_FEATURES', 'bluetooth','--enable-bluetooth', '--disable-bluetooth', d)} \ | ||
32 | --enable-dnsproxy \ | ||
33 | --enable-ofono \ | ||
34 | --enable-tools \ | ||
35 | --enable-test \ | ||
36 | --disable-polkit \ | ||
37 | --enable-client \ | ||
38 | --enable-fake \ | ||
39 | --enable-ntpd \ | ||
40 | --with-ntpd=${bindir}/ntpd \ | ||
41 | " | ||
17 | 42 | ||
18 | INITSCRIPT_NAME = "connman" | 43 | INITSCRIPT_NAME = "connman" |
19 | INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ." | 44 | INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ." |
@@ -25,44 +50,61 @@ USERADD_PARAM_${PN} = "--system --no-create-home \ | |||
25 | 50 | ||
26 | inherit autotools pkgconfig update-rc.d useradd | 51 | inherit autotools pkgconfig update-rc.d useradd |
27 | 52 | ||
28 | do_install_append() { | 53 | do_compile_append() { |
29 | install -d ${D}${sysconfdir}/init.d/ | 54 | sed -i -e s:deny:allow:g src/connman-dbus.conf |
30 | install -m 0755 ${WORKDIR}/connman ${D}${sysconfdir}/init.d/connman | ||
31 | } | 55 | } |
32 | 56 | ||
33 | PACKAGES += "${PN}-scripts" | 57 | do_install_append() { |
34 | RDEPENDS_${PN}-scripts += "python" | 58 | install -d ${D}${sysconfdir}/init.d |
35 | 59 | install -m 0755 ${WORKDIR}/connman ${D}${sysconfdir}/init.d/connman | |
36 | PACKAGES_DYNAMIC = "${PN}-plugin-*" | ||
37 | FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*.so.* \ | ||
38 | ${sysconfdir} ${sharedstatedir} ${localstatedir} \ | ||
39 | ${base_bindir}/* ${base_sbindir}/* ${base_libdir}/*.so* ${datadir}/${PN} \ | ||
40 | ${datadir}/pixmaps ${datadir}/applications \ | ||
41 | ${datadir}/idl ${datadir}/omf ${datadir}/sounds \ | ||
42 | ${libdir}/bonobo/servers \ | ||
43 | ${datadir}/dbus-1/system-services/* \ | ||
44 | ${libdir}/connman/scripts/dhclient*" | ||
45 | FILES_${PN}-dbg += "${libdir}/connman/plugins/.debug \ | ||
46 | ${libdir}/connman/scripts/.debug" | ||
47 | 60 | ||
48 | FILES_${PN}-dev += "${libdir}/connman/plugins/*.la" | 61 | install -d ${D}${bindir} |
62 | install -m 0755 ${S}/tools/*-test ${D}${bindir} | ||
63 | install -m 0755 ${S}/tools/wispr ${D}${bindir} | ||
64 | } | ||
49 | 65 | ||
50 | FILES_${PN}-scripts += "${libdir}/${PN}/test/*" | 66 | PACKAGES_DYNAMIC = "${PN}-plugin-*" |
51 | 67 | ||
52 | python populate_packages_prepend() { | 68 | python populate_packages_prepend() { |
53 | prefix = (d.getVar("MLPREFIX", True) or "") | 69 | depmap = dict( pppd="ppp", |
54 | depmap = dict( wifi=prefix+"wpa-supplicant", bluetooth=prefix+"bluez4", ofono=prefix+"ofono" ) | 70 | udhcp="busybox connman-scripts", |
71 | dhclient="dhcp-client", | ||
72 | wifi="wpa-supplicant", | ||
73 | resolvconf="resolvconf", | ||
74 | bluetooth="bluez4", | ||
75 | ntpd="ntp", | ||
76 | ofono="ofono" ) | ||
55 | packages = [] | 77 | packages = [] |
78 | multilib_prefix = (d.getVar("MLPREFIX", True) or "") | ||
56 | hook = lambda file,pkg,b,c,d:packages.append((file,pkg)) | 79 | hook = lambda file,pkg,b,c,d:packages.append((file,pkg)) |
57 | |||
58 | plugin_dir = bb.data.expand('${libdir}/connman/plugins/', d) | 80 | plugin_dir = bb.data.expand('${libdir}/connman/plugins/', d) |
59 | plugin_name = bb.data.expand('${PN}-plugin-%s', d) | 81 | plugin_name = bb.data.expand('${PN}-plugin-%s', d) |
60 | |||
61 | do_split_packages(d, plugin_dir, '^(.*).so$', plugin_name, '${PN} plugin for %s', extra_depends='', hook=hook ) | 82 | do_split_packages(d, plugin_dir, '^(.*).so$', plugin_name, '${PN} plugin for %s', extra_depends='', hook=hook ) |
62 | |||
63 | for (file, package) in packages: | 83 | for (file, package) in packages: |
64 | plugintype = package.split( '-' )[-1] | 84 | plugintype = package.split( '-' )[-1] |
65 | if plugintype in depmap: | 85 | if plugintype in depmap: |
66 | bb.note( "Adding rdependency on %s to package %s" % ( depmap[plugintype], package ) ) | 86 | rdepends = map(lambda x: multilib_prefix + x, depmap[plugintype].split()) |
67 | d.setVar("RDEPENDS_%s" % package, depmap[plugintype]) | 87 | bb.note( "Adding rdependency on %s to %s" % ( rdepends, package ) ) |
88 | d.setVar("RDEPENDS_%s" % package, " ".join(rdepends)) | ||
68 | } | 89 | } |
90 | |||
91 | PACKAGES =+ "${PN}-scripts ${PN}-tools ${PN}-tests" | ||
92 | |||
93 | FILES_${PN}-tools = "${bindir}/wispr" | ||
94 | |||
95 | FILES_${PN}-tests = "${bindir}/*-test" | ||
96 | |||
97 | FILES_${PN}-scripts += "${libdir}/${PN}/test/* ${libdir}/connman/scripts" | ||
98 | RDEPENDS_${PN}-scripts = "python" | ||
99 | |||
100 | FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*.so.* \ | ||
101 | ${sysconfdir} ${sharedstatedir} ${localstatedir} \ | ||
102 | ${base_bindir}/* ${base_sbindir}/* ${base_libdir}/*.so* ${datadir}/${PN} \ | ||
103 | ${datadir}/pixmaps ${datadir}/applications \ | ||
104 | ${datadir}/idl ${datadir}/omf ${datadir}/sounds \ | ||
105 | ${libdir}/bonobo/servers \ | ||
106 | ${datadir}/dbus-1/system-services/*" | ||
107 | |||
108 | FILES_${PN}-dbg += "${libdir}/connman/*/.debug" | ||
109 | |||
110 | FILES_${PN}-dev += "${libdir}/connman/*/*.la" | ||