From f4cf9fe05bb3f32fabea4e54dd92d368967a80da Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 26 Jun 2014 14:36:22 +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/recipes-connectivity/ofono/ofono.inc | 33 +++++++++++++++++++++ meta/recipes-connectivity/ofono/ofono/ofono | 42 +++++++++++++++++++++++++++ meta/recipes-connectivity/ofono/ofono_1.14.bb | 11 +++++++ meta/recipes-connectivity/ofono/ofono_git.bb | 14 +++++++++ 4 files changed, 100 insertions(+) create mode 100644 meta/recipes-connectivity/ofono/ofono.inc create mode 100644 meta/recipes-connectivity/ofono/ofono/ofono create mode 100644 meta/recipes-connectivity/ofono/ofono_1.14.bb create mode 100644 meta/recipes-connectivity/ofono/ofono_git.bb (limited to 'meta/recipes-connectivity/ofono') diff --git a/meta/recipes-connectivity/ofono/ofono.inc b/meta/recipes-connectivity/ofono/ofono.inc new file mode 100644 index 0000000000..3972e062e5 --- /dev/null +++ b/meta/recipes-connectivity/ofono/ofono.inc @@ -0,0 +1,33 @@ +HOMEPAGE = "http://www.ofono.org" +SUMMARY = "open source telephony" +DESCRIPTION = "oFono is a stack for mobile telephony devices on Linux. oFono supports speaking to telephony devices through specific drivers, or with generic AT commands." +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \ + file://src/ofono.h;beginline=1;endline=20;md5=3ce17d5978ef3445def265b98899c2ee" + +inherit autotools pkgconfig update-rc.d systemd + +DEPENDS = "dbus glib-2.0 udev mobile-broadband-provider-info ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)}" + +INITSCRIPT_NAME = "ofono" +INITSCRIPT_PARAMS = "defaults 22" + +EXTRA_OECONF += "\ + ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdunitdir=${systemd_unitdir}/system/', '--with-systemdunitdir=', d)} \ + ${@base_contains('DISTRO_FEATURES', 'bluetooth','--enable-bluetooth', '--disable-bluetooth', d)} \ + --enable-test \ +" +SYSTEMD_SERVICE_${PN} = "ofono.service" + +do_install_append() { + install -d ${D}${sysconfdir}/init.d/ + install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono +} + +PACKAGES =+ "${PN}-tests" + +RDEPENDS_${PN} += "dbus" + +FILES_${PN} += "${base_libdir}/udev ${systemd_unitdir}" +FILES_${PN}-tests = "${libdir}/${BPN}/test" +RDEPENDS_${PN}-tests = "python python-pygobject python-dbus" 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 @@ +#!/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/recipes-connectivity/ofono/ofono_1.14.bb b/meta/recipes-connectivity/ofono/ofono_1.14.bb new file mode 100644 index 0000000000..f107fe6452 --- /dev/null +++ b/meta/recipes-connectivity/ofono/ofono_1.14.bb @@ -0,0 +1,11 @@ +require ofono.inc + +SRC_URI = "\ + ${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \ + file://ofono \ +" + +SRC_URI[md5sum] = "8bc398d86642408cc71d039f59c61538" +SRC_URI[sha256sum] = "84d28d37cbc47129628a78bf3e17323af1636dceb2494511dd44caa829fb277f" + +CFLAGS_append_libc-uclibc = " -D_GNU_SOURCE" diff --git a/meta/recipes-connectivity/ofono/ofono_git.bb b/meta/recipes-connectivity/ofono/ofono_git.bb new file mode 100644 index 0000000000..beafb775c2 --- /dev/null +++ b/meta/recipes-connectivity/ofono/ofono_git.bb @@ -0,0 +1,14 @@ +require ofono.inc + +S = "${WORKDIR}/git" +SRCREV = "14544d5996836f628613c2ce544380ee6fc8f514" +PV = "0.12-git${SRCPV}" +PR = "r5" + +SRC_URI = "git://git.kernel.org/pub/scm/network/ofono/ofono.git \ + file://ofono" + +do_configure_prepend () { + ${S}/bootstrap +} + -- cgit v1.2.3-54-g00ecf