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
|
|
|
|
2011-10-07 10:17:45 +00:00
|
|
|
DEPENDS = "libgdbus dbus glib-2.0 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
|
|
|
|
2011-10-27 14:15:36 +00:00
|
|
|
USERADD_PACKAGES = "${PN}"
|
|
|
|
USERADD_PARAM_${PN} = "--system --no-create-home \
|
|
|
|
--shell /bin/false --groups video,tty,audio \
|
|
|
|
--user-group xuser"
|
|
|
|
|
|
|
|
inherit autotools pkgconfig update-rc.d useradd
|
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
|
|
|
|
}
|
|
|
|
|
2011-11-04 01:40:21 +00:00
|
|
|
PACKAGES += "${PN}-scripts"
|
|
|
|
RDEPENDS_${PN}-scripts += "python"
|
|
|
|
|
2009-12-03 16:15:26 +00:00
|
|
|
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 \
|
|
|
|
${datadir}/dbus-1/system-services/* \
|
|
|
|
${libdir}/connman/scripts/dhclient*"
|
|
|
|
FILES_${PN}-dbg += "${libdir}/connman/plugins/.debug \
|
|
|
|
${libdir}/connman/scripts/.debug"
|
|
|
|
|
2011-07-05 21:29:01 +00:00
|
|
|
FILES_${PN}-dev += "${libdir}/connman/plugins/*.la"
|
|
|
|
|
2011-11-04 01:40:21 +00:00
|
|
|
FILES_${PN}-scripts += "${libdir}/${PN}/test/*"
|
|
|
|
|
2009-12-03 16:15:26 +00:00
|
|
|
python populate_packages_prepend() {
|
2011-07-27 08:01:50 +00:00
|
|
|
prefix = (d.getVar("MLPREFIX", True) or "")
|
|
|
|
depmap = dict( wifi=prefix+"wpa-supplicant", bluetooth=prefix+"bluez4", ofono=prefix+"ofono" )
|
2011-06-28 07:58:40 +00:00
|
|
|
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 ) )
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
d.setVar("RDEPENDS_%s" % package, depmap[plugintype])
|
2010-08-26 05:37:52 +00:00
|
|
|
}
|