summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/ofono/ofono.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/ofono/ofono.inc')
-rw-r--r--meta/recipes-connectivity/ofono/ofono.inc33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/ofono/ofono.inc b/meta/recipes-connectivity/ofono/ofono.inc
new file mode 100644
index 0000000..3972e06
--- /dev/null
+++ b/meta/recipes-connectivity/ofono/ofono.inc
@@ -0,0 +1,33 @@
1HOMEPAGE = "http://www.ofono.org"
2SUMMARY = "open source telephony"
3DESCRIPTION = "oFono is a stack for mobile telephony devices on Linux. oFono supports speaking to telephony devices through specific drivers, or with generic AT commands."
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
6 file://src/ofono.h;beginline=1;endline=20;md5=3ce17d5978ef3445def265b98899c2ee"
7
8inherit autotools pkgconfig update-rc.d systemd
9
10DEPENDS = "dbus glib-2.0 udev mobile-broadband-provider-info ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)}"
11
12INITSCRIPT_NAME = "ofono"
13INITSCRIPT_PARAMS = "defaults 22"
14
15EXTRA_OECONF += "\
16 ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdunitdir=${systemd_unitdir}/system/', '--with-systemdunitdir=', d)} \
17 ${@base_contains('DISTRO_FEATURES', 'bluetooth','--enable-bluetooth', '--disable-bluetooth', d)} \
18 --enable-test \
19"
20SYSTEMD_SERVICE_${PN} = "ofono.service"
21
22do_install_append() {
23 install -d ${D}${sysconfdir}/init.d/
24 install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono
25}
26
27PACKAGES =+ "${PN}-tests"
28
29RDEPENDS_${PN} += "dbus"
30
31FILES_${PN} += "${base_libdir}/udev ${systemd_unitdir}"
32FILES_${PN}-tests = "${libdir}/${BPN}/test"
33RDEPENDS_${PN}-tests = "python python-pygobject python-dbus"