diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/blueman/blueman_2.4.3.bb')
| -rw-r--r-- | meta-networking/recipes-connectivity/blueman/blueman_2.4.3.bb | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/blueman/blueman_2.4.3.bb b/meta-networking/recipes-connectivity/blueman/blueman_2.4.3.bb new file mode 100644 index 0000000000..5aa3b2bd55 --- /dev/null +++ b/meta-networking/recipes-connectivity/blueman/blueman_2.4.3.bb | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | DESCRIPTION = "Blueman is a GTK+ Bluetooth Manager" | ||
| 2 | LICENSE = "GPL-3.0-only" | ||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
| 4 | |||
| 5 | DEPENDS = "gtk+3 glib-2.0 bluez5 python3-pygobject python3-cython-native" | ||
| 6 | |||
| 7 | inherit meson gettext systemd gsettings pkgconfig python3native gtk-icon-cache useradd features_check | ||
| 8 | |||
| 9 | REQUIRED_DISTRO_FEATURES = "gobject-introspection-data" | ||
| 10 | |||
| 11 | SRC_URI = "git://github.com/blueman-project/blueman.git;protocol=https;branch=2-4-stable" | ||
| 12 | S = "${WORKDIR}/git" | ||
| 13 | SRCREV = "7bcf919ad6ac0ee9a8c66b18b0ca98af877d4c8f" | ||
| 14 | |||
| 15 | EXTRA_OEMESON = "-Druntime_deps_check=false" | ||
| 16 | |||
| 17 | SYSTEMD_SERVICE:${PN} = "${BPN}-mechanism.service" | ||
| 18 | SYSTEMD_AUTO_ENABLE:${PN} = "disable" | ||
| 19 | |||
| 20 | RRECOMMENDS:${PN} += "adwaita-icon-theme" | ||
| 21 | RDEPENDS:${PN} += " \ | ||
| 22 | python3-core \ | ||
| 23 | python3-ctypes \ | ||
| 24 | python3-dbus \ | ||
| 25 | python3-pygobject \ | ||
| 26 | python3-terminal \ | ||
| 27 | python3-fcntl \ | ||
| 28 | packagegroup-tools-bluetooth \ | ||
| 29 | " | ||
| 30 | |||
| 31 | PACKAGECONFIG ??= " \ | ||
| 32 | ${@bb.utils.filter('DISTRO_FEATURES', 'polkit pulseaudio ', d)} \ | ||
| 33 | thunar \ | ||
| 34 | " | ||
| 35 | PACKAGECONFIG[thunar] = "-Dthunar-sendto=true,-Dthunar-sendto=false" | ||
| 36 | PACKAGECONFIG[pulseaudio] = "-Dpulseaudio=true,-Dpulseaudio=false" | ||
| 37 | PACKAGECONFIG[polkit] = "-Dpolicykit=true,-Dpolicykit=false" | ||
| 38 | |||
| 39 | FILES:${PN} += " \ | ||
| 40 | ${datadir} \ | ||
| 41 | ${systemd_user_unitdir} \ | ||
| 42 | ${PYTHON_SITEPACKAGES_DIR} \ | ||
| 43 | " | ||
| 44 | |||
| 45 | # In code, path to python is a variable that is replaced with path to native version of it | ||
| 46 | # during the configure stage, e.g ../recipe-sysroot-native/usr/bin/python3-native/python3. | ||
| 47 | # Replace it with #!/usr/bin/env python3 | ||
| 48 | do_install:append() { | ||
| 49 | sed -i "1s/.*/#!\/usr\/bin\/env python3/" ${D}${prefix}/libexec/blueman-rfcomm-watcher \ | ||
| 50 | ${D}${prefix}/libexec/blueman-mechanism \ | ||
| 51 | ${D}${bindir}/blueman-adapters \ | ||
| 52 | ${D}${bindir}/blueman-applet \ | ||
| 53 | ${D}${bindir}/blueman-manager \ | ||
| 54 | ${D}${bindir}/blueman-sendto \ | ||
| 55 | ${D}${bindir}/blueman-services \ | ||
| 56 | ${D}${bindir}/blueman-tray | ||
| 57 | } | ||
| 58 | |||
| 59 | USERADD_PACKAGES = "${PN}" | ||
| 60 | USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 --shell /bin/nologin polkitd" | ||
| 61 | |||
| 62 | do_install:append() { | ||
| 63 | # Fix up permissions on polkit rules.d to work with rpm4 constraints | ||
| 64 | chmod 700 ${D}/${datadir}/polkit-1/rules.d | ||
| 65 | chown polkitd:root ${D}/${datadir}/polkit-1/rules.d | ||
| 66 | } | ||
