diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2011-12-13 10:41:14 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-13 12:28:11 +0000 |
| commit | 406593fdf179b0361ddbfb04da3144dbec8296e0 (patch) | |
| tree | ccfd52766040eaa78cf2811fd65d8c7ebce4e3bb | |
| parent | d6860b2127f692b6e368c81db988fc153cb5291d (diff) | |
| download | poky-406593fdf179b0361ddbfb04da3144dbec8296e0.tar.gz | |
connman: improve packaging
The scripts being included on connman-scripts was the test utility and
thus we are moving them with the rest of test utilities in
'connman-tests'. A runtime dependency on python-dbus were missing as
well as those scripts uses it.
As no dhclient, resolvconf and udhcpc plugins are being generated the
respective dependency map entries were also removed.
(From OE-Core rev: 6f9594cddefe74ce7381e4fa2a68cb8a542d6d2e)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-connectivity/connman/connman.inc | 14 | ||||
| -rw-r--r-- | meta/recipes-connectivity/connman/connman_0.78.bb | 2 |
2 files changed, 7 insertions, 9 deletions
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc index 503bf1cffa..bb1b27990c 100644 --- a/meta/recipes-connectivity/connman/connman.inc +++ b/meta/recipes-connectivity/connman/connman.inc | |||
| @@ -68,16 +68,16 @@ do_install_append() { | |||
| 68 | install -d ${D}${bindir} | 68 | install -d ${D}${bindir} |
| 69 | install -m 0755 ${S}/tools/*-test ${D}${bindir} | 69 | install -m 0755 ${S}/tools/*-test ${D}${bindir} |
| 70 | install -m 0755 ${S}/tools/wispr ${D}${bindir} | 70 | install -m 0755 ${S}/tools/wispr ${D}${bindir} |
| 71 | |||
| 72 | # We don't need to package an empty directory | ||
| 73 | rmdir ${D}${libdir}/connman/scripts | ||
| 71 | } | 74 | } |
| 72 | 75 | ||
| 73 | PACKAGES_DYNAMIC = "${PN}-plugin-*" | 76 | PACKAGES_DYNAMIC = "${PN}-plugin-*" |
| 74 | 77 | ||
| 75 | python populate_packages_prepend() { | 78 | python populate_packages_prepend() { |
| 76 | depmap = dict( pppd="ppp", | 79 | depmap = dict( pppd="ppp", |
| 77 | udhcp="busybox connman-scripts", | ||
| 78 | dhclient="dhcp-client", | ||
| 79 | wifi="wpa-supplicant", | 80 | wifi="wpa-supplicant", |
| 80 | resolvconf="resolvconf", | ||
| 81 | bluetooth="bluez4", | 81 | bluetooth="bluez4", |
| 82 | ofono="ofono" ) | 82 | ofono="ofono" ) |
| 83 | packages = [] | 83 | packages = [] |
| @@ -94,14 +94,12 @@ python populate_packages_prepend() { | |||
| 94 | d.setVar("RDEPENDS_%s" % package, " ".join(rdepends)) | 94 | d.setVar("RDEPENDS_%s" % package, " ".join(rdepends)) |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | PACKAGES =+ "${PN}-scripts ${PN}-tools ${PN}-tests" | 97 | PACKAGES =+ "${PN}-tools ${PN}-tests" |
| 98 | 98 | ||
| 99 | FILES_${PN}-tools = "${bindir}/wispr" | 99 | FILES_${PN}-tools = "${bindir}/wispr" |
| 100 | 100 | ||
| 101 | FILES_${PN}-tests = "${bindir}/*-test" | 101 | FILES_${PN}-tests = "${bindir}/*-test ${libdir}/${PN}/test/*" |
| 102 | 102 | RDEPENDS_${PN}-tests = "python-dbus" | |
| 103 | FILES_${PN}-scripts += "${libdir}/${PN}/test/* ${libdir}/connman/scripts" | ||
| 104 | RDEPENDS_${PN}-scripts = "python" | ||
| 105 | 103 | ||
| 106 | FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*.so.* \ | 104 | FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*.so.* \ |
| 107 | ${sysconfdir} ${sharedstatedir} ${localstatedir} \ | 105 | ${sysconfdir} ${sharedstatedir} ${localstatedir} \ |
diff --git a/meta/recipes-connectivity/connman/connman_0.78.bb b/meta/recipes-connectivity/connman/connman_0.78.bb index f36f6707c7..74c102b852 100644 --- a/meta/recipes-connectivity/connman/connman_0.78.bb +++ b/meta/recipes-connectivity/connman/connman_0.78.bb | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | require connman.inc | 1 | require connman.inc |
| 2 | 2 | ||
| 3 | PR = "r4" | 3 | PR = "r5" |
| 4 | 4 | ||
| 5 | # 0.78 tag | 5 | # 0.78 tag |
| 6 | SRCREV = "02f5d5fe2d7c71514a6387ba2b772b42d8e8d297" | 6 | SRCREV = "02f5d5fe2d7c71514a6387ba2b772b42d8e8d297" |
