Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | SUMMARY = "GNOME Display Manager" |
| 2 | LICENSE="GPL-2.0-only" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 4 | |
| 5 | DEPENDS = " \ |
| 6 | accountsservice \ |
| 7 | audit \ |
| 8 | dconf-native \ |
| 9 | gtk+3 \ |
| 10 | keyutils \ |
| 11 | libcanberra \ |
| 12 | libgudev \ |
| 13 | libpam \ |
| 14 | xserver-xorg \ |
| 15 | " |
| 16 | |
| 17 | REQUIRED_DISTRO_FEATURES = "x11 systemd pam polkit gobject-introspection-data" |
| 18 | GIR_MESON_OPTION = "" |
| 19 | |
| 20 | GNOMEBASEBUILDCLASS = "meson" |
| 21 | |
| 22 | inherit gnomebase gsettings pkgconfig gobject-introspection gettext systemd useradd itstool gnome-help features_check |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 23 | SRC_URI = "https://download.gnome.org/sources/gdm/${@oe.utils.trim_version("${PV}", 1)}/gdm-${PV}.tar.xz" |
| 24 | SRC_URI[sha256sum] = "6572578c05e3c6569d6ed269f7de2aaf3a035657654586d8243907bb7a6ffa85" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 25 | |
| 26 | EXTRA_OEMESON = " \ |
| 27 | -Dplymouth=disabled \ |
| 28 | -Ddefault-pam-config=openembedded \ |
| 29 | -Dpam-mod-dir=${base_libdir}/security \ |
| 30 | " |
| 31 | |
Andrew Geissler | 3eeda90 | 2023-05-19 10:14:02 -0500 | [diff] [blame] | 32 | do_install:prepend() { |
| 33 | sed -i -e 's|${B}/||g' ${B}/daemon/gdm-session-worker-enum-types.c |
| 34 | sed -i -e 's|${B}/||g' ${B}/daemon/gdm-session-worker-enum-types.h |
| 35 | sed -i -e 's|${B}/||g' ${B}/daemon/gdm-session-enum-types.c |
| 36 | sed -i -e 's|${B}/||g' ${B}/daemon/gdm-session-enum-types.h |
| 37 | } |
| 38 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 39 | do_install:append() { |
| 40 | rm -rf ${D}/run ${D}${localstatedir}/run |
| 41 | } |
| 42 | |
| 43 | USERADD_PACKAGES = "${PN}" |
| 44 | USERADD_PARAM:${PN} = "--system --no-create-home --home ${localstatedir}/lib/gdm --user-group gdm" |
| 45 | |
| 46 | SYSTEMD_SERVICE:${PN} = "${BPN}.service" |
| 47 | |
| 48 | # Some gnome components - as gnome-panel and gnome-shell (!!) - require gdm |
| 49 | # components. To allow gnome-images using different display-manager, split them |
| 50 | # out into a seperate package. |
| 51 | PACKAGE_BEFORE_PN = "${PN}-base" |
| 52 | FILES:${PN}-base = " \ |
| 53 | ${datadir}/glib-2.0 \ |
| 54 | ${datadir}/gnome-session \ |
| 55 | ${libdir}/lib*${SOLIBS} \ |
| 56 | ${libdir}/girepository-1.0 \ |
| 57 | " |
| 58 | |
| 59 | CONFFILES:${PN} += "${sysconfdir}/gdm/custom.conf" |
| 60 | FILES:${PN} += " \ |
| 61 | ${datadir}/dconf \ |
| 62 | ${base_libdir}/security/pam_gdm.so \ |
| 63 | ${localstatedir} \ |
| 64 | ${systemd_unitdir} ${systemd_user_unitdir} \ |
| 65 | " |
| 66 | |
| 67 | RDEPENDS:${PN} += "${PN}-base" |