summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/conf/distro/include/poky-fixed-revisions.inc1
-rw-r--r--meta/conf/distro/include/poky-floating-revisions.inc1
-rw-r--r--meta/packages/ofono/files/ofono42
-rw-r--r--meta/packages/ofono/ofono.inc14
-rw-r--r--meta/packages/ofono/ofono_0.12.bb9
-rw-r--r--meta/packages/ofono/ofono_git.bb14
6 files changed, 81 insertions, 0 deletions
diff --git a/meta/conf/distro/include/poky-fixed-revisions.inc b/meta/conf/distro/include/poky-fixed-revisions.inc
index 7674db261a..233da98815 100644
--- a/meta/conf/distro/include/poky-fixed-revisions.inc
+++ b/meta/conf/distro/include/poky-fixed-revisions.inc
@@ -196,6 +196,7 @@ SRCREV_pn-qemugl-nativesdk = "d888bbc723c00d197d34a39b5b7448660ec1b1c0"
SRCREV_pn-gobject-introspection = "efa7266bcf78478ce62e8dd778a4f0417bfd4d15"
#c54f10f4caef35b42229c48951ee647ef05ab557"
SRCREV_pn-gobject-introspection-native = "efa7266bcf78478ce62e8dd778a4f0417bfd4d15"
+SRCREV_pn-ofono = "14544d5996836f628613c2ce544380ee6fc8f514"
SRCREVMOZILLAHEADLESS ?= "f4348fd85697"
diff --git a/meta/conf/distro/include/poky-floating-revisions.inc b/meta/conf/distro/include/poky-floating-revisions.inc
index 99907c539c..5037265465 100644
--- a/meta/conf/distro/include/poky-floating-revisions.inc
+++ b/meta/conf/distro/include/poky-floating-revisions.inc
@@ -57,6 +57,7 @@ SRCREV_pn-libmatchbox ?= "${AUTOREV}"
SRCREV_pn-tasks ?= "${AUTOREV}"
SRCREV_pn-libjana = "${AUTOREV}"
SRCREV_pn-mutter = "${AUTOREV}"
+SRCREV_pn-ofono = "${AUTOREV}"
SRCREV_pn-dri2proto = "${AUTOREV}"
#PREFERRED_VERSION_dri2proto ?= "1.99.1+git${SRCREV}"
diff --git a/meta/packages/ofono/files/ofono b/meta/packages/ofono/files/ofono
new file mode 100644
index 0000000000..6d46fb8966
--- /dev/null
+++ b/meta/packages/ofono/files/ofono
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+DAEMON=/usr/sbin/ofonod
+PIDFILE=/var/run/ofonod.pid
+DESC="Telephony daemon"
+
+if [ -f /etc/default/ofono] ; then
+ . /etc/default/ofono
+fi
+
+set -e
+
+do_start() {
+ $DAEMON
+}
+
+do_stop() {
+ start-stop-daemon --stop --name ofonod --quiet
+}
+
+case "$1" in
+ start)
+ echo "Starting $DESC"
+ do_start
+ ;;
+ stop)
+ echo "Stopping $DESC"
+ do_stop
+ ;;
+ restart|force-reload)
+ echo "Restarting $DESC"
+ do_stop
+ sleep 1
+ do_start
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/meta/packages/ofono/ofono.inc b/meta/packages/ofono/ofono.inc
new file mode 100644
index 0000000000..312d5bca62
--- /dev/null
+++ b/meta/packages/ofono/ofono.inc
@@ -0,0 +1,14 @@
+HOMEPAGE = "http://www.ofono.org"
+SUMMARY = "open source telephony"
+LICENSE = "GPL"
+
+inherit autotools_stage pkgconfig update-rc.d
+
+INITSCRIPT_NAME = "ofono"
+INITSCRIPT_PARAMS = "defaults 22"
+
+do_install_append() {
+ install -d ${D}${sysconfdir}/init.d/
+ install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono
+}
+
diff --git a/meta/packages/ofono/ofono_0.12.bb b/meta/packages/ofono/ofono_0.12.bb
new file mode 100644
index 0000000000..0bccbb2e5e
--- /dev/null
+++ b/meta/packages/ofono/ofono_0.12.bb
@@ -0,0 +1,9 @@
+require ofono.inc
+
+PV = "0.12"
+
+DEPENDS = "dbus glib-2.0"
+
+SRC_URI = "http://www.kernel.org/pub/linux/network/ofono/${P}.tar.bz2 \
+ file://ofono"
+
diff --git a/meta/packages/ofono/ofono_git.bb b/meta/packages/ofono/ofono_git.bb
new file mode 100644
index 0000000000..db6476f1ef
--- /dev/null
+++ b/meta/packages/ofono/ofono_git.bb
@@ -0,0 +1,14 @@
+require ofono.inc
+
+S = "${WORKDIR}/git"
+PV = "0.12-git${SRCPV}"
+
+DEPENDS = "dbus"
+
+SRC_URI = "git://git.kernel.org/pub/scm/network/ofono/ofono.git;protocol=git \
+ file://ofono"
+
+do_configure_prepend () {
+ ${S}/bootstrap
+}
+