summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/ofono
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/ofono')
-rw-r--r--meta/recipes-connectivity/ofono/ofono.inc33
-rw-r--r--meta/recipes-connectivity/ofono/ofono/ofono42
-rw-r--r--meta/recipes-connectivity/ofono/ofono_1.14.bb11
-rw-r--r--meta/recipes-connectivity/ofono/ofono_git.bb14
4 files changed, 100 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/ofono/ofono.inc b/meta/recipes-connectivity/ofono/ofono.inc
new file mode 100644
index 0000000000..3972e062e5
--- /dev/null
+++ b/meta/recipes-connectivity/ofono/ofono.inc
@@ -0,0 +1,33 @@
1HOMEPAGE = "http://www.ofono.org"
2SUMMARY = "open source telephony"
3DESCRIPTION = "oFono is a stack for mobile telephony devices on Linux. oFono supports speaking to telephony devices through specific drivers, or with generic AT commands."
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
6 file://src/ofono.h;beginline=1;endline=20;md5=3ce17d5978ef3445def265b98899c2ee"
7
8inherit autotools pkgconfig update-rc.d systemd
9
10DEPENDS = "dbus glib-2.0 udev mobile-broadband-provider-info ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)}"
11
12INITSCRIPT_NAME = "ofono"
13INITSCRIPT_PARAMS = "defaults 22"
14
15EXTRA_OECONF += "\
16 ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdunitdir=${systemd_unitdir}/system/', '--with-systemdunitdir=', d)} \
17 ${@base_contains('DISTRO_FEATURES', 'bluetooth','--enable-bluetooth', '--disable-bluetooth', d)} \
18 --enable-test \
19"
20SYSTEMD_SERVICE_${PN} = "ofono.service"
21
22do_install_append() {
23 install -d ${D}${sysconfdir}/init.d/
24 install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono
25}
26
27PACKAGES =+ "${PN}-tests"
28
29RDEPENDS_${PN} += "dbus"
30
31FILES_${PN} += "${base_libdir}/udev ${systemd_unitdir}"
32FILES_${PN}-tests = "${libdir}/${BPN}/test"
33RDEPENDS_${PN}-tests = "python python-pygobject python-dbus"
diff --git a/meta/recipes-connectivity/ofono/ofono/ofono b/meta/recipes-connectivity/ofono/ofono/ofono
new file mode 100644
index 0000000000..cc9970929c
--- /dev/null
+++ b/meta/recipes-connectivity/ofono/ofono/ofono
@@ -0,0 +1,42 @@
1#!/bin/sh
2
3DAEMON=/usr/sbin/ofonod
4PIDFILE=/var/run/ofonod.pid
5DESC="Telephony daemon"
6
7if [ -f /etc/default/ofono ] ; then
8 . /etc/default/ofono
9fi
10
11set -e
12
13do_start() {
14 $DAEMON
15}
16
17do_stop() {
18 start-stop-daemon --stop --name ofonod --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
diff --git a/meta/recipes-connectivity/ofono/ofono_1.14.bb b/meta/recipes-connectivity/ofono/ofono_1.14.bb
new file mode 100644
index 0000000000..f107fe6452
--- /dev/null
+++ b/meta/recipes-connectivity/ofono/ofono_1.14.bb
@@ -0,0 +1,11 @@
1require ofono.inc
2
3SRC_URI = "\
4 ${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \
5 file://ofono \
6"
7
8SRC_URI[md5sum] = "8bc398d86642408cc71d039f59c61538"
9SRC_URI[sha256sum] = "84d28d37cbc47129628a78bf3e17323af1636dceb2494511dd44caa829fb277f"
10
11CFLAGS_append_libc-uclibc = " -D_GNU_SOURCE"
diff --git a/meta/recipes-connectivity/ofono/ofono_git.bb b/meta/recipes-connectivity/ofono/ofono_git.bb
new file mode 100644
index 0000000000..beafb775c2
--- /dev/null
+++ b/meta/recipes-connectivity/ofono/ofono_git.bb
@@ -0,0 +1,14 @@
1require ofono.inc
2
3S = "${WORKDIR}/git"
4SRCREV = "14544d5996836f628613c2ce544380ee6fc8f514"
5PV = "0.12-git${SRCPV}"
6PR = "r5"
7
8SRC_URI = "git://git.kernel.org/pub/scm/network/ofono/ofono.git \
9 file://ofono"
10
11do_configure_prepend () {
12 ${S}/bootstrap
13}
14