From 6b4c82f4657bdb56e6b7a56651d6d4bb91a35b8f Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 26 Jun 2014 13:29:32 +0200 Subject: initial commit for Enea Linux 4.0 Migrated from the internal git server on the daisy-enea branch Signed-off-by: Adrian Dudau --- meta-eca/recipes-connectivity/ofono/files/ofono | 42 ++++++++++++++++++++++++ meta-eca/recipes-connectivity/ofono/ofono_git.bb | 32 ++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 meta-eca/recipes-connectivity/ofono/files/ofono create mode 100644 meta-eca/recipes-connectivity/ofono/ofono_git.bb (limited to 'meta-eca/recipes-connectivity/ofono') diff --git a/meta-eca/recipes-connectivity/ofono/files/ofono b/meta-eca/recipes-connectivity/ofono/files/ofono new file mode 100644 index 0000000..cc99709 --- /dev/null +++ b/meta-eca/recipes-connectivity/ofono/files/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 diff --git a/meta-eca/recipes-connectivity/ofono/ofono_git.bb b/meta-eca/recipes-connectivity/ofono/ofono_git.bb new file mode 100644 index 0000000..110358f --- /dev/null +++ b/meta-eca/recipes-connectivity/ofono/ofono_git.bb @@ -0,0 +1,32 @@ +require recipes-connectivity/ofono/ofono.inc + +S = "${WORKDIR}/git" +SRCREV = "516165c3114471400b4551ff9b04ff9ca7c1fc25" +PV = "1.14+git${SRCPV}" + +SRC_URI = "\ + git://git.kernel.org/pub/scm/network/ofono/ofono.git;protocol=git \ + file://ofono \ +" + +# We want to use bluez5 +DEPENDS := "${@oe_filter_out('bluez4', '${DEPENDS}', d)}" +DEPENDS += "${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez5', '', d)}" + +# Test scripts use python3, the dbus module is still missing so the scripts +# do not work as expected. +RDEPENDS_${PN} = "\ + python3 \ + python3-codecs \ + python3-math \ + python3-io \ + python3-misc \ +" + +do_install_append() { + # Because python3-dbus module is currently not there, just use + # python 2.x in the ofono test scripts + for PYTHSCRIPT in `grep -rIl ${bindir}/python3 ${D}${libdir}/${PN}`; do + sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT + done +} -- cgit v1.2.3-54-g00ecf