2010-09-28 14:30:42 +00:00
|
|
|
SUMMARY = "A daemon for managing internet connections within embedded devices"
|
|
|
|
DESCRIPTION = "The ConnMan project provides a daemon for managing \
|
|
|
|
internet connections within embedded devices running the Linux \
|
|
|
|
operating system. The Connection Manager is designed to be slim and \
|
|
|
|
to use as few resources as possible, so it can be easily integrated. \
|
|
|
|
It is a fully modular system that can be extended, through plug-ins, \
|
|
|
|
to support all kinds of wired or wireless technologies. Also, \
|
|
|
|
configuration methods, like DHCP and domain name resolving, are \
|
|
|
|
implemented using plug-ins."
|
2010-08-26 05:37:52 +00:00
|
|
|
HOMEPAGE = "http://connman.net/"
|
|
|
|
BUGTRACKER = "http://bugs.meego.com/buglist.cgi?quicksearch=connman"
|
|
|
|
LICENSE = "GPLv2"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
|
|
|
|
file://src/main.c;beginline=1;endline=20;md5=4b55b550fa6b33cc2055ef30dd262b3e"
|
2009-12-03 16:15:26 +00:00
|
|
|
|
2010-11-23 07:06:24 +00:00
|
|
|
DEPENDS = "libgdbus dbus glib-2.0 hal iptables"
|
2009-12-03 16:15:26 +00:00
|
|
|
|
|
|
|
INITSCRIPT_NAME = "connman"
|
2010-09-28 01:47:18 +00:00
|
|
|
INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ."
|
2009-12-03 16:15:26 +00:00
|
|
|
|
2010-04-26 16:41:05 +00:00
|
|
|
inherit autotools pkgconfig update-rc.d
|
2009-12-03 16:15:26 +00:00
|
|
|
|
|
|
|
do_install_append() {
|
|
|
|
install -d ${D}${sysconfdir}/init.d/
|
|
|
|
install -m 0755 ${WORKDIR}/connman ${D}${sysconfdir}/init.d/connman
|
|
|
|
}
|
|
|
|
|
|
|
|
PACKAGES_DYNAMIC = "${PN}-plugin-*"
|
|
|
|
FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*.so.* \
|
|
|
|
${sysconfdir} ${sharedstatedir} ${localstatedir} \
|
|
|
|
${base_bindir}/* ${base_sbindir}/* ${base_libdir}/*.so* ${datadir}/${PN} \
|
|
|
|
${datadir}/pixmaps ${datadir}/applications \
|
|
|
|
${datadir}/idl ${datadir}/omf ${datadir}/sounds \
|
|
|
|
${libdir}/bonobo/servers \
|
|
|
|
${libdir}/${PN}/test/* \
|
|
|
|
${datadir}/dbus-1/system-services/* \
|
|
|
|
${libdir}/connman/scripts/dhclient*"
|
|
|
|
FILES_${PN}-dbg += "${libdir}/connman/plugins/.debug \
|
|
|
|
${libdir}/connman/scripts/.debug"
|
|
|
|
|
|
|
|
python populate_packages_prepend() {
|
2011-06-28 07:58:40 +00:00
|
|
|
depmap = dict( wifi="wpa-supplicant", bluetooth="bluez4", ofono="ofono" )
|
|
|
|
packages = []
|
|
|
|
hook = lambda file,pkg,b,c,d:packages.append((file,pkg))
|
|
|
|
|
2009-12-03 16:15:26 +00:00
|
|
|
plugin_dir = bb.data.expand('${libdir}/connman/plugins/', d)
|
|
|
|
plugin_name = bb.data.expand('${PN}-plugin-%s', d)
|
2011-06-28 07:58:40 +00:00
|
|
|
|
|
|
|
do_split_packages(d, plugin_dir, '^(.*).so$', plugin_name, '${PN} plugin for %s', extra_depends='', hook=hook )
|
|
|
|
|
|
|
|
for (file, package) in packages:
|
|
|
|
plugintype = package.split( '-' )[-1]
|
|
|
|
if plugintype in depmap:
|
|
|
|
bb.note( "Adding rdependency on %s to package %s" % ( depmap[plugintype], package ) )
|
|
|
|
bb.data.setVar("RDEPENDS_%s" % package, depmap[plugintype], d)
|
2010-08-26 05:37:52 +00:00
|
|
|
}
|