diff options
Diffstat (limited to 'meta-oe/recipes-navigation/geoclue/geoclue_2.7.0.bb')
| -rw-r--r-- | meta-oe/recipes-navigation/geoclue/geoclue_2.7.0.bb | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-oe/recipes-navigation/geoclue/geoclue_2.7.0.bb b/meta-oe/recipes-navigation/geoclue/geoclue_2.7.0.bb new file mode 100644 index 0000000000..f7039b5916 --- /dev/null +++ b/meta-oe/recipes-navigation/geoclue/geoclue_2.7.0.bb | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | SUMMARY = "The Geolocation Service" | ||
| 2 | DESCRIPTION = "Geoclue is a D-Bus service that provides location information. \ | ||
| 3 | The primary goal of the Geoclue project is to make creating location-aware applications \ | ||
| 4 | as simple as possible, while the secondary goal is to ensure that no application \ | ||
| 5 | can access location information without explicit permission from user." | ||
| 6 | LICENSE = "GPL-2.0-or-later" | ||
| 7 | SECTION = "console/network" | ||
| 8 | |||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=bdfdd4986a0853eb84eeba85f9d0c4d6" | ||
| 10 | |||
| 11 | DEPENDS = "glib-2.0 dbus json-glib libsoup-3.0 intltool-native" | ||
| 12 | |||
| 13 | inherit meson pkgconfig gtk-doc gobject-introspection vala useradd | ||
| 14 | |||
| 15 | SRCREV = "bbfb6289dedb88cb8155d9f6868787d5432e1f90" | ||
| 16 | SRC_URI = "git://gitlab.freedesktop.org/geoclue/geoclue.git;protocol=https;nobranch=1" | ||
| 17 | |||
| 18 | S = "${WORKDIR}/git" | ||
| 19 | |||
| 20 | # Without this line, package is declared a library and named libgeoclue* | ||
| 21 | AUTO_LIBNAME_PKGS = "" | ||
| 22 | |||
| 23 | PACKAGECONFIG ??= "3g modem-gps cdma nmea lib" | ||
| 24 | PACKAGECONFIG[3g] = "-D3g-source=true,-D3g-source=false,modemmanager" | ||
| 25 | PACKAGECONFIG[modem-gps] = "-Dmodem-gps-source=true,-Dmodem-gps-source=false,modemmanager" | ||
| 26 | PACKAGECONFIG[cdma] = "-Dcdma-source=true,-Dcdma-source=false,modemmanager" | ||
| 27 | PACKAGECONFIG[nmea] = "-Dnmea-source=true,-Dnmea-source=false,avahi,avahi-daemon" | ||
| 28 | PACKAGECONFIG[lib] = "-Dlibgeoclue=true,-Dlibgeoclue=false,gobject-introspection" | ||
| 29 | |||
| 30 | GTKDOC_MESON_OPTION = "gtk-doc" | ||
| 31 | |||
| 32 | EXTRA_OEMESON += " \ | ||
| 33 | -Ddbus-sys-dir=${sysconfdir}/dbus-1/system.d \ | ||
| 34 | -Ddemo-agent=false \ | ||
| 35 | " | ||
| 36 | |||
| 37 | USERADD_PACKAGES = "${PN}" | ||
| 38 | USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 --shell /bin/nologin polkitd" | ||
| 39 | |||
| 40 | do_install:append() { | ||
| 41 | if ${@bb.utils.contains('PACKAGECONFIG', 'modem-gps', 'true', 'false', d)}; then | ||
| 42 | # Fix up permissions on polkit rules.d to work with rpm4 constraints | ||
| 43 | chmod 700 ${D}/${datadir}/polkit-1/rules.d | ||
| 44 | chown polkitd:root ${D}/${datadir}/polkit-1/rules.d | ||
| 45 | fi | ||
| 46 | } | ||
| 47 | |||
| 48 | FILES:${PN} += " \ | ||
| 49 | ${datadir}/dbus-1/system-services \ | ||
| 50 | ${datadir}/polkit-1/rules.d \ | ||
| 51 | ${libdir} \ | ||
| 52 | ${systemd_unitdir} \ | ||
| 53 | ${prefix}/libexec \ | ||
| 54 | " | ||
| 55 | |||
| 56 | FILES:${PN}-dev += " \ | ||
| 57 | ${datadir}/dbus-1/interfaces \ | ||
| 58 | ${datadir}/gir-1.0 \ | ||
| 59 | " | ||
