From e2e6f6fe07049f33cb6348780fa975162752e421 Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 12 Dec 2013 13:38:32 +0100 Subject: initial commit of Enea Linux 3.1 Migrated from the internal git server on the dora-enea branch Signed-off-by: Adrian Dudau --- .../ofono/ofono/missing-ssize_t.patch | 23 ++++++++++++ meta/recipes-connectivity/ofono/ofono/ofono | 42 ++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 meta/recipes-connectivity/ofono/ofono/missing-ssize_t.patch create mode 100644 meta/recipes-connectivity/ofono/ofono/ofono (limited to 'meta/recipes-connectivity/ofono/ofono') 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 @@ +include unistd.h for getting ssize_t definitions +Fixes errors like + +| In file included from src/sms.c:38:0: +| src/storage.h:32:1: error: unknown type name 'ssize_t' +| src/storage.h:36:1: error: unknown type name 'ssize_t' + + +Upstream-Status: Pending +Signed-off-by: Khem Raj + +Index: ofono-1.12/src/storage.h +=================================================================== +--- ofono-1.12.org/src/storage.h 2013-01-04 10:01:24.137804178 -0800 ++++ ofono-1.12/src/storage.h 2013-01-04 10:02:09.325806426 -0800 +@@ -26,6 +26,7 @@ + #endif + + #include ++#include + + int create_dirs(const char *filename, const mode_t mode); + 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 @@ +#!/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 -- cgit v1.2.3-54-g00ecf