diff options
Diffstat (limited to 'meta/recipes-connectivity/ofono')
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono-1.12/obsolete_automake_macros.patch | 14 | ||||
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono.inc | 33 | ||||
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono/missing-ssize_t.patch | 23 | ||||
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono/ofono | 42 | ||||
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono_1.12.bb | 15 | ||||
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono_git.bb | 14 |
6 files changed, 141 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/ofono/ofono-1.12/obsolete_automake_macros.patch b/meta/recipes-connectivity/ofono/ofono-1.12/obsolete_automake_macros.patch new file mode 100644 index 0000000000..31a102e0ca --- /dev/null +++ b/meta/recipes-connectivity/ofono/ofono-1.12/obsolete_automake_macros.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | Upstream-Status: Submitted [ofono@ofono.org] | ||
2 | |||
3 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
4 | diff -Nurd ofono-1.12/configure.ac ofono-1.12/configure.ac | ||
5 | --- ofono-1.12/configure.ac 2012-12-19 21:28:44.000000000 +0200 | ||
6 | +++ ofono-1.12/configure.ac 2013-01-12 11:18:40.681410757 +0200 | ||
7 | @@ -2,7 +2,7 @@ | ||
8 | AC_INIT(ofono, 1.12) | ||
9 | |||
10 | AM_INIT_AUTOMAKE([foreign subdir-objects color-tests]) | ||
11 | -AM_CONFIG_HEADER(config.h) | ||
12 | +AC_CONFIG_HEADERS(config.h) | ||
13 | |||
14 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
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 @@ | |||
1 | HOMEPAGE = "http://www.ofono.org" | ||
2 | SUMMARY = "open source telephony" | ||
3 | DESCRIPTION = "oFono is a stack for mobile telephony devices on Linux. oFono supports speaking to telephony devices through specific drivers, or with generic AT commands." | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \ | ||
6 | file://src/ofono.h;beginline=1;endline=20;md5=3ce17d5978ef3445def265b98899c2ee" | ||
7 | |||
8 | inherit autotools pkgconfig update-rc.d systemd | ||
9 | |||
10 | DEPENDS = "dbus glib-2.0 udev mobile-broadband-provider-info ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)}" | ||
11 | |||
12 | INITSCRIPT_NAME = "ofono" | ||
13 | INITSCRIPT_PARAMS = "defaults 22" | ||
14 | |||
15 | EXTRA_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 | " | ||
20 | SYSTEMD_SERVICE_${PN} = "ofono.service" | ||
21 | |||
22 | do_install_append() { | ||
23 | install -d ${D}${sysconfdir}/init.d/ | ||
24 | install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono | ||
25 | } | ||
26 | |||
27 | PACKAGES =+ "${PN}-tests" | ||
28 | |||
29 | RDEPENDS_${PN} += "dbus" | ||
30 | |||
31 | FILES_${PN} += "${base_libdir}/udev ${systemd_unitdir}" | ||
32 | FILES_${PN}-tests = "${libdir}/${BPN}/test" | ||
33 | RDEPENDS_${PN}-tests = "python python-pygobject python-dbus" | ||
diff --git a/meta/recipes-connectivity/ofono/ofono/missing-ssize_t.patch b/meta/recipes-connectivity/ofono/ofono/missing-ssize_t.patch new file mode 100644 index 0000000000..71903c47da --- /dev/null +++ b/meta/recipes-connectivity/ofono/ofono/missing-ssize_t.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | include unistd.h for getting ssize_t definitions | ||
2 | Fixes errors like | ||
3 | |||
4 | | In file included from src/sms.c:38:0: | ||
5 | | src/storage.h:32:1: error: unknown type name 'ssize_t' | ||
6 | | src/storage.h:36:1: error: unknown type name 'ssize_t' | ||
7 | |||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | |||
12 | Index: ofono-1.12/src/storage.h | ||
13 | =================================================================== | ||
14 | --- ofono-1.12.org/src/storage.h 2013-01-04 10:01:24.137804178 -0800 | ||
15 | +++ ofono-1.12/src/storage.h 2013-01-04 10:02:09.325806426 -0800 | ||
16 | @@ -26,6 +26,7 @@ | ||
17 | #endif | ||
18 | |||
19 | #include <fcntl.h> | ||
20 | +#include <unistd.h> | ||
21 | |||
22 | int create_dirs(const char *filename, const mode_t mode); | ||
23 | |||
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 | |||
3 | DAEMON=/usr/sbin/ofonod | ||
4 | PIDFILE=/var/run/ofonod.pid | ||
5 | DESC="Telephony daemon" | ||
6 | |||
7 | if [ -f /etc/default/ofono ] ; then | ||
8 | . /etc/default/ofono | ||
9 | fi | ||
10 | |||
11 | set -e | ||
12 | |||
13 | do_start() { | ||
14 | $DAEMON | ||
15 | } | ||
16 | |||
17 | do_stop() { | ||
18 | start-stop-daemon --stop --name ofonod --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 | ||
diff --git a/meta/recipes-connectivity/ofono/ofono_1.12.bb b/meta/recipes-connectivity/ofono/ofono_1.12.bb new file mode 100644 index 0000000000..ad524a0418 --- /dev/null +++ b/meta/recipes-connectivity/ofono/ofono_1.12.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | require ofono.inc | ||
2 | |||
3 | SRC_URI = "\ | ||
4 | ${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \ | ||
5 | file://ofono \ | ||
6 | file://missing-ssize_t.patch \ | ||
7 | file://obsolete_automake_macros.patch \ | ||
8 | " | ||
9 | |||
10 | PR = "r2" | ||
11 | |||
12 | SRC_URI[md5sum] = "aa8924c0e8de3ec7ac5e41fe7df4cb99" | ||
13 | SRC_URI[sha256sum] = "733b75bfd1b2a1925b6de532989c496b8ae17a746691120ef64cceb00b3ef751" | ||
14 | |||
15 | CFLAGS_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 @@ | |||
1 | require ofono.inc | ||
2 | |||
3 | S = "${WORKDIR}/git" | ||
4 | SRCREV = "14544d5996836f628613c2ce544380ee6fc8f514" | ||
5 | PV = "0.12-git${SRCPV}" | ||
6 | PR = "r5" | ||
7 | |||
8 | SRC_URI = "git://git.kernel.org/pub/scm/network/ofono/ofono.git \ | ||
9 | file://ofono" | ||
10 | |||
11 | do_configure_prepend () { | ||
12 | ${S}/bootstrap | ||
13 | } | ||
14 | |||