diff options
Diffstat (limited to 'meta/recipes-connectivity/ofono')
| -rw-r--r-- | meta/recipes-connectivity/ofono/files/ofono | 42 | ||||
| -rw-r--r-- | meta/recipes-connectivity/ofono/ofono.inc | 16 | ||||
| -rw-r--r-- | meta/recipes-connectivity/ofono/ofono_0.17.bb | 7 | ||||
| -rw-r--r-- | meta/recipes-connectivity/ofono/ofono_git.bb | 13 |
4 files changed, 78 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/ofono/files/ofono b/meta/recipes-connectivity/ofono/files/ofono new file mode 100644 index 0000000000..6d46fb8966 --- /dev/null +++ b/meta/recipes-connectivity/ofono/files/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.inc b/meta/recipes-connectivity/ofono/ofono.inc new file mode 100644 index 0000000000..8948e57ae7 --- /dev/null +++ b/meta/recipes-connectivity/ofono/ofono.inc | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | HOMEPAGE = "http://www.ofono.org" | ||
| 2 | SUMMARY = "open source telephony" | ||
| 3 | LICENSE = "GPL" | ||
| 4 | |||
| 5 | inherit autotools pkgconfig update-rc.d | ||
| 6 | |||
| 7 | DEPENDS = "dbus glib-2.0" | ||
| 8 | |||
| 9 | INITSCRIPT_NAME = "ofono" | ||
| 10 | INITSCRIPT_PARAMS = "defaults 22" | ||
| 11 | |||
| 12 | do_install_append() { | ||
| 13 | install -d ${D}${sysconfdir}/init.d/ | ||
| 14 | install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono | ||
| 15 | } | ||
| 16 | |||
diff --git a/meta/recipes-connectivity/ofono/ofono_0.17.bb b/meta/recipes-connectivity/ofono/ofono_0.17.bb new file mode 100644 index 0000000000..02b64e5b28 --- /dev/null +++ b/meta/recipes-connectivity/ofono/ofono_0.17.bb | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | require ofono.inc | ||
| 2 | |||
| 3 | PR = "r0" | ||
| 4 | |||
| 5 | SRC_URI = "http://www.kernel.org/pub/linux/network/ofono/${P}.tar.bz2 \ | ||
| 6 | file://ofono" | ||
| 7 | |||
diff --git a/meta/recipes-connectivity/ofono/ofono_git.bb b/meta/recipes-connectivity/ofono/ofono_git.bb new file mode 100644 index 0000000000..3e2c4108cf --- /dev/null +++ b/meta/recipes-connectivity/ofono/ofono_git.bb | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | require ofono.inc | ||
| 2 | |||
| 3 | S = "${WORKDIR}/git" | ||
| 4 | PV = "0.12-git${SRCPV}" | ||
| 5 | PR = "r1" | ||
| 6 | |||
| 7 | SRC_URI = "git://git.kernel.org/pub/scm/network/ofono/ofono.git;protocol=git \ | ||
| 8 | file://ofono" | ||
| 9 | |||
| 10 | do_configure_prepend () { | ||
| 11 | ${S}/bootstrap | ||
| 12 | } | ||
| 13 | |||
