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>
This commit is contained in:
Joshua Lock 2009-12-03 16:17:07 +00:00
parent 69027cda38
commit 8904028db1
6 changed files with 81 additions and 0 deletions

View File

@ -196,6 +196,7 @@ SRCREV_pn-qemugl-nativesdk = "d888bbc723c00d197d34a39b5b7448660ec1b1c0"
SRCREV_pn-gobject-introspection = "efa7266bcf78478ce62e8dd778a4f0417bfd4d15"
#c54f10f4caef35b42229c48951ee647ef05ab557"
SRCREV_pn-gobject-introspection-native = "efa7266bcf78478ce62e8dd778a4f0417bfd4d15"
SRCREV_pn-ofono = "14544d5996836f628613c2ce544380ee6fc8f514"
SRCREVMOZILLAHEADLESS ?= "f4348fd85697"

View File

@ -57,6 +57,7 @@ SRCREV_pn-libmatchbox ?= "${AUTOREV}"
SRCREV_pn-tasks ?= "${AUTOREV}"
SRCREV_pn-libjana = "${AUTOREV}"
SRCREV_pn-mutter = "${AUTOREV}"
SRCREV_pn-ofono = "${AUTOREV}"
SRCREV_pn-dri2proto = "${AUTOREV}"
#PREFERRED_VERSION_dri2proto ?= "1.99.1+git${SRCREV}"

View File

@ -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

View File

@ -0,0 +1,14 @@
HOMEPAGE = "http://www.ofono.org"
SUMMARY = "open source telephony"
LICENSE = "GPL"
inherit autotools_stage pkgconfig update-rc.d
INITSCRIPT_NAME = "ofono"
INITSCRIPT_PARAMS = "defaults 22"
do_install_append() {
install -d ${D}${sysconfdir}/init.d/
install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono
}

View File

@ -0,0 +1,9 @@
require ofono.inc
PV = "0.12"
DEPENDS = "dbus glib-2.0"
SRC_URI = "http://www.kernel.org/pub/linux/network/ofono/${P}.tar.bz2 \
file://ofono"

View File

@ -0,0 +1,14 @@
require ofono.inc
S = "${WORKDIR}/git"
PV = "0.12-git${SRCPV}"
DEPENDS = "dbus"
SRC_URI = "git://git.kernel.org/pub/scm/network/ofono/ofono.git;protocol=git \
file://ofono"
do_configure_prepend () {
${S}/bootstrap
}