summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@openedhand.com>2008-09-22 19:02:30 +0000
committerSamuel Ortiz <sameo@openedhand.com>2008-09-22 19:02:30 +0000
commit7178ed1a629aad0288920a87474a35988d906b1c (patch)
tree58866cd31cb53d92d02a879cb32d8e515a6e004c
parent08012fd9637363a3d18b813b94f760ce602b621f (diff)
downloadpoky-7178ed1a629aad0288920a87474a35988d906b1c.tar.gz
connman: Initial poky commit
We're adding both connman the daemon and connman-gnome which is a gnome applet. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5225 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--meta/conf/distro/include/poky-fixed-revisions.inc2
-rw-r--r--meta/packages/connman/connman-gnome_git.bb16
-rw-r--r--meta/packages/connman/connman_git.bb48
-rwxr-xr-xmeta/packages/connman/files/connman42
4 files changed, 108 insertions, 0 deletions
diff --git a/meta/conf/distro/include/poky-fixed-revisions.inc b/meta/conf/distro/include/poky-fixed-revisions.inc
index b239af2aeb..4fe7cd3374 100644
--- a/meta/conf/distro/include/poky-fixed-revisions.inc
+++ b/meta/conf/distro/include/poky-fixed-revisions.inc
@@ -24,6 +24,8 @@ SRCREV_pn-clutter-box2d = "3197"
24SRCREV_pn-clutter-cairo ?= "3210" 24SRCREV_pn-clutter-cairo ?= "3210"
25SRCREV_pn-clutter-gst ?= "3188" 25SRCREV_pn-clutter-gst ?= "3188"
26SRCREV_pn-clutter ?= "3240" 26SRCREV_pn-clutter ?= "3240"
27SRCREV_pn-connman ?= "e952851502277cc41cd2a54ef5386cca7a8843dd"
28SRCREV_pn-connman-gnome ?= "b589f4f89bff20d54682cc6b49efa86feac8adb4"
27SRCREV_pn-dbus-wait ?= "402" 29SRCREV_pn-dbus-wait ?= "402"
28SRCREV_pn-eds-dbus ?= "691" 30SRCREV_pn-eds-dbus ?= "691"
29SRCREV_pn-evince ?= "2437" 31SRCREV_pn-evince ?= "2437"
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 @@
1HOMEPAGE = "http://www.moblin.org/projects/projects_connman.php"
2SUMMARY = "Moblin Glib D-Bus integration"
3LICENSE = "GPL LGPL"
4PV = "0.0+git${SRCREV}"
5S = "${WORKDIR}/git"
6
7RDEPENDS = "connman"
8
9SRC_URI = "git://moblin.org/repos/projects/connman-gnome.git;protocol=http"
10
11inherit autotools pkgconfig
12
13FILES_${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 @@
1HOMEPAGE = "http://www.moblin.org/projects/projects_connman.php"
2SUMMARY = "Moblin Connection Manager"
3PV = "0.0+git${SRCREV}"
4PR = "r4"
5S = "${WORKDIR}/git"
6LICENSE = "GPL"
7
8DEPENDS = "libgdbus dbus glib-2.0 hal"
9RDEPENDS = "dhcp-client wpa-supplicant resolvconf"
10
11EXTRA_OECONF += " \
12 ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \
13 ac_cv_path_DHCLIENT=/sbin/dhclient "
14
15SRC_URI = "git://moblin.org/repos/projects/connman.git;protocol=http \
16 file://connman "
17
18INITSCRIPT_NAME = "connman"
19INITSCRIPT_PARAMS = "defaults 22"
20
21inherit autotools pkgconfig update-rc.d
22
23do_install_append() {
24 install -m 0755 ${WORKDIR}/connman ${D}${sysconfdir}/init.d/connman
25}
26
27PACKAGES_DYNAMIC = "${PN}-plugin-*"
28PACKAGES += "${PN}-script-dhclient"
29FILES_${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/*"
36FILES_${PN}-script-dhclient += "${libdir}/connman/scripts/dhclient*"
37FILES_${PN}-dbg += "${libdir}/connman/plugins/.debug \
38 ${libdir}/connman/scripts/.debug"
39
40python 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
46do_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
3DAEMON=/usr/sbin/connmand
4PIDFILE=/var/run/connmand.pid
5DESC="Connection Manager"
6
7if [ -f /etc/default/connman ] ; then
8 . /etc/default/connman
9fi
10
11set -e
12
13do_start() {
14 connmand
15}
16
17do_stop() {
18 start-stop-daemon --stop --name connmand --quiet
19}
20
21case "$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 ;;
40esac
41
42exit 0