diff options
Diffstat (limited to 'meta-oe/recipes-connectivity/connman/connman.inc')
-rw-r--r-- | meta-oe/recipes-connectivity/connman/connman.inc | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/connman/connman.inc b/meta-oe/recipes-connectivity/connman/connman.inc new file mode 100644 index 000000000..69f91b3a3 --- /dev/null +++ b/meta-oe/recipes-connectivity/connman/connman.inc | |||
@@ -0,0 +1,79 @@ | |||
1 | SUMMARY = "A daemon for managing internet connections within embedded devices" | ||
2 | DESCRIPTION = "The ConnMan project provides a daemon for managing \ | ||
3 | internet connections within embedded devices running the Linux \ | ||
4 | operating system. The Connection Manager is designed to be slim and \ | ||
5 | to use as few resources as possible, so it can be easily integrated. \ | ||
6 | It is a fully modular system that can be extended, through plug-ins, \ | ||
7 | to support all kinds of wired or wireless technologies. Also, \ | ||
8 | configuration methods, like DHCP and domain name resolving, are \ | ||
9 | implemented using plug-ins." | ||
10 | HOMEPAGE = "http://connman.net/" | ||
11 | BUGTRACKER = "http://bugs.meego.com/buglist.cgi?quicksearch=connman" | ||
12 | LICENSE = "GPLv2" | ||
13 | LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ | ||
14 | file://src/main.c;beginline=1;endline=20;md5=4b55b550fa6b33cc2055ef30dd262b3e" | ||
15 | |||
16 | # we need to define the depends here, the dynamic stuff is too late | ||
17 | DEPENDS = "libnl wpa-supplicant dbus glib-2.0 ppp busybox dhcp resolvconf bluez4" | ||
18 | |||
19 | EXTRA_OECONF += "\ | ||
20 | ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \ | ||
21 | ac_cv_path_DHCLIENT=/sbin/dhclient \ | ||
22 | ac_cv_path_UDHCPC=/sbin/udhcpc \ | ||
23 | ac_cv_path_RESOLVCONF=/sbin/resolvconf \ | ||
24 | ac_cv_path_PPPD=/usr/sbin/pppd \ | ||
25 | " | ||
26 | |||
27 | INITSCRIPT_NAME = "connman" | ||
28 | INITSCRIPT_PARAMS = "start 05 5 2 . stop 22 0 1 6 ." | ||
29 | |||
30 | PARALLEL_MAKE = "" | ||
31 | |||
32 | inherit autotools pkgconfig update-rc.d | ||
33 | |||
34 | do_configure_append() { | ||
35 | ln -sf . include/connman | ||
36 | } | ||
37 | |||
38 | do_compile_append() { | ||
39 | sed -i -e s:deny:allow:g src/connman-dbus.conf | ||
40 | } | ||
41 | |||
42 | do_install_append() { | ||
43 | install -d ${D}${sysconfdir}/init.d | ||
44 | install -m 0755 ${WORKDIR}/connman ${D}${sysconfdir}/init.d/connman | ||
45 | } | ||
46 | |||
47 | python populate_packages_prepend() { | ||
48 | depmap = dict( pppd="ppp", udhcp="busybox connman-scripts", dhclient="dhcp-client", wifi="wpa-supplicant", resolvconf="resolvconf", bluetooth="bluez4" ) | ||
49 | packages = [] | ||
50 | hook = lambda file,pkg,b,c,d:packages.append((file,pkg)) | ||
51 | plugin_dir = bb.data.expand('${libdir}/connman/plugins/', d) | ||
52 | plugin_name = bb.data.expand('${PN}-plugin-%s', d) | ||
53 | do_split_packages(d, plugin_dir, '^(.*).so$', plugin_name, '${PN} plugin for %s', extra_depends='', hook=hook ) | ||
54 | for (file, package) in packages: | ||
55 | plugintype = package.split( '-' )[-1] | ||
56 | if plugintype in depmap: | ||
57 | rdepends = bb.data.getVar( "RDEPENDS_%s" % package, d ) | ||
58 | bb.note( "Adding rdependency on %s to package %s" % ( depmap[plugintype], package ) ) | ||
59 | bb.data.setVar("RDEPENDS_%s" % package, depmap[plugintype], d) | ||
60 | } | ||
61 | |||
62 | PACKAGES_DYNAMIC = "${PN}-plugin-*" | ||
63 | |||
64 | PACKAGES += "${PN}-scripts ${PN}-test-utils" | ||
65 | |||
66 | FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*.so.* \ | ||
67 | ${sysconfdir} ${sharedstatedir} ${localstatedir} \ | ||
68 | ${base_bindir}/* ${base_sbindir}/* ${base_libdir}/*.so* ${datadir}/${PN} \ | ||
69 | ${datadir}/pixmaps ${datadir}/applications \ | ||
70 | ${datadir}/idl ${datadir}/omf ${datadir}/sounds \ | ||
71 | ${libdir}/bonobo/servers \ | ||
72 | ${datadir}/dbus-1/system-services/*" | ||
73 | |||
74 | FILES_${PN}-test-utils += "${libdir}/connman/test/*" | ||
75 | |||
76 | FILES_${PN}-scripts += "${libdir}/connman/scripts" | ||
77 | FILES_${PN}-dbg += "${libdir}/connman/*/.debug" | ||
78 | FILES_${PN}-dev += "${libdir}/connman/*/*.la" | ||
79 | |||