diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:38:32 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:50:20 +0100 |
commit | e2e6f6fe07049f33cb6348780fa975162752e421 (patch) | |
tree | b1813295411235d1297a0ed642b1346b24fdfb12 /meta/recipes-connectivity/ofono/ofono | |
download | poky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz |
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-connectivity/ofono/ofono')
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono/missing-ssize_t.patch | 23 | ||||
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono/ofono | 42 |
2 files changed, 65 insertions, 0 deletions
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 | ||