From e2e6f6fe07049f33cb6348780fa975162752e421 Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 12 Dec 2013 13:38:32 +0100 Subject: initial commit of Enea Linux 3.1 Migrated from the internal git server on the dora-enea branch Signed-off-by: Adrian Dudau --- .../ofono-1.12/obsolete_automake_macros.patch | 14 ++++++++ meta/recipes-connectivity/ofono/ofono.inc | 33 +++++++++++++++++ .../ofono/ofono/missing-ssize_t.patch | 23 ++++++++++++ meta/recipes-connectivity/ofono/ofono/ofono | 42 ++++++++++++++++++++++ meta/recipes-connectivity/ofono/ofono_1.12.bb | 15 ++++++++ meta/recipes-connectivity/ofono/ofono_git.bb | 14 ++++++++ 6 files changed, 141 insertions(+) create mode 100644 meta/recipes-connectivity/ofono/ofono-1.12/obsolete_automake_macros.patch create mode 100644 meta/recipes-connectivity/ofono/ofono.inc create mode 100644 meta/recipes-connectivity/ofono/ofono/missing-ssize_t.patch create mode 100644 meta/recipes-connectivity/ofono/ofono/ofono create mode 100644 meta/recipes-connectivity/ofono/ofono_1.12.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-1.12/obsolete_automake_macros.patch b/meta/recipes-connectivity/ofono/ofono-1.12/obsolete_automake_macros.patch new file mode 100644 index 0000000000..31a102e0ca --- /dev/null +++ b/meta/recipes-connectivity/ofono/ofono-1.12/obsolete_automake_macros.patch @@ -0,0 +1,14 @@ +Upstream-Status: Submitted [ofono@ofono.org] + +Signed-off-by: Marko Lindqvist +diff -Nurd ofono-1.12/configure.ac ofono-1.12/configure.ac +--- ofono-1.12/configure.ac 2012-12-19 21:28:44.000000000 +0200 ++++ ofono-1.12/configure.ac 2013-01-12 11:18:40.681410757 +0200 +@@ -2,7 +2,7 @@ + AC_INIT(ofono, 1.12) + + AM_INIT_AUTOMAKE([foreign subdir-objects color-tests]) +-AM_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADERS(config.h) + + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 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/missing-ssize_t.patch b/meta/recipes-connectivity/ofono/ofono/missing-ssize_t.patch new file mode 100644 index 0000000000..71903c47da --- /dev/null +++ b/meta/recipes-connectivity/ofono/ofono/missing-ssize_t.patch @@ -0,0 +1,23 @@ +include unistd.h for getting ssize_t definitions +Fixes errors like + +| In file included from src/sms.c:38:0: +| src/storage.h:32:1: error: unknown type name 'ssize_t' +| src/storage.h:36:1: error: unknown type name 'ssize_t' + + +Upstream-Status: Pending +Signed-off-by: Khem Raj + +Index: ofono-1.12/src/storage.h +=================================================================== +--- ofono-1.12.org/src/storage.h 2013-01-04 10:01:24.137804178 -0800 ++++ ofono-1.12/src/storage.h 2013-01-04 10:02:09.325806426 -0800 +@@ -26,6 +26,7 @@ + #endif + + #include ++#include + + int create_dirs(const char *filename, const mode_t mode); + 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.12.bb b/meta/recipes-connectivity/ofono/ofono_1.12.bb new file mode 100644 index 0000000000..ad524a0418 --- /dev/null +++ b/meta/recipes-connectivity/ofono/ofono_1.12.bb @@ -0,0 +1,15 @@ +require ofono.inc + +SRC_URI = "\ + ${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \ + file://ofono \ + file://missing-ssize_t.patch \ + file://obsolete_automake_macros.patch \ +" + +PR = "r2" + +SRC_URI[md5sum] = "aa8924c0e8de3ec7ac5e41fe7df4cb99" +SRC_URI[sha256sum] = "733b75bfd1b2a1925b6de532989c496b8ae17a746691120ef64cceb00b3ef751" + +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