blob: 1ad46dea9da39a796aa830f1cd8bf64f1b498396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
DESCRIPTION = "The Moblin Connection Manager"
HOMEPAGE = "http://www.moblin.org/projects/projects_connman.php"
SECTION = "libs/network"
LICENSE = "GPL"
DEPENDS = "dbus glib-2.0"
EXTRA_OECONF += " \
ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \
ac_cv_path_DHCLIENT=/sbin/dhclient "
INITSCRIPT_NAME = "connman"
INITSCRIPT_PARAMS = "defaults 22"
inherit autotools pkgconfig update-rc.d
do_install_append() {
install -m 0755 ${WORKDIR}/connman ${D}${sysconfdir}/init.d/connman
}
do_stage() {
autotools_stage_all
}
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, '^(.*).so$', plugin_name, '${PN} plugin for %s', extra_depends='' )
}
RDEPENDS = "dhcp-client wpa-supplicant resolvconf"
PACKAGES_DYNAMIC = "${PN}-plugin-*"
PACKAGES += "${PN}-script-dhclient"
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/*"
FILES_${PN}-script-dhclient += "${libdir}/connman/scripts/dhclient*"
FILES_${PN}-dbg += "${libdir}/connman/plugins/.debug \
${libdir}/connman/scripts/.debug"
|