2008-09-22 19:02:30 +00:00
|
|
|
HOMEPAGE = "http://www.moblin.org/projects/projects_connman.php"
|
|
|
|
SUMMARY = "Moblin Connection Manager"
|
2009-05-16 18:35:58 +00:00
|
|
|
PV = "0.19+git${SRCREV}"
|
2009-05-31 21:18:39 +00:00
|
|
|
PR = "r15"
|
2008-09-22 19:02:30 +00:00
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
LICENSE = "GPL"
|
|
|
|
|
|
|
|
DEPENDS = "libgdbus dbus glib-2.0 hal"
|
2009-05-25 23:38:51 +00:00
|
|
|
RDEPENDS_${PN} = "dhcp-client wpa-supplicant resolvconf"
|
2008-09-22 19:02:30 +00:00
|
|
|
|
|
|
|
EXTRA_OECONF += " \
|
2009-05-19 14:58:20 +00:00
|
|
|
--enable-ethernet=builtin --enable-wifi=builtin --enable-dhclient=builtin \
|
|
|
|
--enable-bluetooth=builtin --enable-udev --enable-loopback=builtin \
|
|
|
|
--enable-dnsproxy=builtin --enable-threads --enable-resolvconf=builtin \
|
2009-05-25 23:38:51 +00:00
|
|
|
--enable-client --enable-fake --with-dhclient=/sbin/dhclient \
|
|
|
|
ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant"
|
2008-09-22 19:02:30 +00:00
|
|
|
|
2009-05-16 18:35:58 +00:00
|
|
|
SRC_URI = "git://git.kernel.org/pub/scm/network/connman/connman.git;protocol=git \
|
2009-05-22 08:40:12 +00:00
|
|
|
file://connman-install-tests.patch;patch=1 \
|
2009-05-25 23:38:51 +00:00
|
|
|
file://udevfix.patch;patch=1 \
|
|
|
|
file://dbusperms.patch;patch=1 \
|
2008-09-22 19:02:30 +00:00
|
|
|
file://connman "
|
|
|
|
|
|
|
|
INITSCRIPT_NAME = "connman"
|
2009-06-01 13:18:59 +00:00
|
|
|
INITSCRIPT_PARAMS = "start 05 5 2 . stop 22 0 1 6 ."
|
2008-09-22 19:02:30 +00:00
|
|
|
|
2008-12-26 19:02:44 +00:00
|
|
|
inherit autotools_stage pkgconfig update-rc.d
|
2008-09-22 19:02:30 +00:00
|
|
|
|
|
|
|
do_install_append() {
|
|
|
|
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 \
|
2009-05-25 23:38:51 +00:00
|
|
|
${datadir}/dbus-1/system-services/* \
|
|
|
|
${libdir}/connman/scripts/dhclient*"
|
2008-09-22 19:02:30 +00:00
|
|
|
FILES_${PN}-dbg += "${libdir}/connman/plugins/.debug \
|
|
|
|
${libdir}/connman/scripts/.debug"
|
|
|
|
|
|
|
|
python populate_packages_prepend() {
|
|
|
|
plugin_dir = bb.data.expand('${libdir}/connman/plugins/', d)
|
|
|
|
plugin_name = bb.data.expand('${PN}-plugin-%s', d)
|
|
|
|
do_split_packages(d, plugin_dir, '^lib(.*).so$', plugin_name, '${PN} plugin for %s', extra_depends='' )
|
|
|
|
}
|