summaryrefslogtreecommitdiffstats
path: root/meta/packages/ofono
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2009-12-03 16:17:07 +0000
committerJoshua Lock <josh@linux.intel.com>2009-12-18 11:47:44 +0000
commit8904028db14d906dad472044baa502a666c99f3d (patch)
treea2d81fe88011b175a1d02c0d2d1569531f6450cb /meta/packages/ofono
parent69027cda38e2a719d714ae614d84441cfb3bbebf (diff)
downloadpoky-8904028db14d906dad472044baa502a666c99f3d.tar.gz
ofono: Initial recipe for ofono
Based on the connman recipe, add ofono.inc for generic recipe components and use it from ofono_git.bb and tracking a fixed git revision and ofono_0.12.bb packaging the latest release. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/packages/ofono')
-rw-r--r--meta/packages/ofono/files/ofono42
-rw-r--r--meta/packages/ofono/ofono.inc14
-rw-r--r--meta/packages/ofono/ofono_0.12.bb9
-rw-r--r--meta/packages/ofono/ofono_git.bb14
4 files changed, 79 insertions, 0 deletions
diff --git a/meta/packages/ofono/files/ofono b/meta/packages/ofono/files/ofono
new file mode 100644
index 0000000000..6d46fb8966
--- /dev/null
+++ b/meta/packages/ofono/files/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/packages/ofono/ofono.inc b/meta/packages/ofono/ofono.inc
new file mode 100644
index 0000000000..312d5bca62
--- /dev/null
+++ b/meta/packages/ofono/ofono.inc
@@ -0,0 +1,14 @@
1HOMEPAGE = "http://www.ofono.org"
2SUMMARY = "open source telephony"
3LICENSE = "GPL"
4
5inherit autotools_stage pkgconfig update-rc.d
6
7INITSCRIPT_NAME = "ofono"
8INITSCRIPT_PARAMS = "defaults 22"
9
10do_install_append() {
11 install -d ${D}${sysconfdir}/init.d/
12 install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono
13}
14
diff --git a/meta/packages/ofono/ofono_0.12.bb b/meta/packages/ofono/ofono_0.12.bb
new file mode 100644
index 0000000000..0bccbb2e5e
--- /dev/null
+++ b/meta/packages/ofono/ofono_0.12.bb
@@ -0,0 +1,9 @@
1require ofono.inc
2
3PV = "0.12"
4
5DEPENDS = "dbus glib-2.0"
6
7SRC_URI = "http://www.kernel.org/pub/linux/network/ofono/${P}.tar.bz2 \
8 file://ofono"
9
diff --git a/meta/packages/ofono/ofono_git.bb b/meta/packages/ofono/ofono_git.bb
new file mode 100644
index 0000000000..db6476f1ef
--- /dev/null
+++ b/meta/packages/ofono/ofono_git.bb
@@ -0,0 +1,14 @@
1require ofono.inc
2
3S = "${WORKDIR}/git"
4PV = "0.12-git${SRCPV}"
5
6DEPENDS = "dbus"
7
8SRC_URI = "git://git.kernel.org/pub/scm/network/ofono/ofono.git;protocol=git \
9 file://ofono"
10
11do_configure_prepend () {
12 ${S}/bootstrap
13}
14