diff options
Diffstat (limited to 'meta/packages/connman')
-rw-r--r-- | meta/packages/connman/connman-gnome_git.bb | 16 | ||||
-rw-r--r-- | meta/packages/connman/connman_git.bb | 48 | ||||
-rwxr-xr-x | meta/packages/connman/files/connman | 42 |
3 files changed, 106 insertions, 0 deletions
diff --git a/meta/packages/connman/connman-gnome_git.bb b/meta/packages/connman/connman-gnome_git.bb new file mode 100644 index 0000000000..59c5675b33 --- /dev/null +++ b/meta/packages/connman/connman-gnome_git.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | HOMEPAGE = "http://www.moblin.org/projects/projects_connman.php" | ||
2 | SUMMARY = "Moblin Glib D-Bus integration" | ||
3 | LICENSE = "GPL LGPL" | ||
4 | PV = "0.0+git${SRCREV}" | ||
5 | S = "${WORKDIR}/git" | ||
6 | |||
7 | RDEPENDS = "connman" | ||
8 | |||
9 | SRC_URI = "git://moblin.org/repos/projects/connman-gnome.git;protocol=http" | ||
10 | |||
11 | inherit autotools pkgconfig | ||
12 | |||
13 | FILES_${PN} = "${datadir}/icons/hicolor/22x22/apps \ | ||
14 | ${bindir}/* \ | ||
15 | ${top_builddir}/common \ | ||
16 | ${sysconfdir}/xdg " | ||
diff --git a/meta/packages/connman/connman_git.bb b/meta/packages/connman/connman_git.bb new file mode 100644 index 0000000000..e8ad21ef98 --- /dev/null +++ b/meta/packages/connman/connman_git.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | HOMEPAGE = "http://www.moblin.org/projects/projects_connman.php" | ||
2 | SUMMARY = "Moblin Connection Manager" | ||
3 | PV = "0.0+git${SRCREV}" | ||
4 | PR = "r4" | ||
5 | S = "${WORKDIR}/git" | ||
6 | LICENSE = "GPL" | ||
7 | |||
8 | DEPENDS = "libgdbus dbus glib-2.0 hal" | ||
9 | RDEPENDS = "dhcp-client wpa-supplicant resolvconf" | ||
10 | |||
11 | EXTRA_OECONF += " \ | ||
12 | ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \ | ||
13 | ac_cv_path_DHCLIENT=/sbin/dhclient " | ||
14 | |||
15 | SRC_URI = "git://moblin.org/repos/projects/connman.git;protocol=http \ | ||
16 | file://connman " | ||
17 | |||
18 | INITSCRIPT_NAME = "connman" | ||
19 | INITSCRIPT_PARAMS = "defaults 22" | ||
20 | |||
21 | inherit autotools pkgconfig update-rc.d | ||
22 | |||
23 | do_install_append() { | ||
24 | install -m 0755 ${WORKDIR}/connman ${D}${sysconfdir}/init.d/connman | ||
25 | } | ||
26 | |||
27 | PACKAGES_DYNAMIC = "${PN}-plugin-*" | ||
28 | PACKAGES += "${PN}-script-dhclient" | ||
29 | FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*.so.* \ | ||
30 | ${sysconfdir} ${sharedstatedir} ${localstatedir} \ | ||
31 | ${base_bindir}/* ${base_sbindir}/* ${base_libdir}/*.so* ${datadir}/${PN} \ | ||
32 | ${datadir}/pixmaps ${datadir}/applications \ | ||
33 | ${datadir}/idl ${datadir}/omf ${datadir}/sounds \ | ||
34 | ${libdir}/bonobo/servers \ | ||
35 | ${datadir}/dbus-1/system-services/*" | ||
36 | FILES_${PN}-script-dhclient += "${libdir}/connman/scripts/dhclient*" | ||
37 | FILES_${PN}-dbg += "${libdir}/connman/plugins/.debug \ | ||
38 | ${libdir}/connman/scripts/.debug" | ||
39 | |||
40 | python populate_packages_prepend() { | ||
41 | plugin_dir = bb.data.expand('${libdir}/connman/plugins/', d) | ||
42 | plugin_name = bb.data.expand('${PN}-plugin-%s', d) | ||
43 | do_split_packages(d, plugin_dir, '^lib(.*).so$', plugin_name, '${PN} plugin for %s', extra_depends='' ) | ||
44 | } | ||
45 | |||
46 | do_stage() { | ||
47 | autotools_stage_all | ||
48 | } | ||
diff --git a/meta/packages/connman/files/connman b/meta/packages/connman/files/connman new file mode 100755 index 0000000000..5e0f90e8cc --- /dev/null +++ b/meta/packages/connman/files/connman | |||
@@ -0,0 +1,42 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | DAEMON=/usr/sbin/connmand | ||
4 | PIDFILE=/var/run/connmand.pid | ||
5 | DESC="Connection Manager" | ||
6 | |||
7 | if [ -f /etc/default/connman ] ; then | ||
8 | . /etc/default/connman | ||
9 | fi | ||
10 | |||
11 | set -e | ||
12 | |||
13 | do_start() { | ||
14 | connmand | ||
15 | } | ||
16 | |||
17 | do_stop() { | ||
18 | start-stop-daemon --stop --name connmand --quiet | ||
19 | } | ||
20 | |||
21 | case "$1" in | ||
22 | start) | ||
23 | echo "Starting $DESC" | ||
24 | do_start | ||
25 | ;; | ||
26 | stop) | ||
27 | echo "Stopping $DESC" | ||
28 | do_stop | ||
29 | ;; | ||
30 | restart|force-reload) | ||
31 | echo "Restarting $DESC" | ||
32 | do_stop | ||
33 | sleep 1 | ||
34 | do_start | ||
35 | ;; | ||
36 | *) | ||
37 | echo "Usage: $0 {start|stop|restart|force-reload}" >&2 | ||
38 | exit 1 | ||
39 | ;; | ||
40 | esac | ||
41 | |||
42 | exit 0 | ||