blob: 311d28325790a76c6bd283c36f7d9264a7a82137 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "GNOME Display Manager"
2LICENSE="GPL-2.0-only"
3LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
4
5DEPENDS = " \
6 accountsservice \
7 audit \
8 dconf-native \
9 gtk+3 \
10 keyutils \
11 libcanberra \
12 libgudev \
13 libpam \
14 xserver-xorg \
15"
16
17REQUIRED_DISTRO_FEATURES = "x11 systemd pam polkit gobject-introspection-data"
18GIR_MESON_OPTION = ""
19
20GNOMEBASEBUILDCLASS = "meson"
21
22inherit gnomebase gsettings pkgconfig gobject-introspection gettext systemd useradd itstool gnome-help features_check
Andrew Geissler220dafd2023-10-04 10:18:08 -050023SRC_URI = "https://download.gnome.org/sources/gdm/${@oe.utils.trim_version("${PV}", 1)}/gdm-${PV}.tar.xz"
24SRC_URI[sha256sum] = "6572578c05e3c6569d6ed269f7de2aaf3a035657654586d8243907bb7a6ffa85"
Andrew Geissler517393d2023-01-13 08:55:19 -060025
26EXTRA_OEMESON = " \
27 -Dplymouth=disabled \
28 -Ddefault-pam-config=openembedded \
29 -Dpam-mod-dir=${base_libdir}/security \
30"
31
Andrew Geissler3eeda902023-05-19 10:14:02 -050032do_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 Geissler517393d2023-01-13 08:55:19 -060039do_install:append() {
40 rm -rf ${D}/run ${D}${localstatedir}/run
41}
42
43USERADD_PACKAGES = "${PN}"
44USERADD_PARAM:${PN} = "--system --no-create-home --home ${localstatedir}/lib/gdm --user-group gdm"
45
46SYSTEMD_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.
51PACKAGE_BEFORE_PN = "${PN}-base"
52FILES:${PN}-base = " \
53 ${datadir}/glib-2.0 \
54 ${datadir}/gnome-session \
55 ${libdir}/lib*${SOLIBS} \
56 ${libdir}/girepository-1.0 \
57"
58
59CONFFILES:${PN} += "${sysconfdir}/gdm/custom.conf"
60FILES:${PN} += " \
61 ${datadir}/dconf \
62 ${base_libdir}/security/pam_gdm.so \
63 ${localstatedir} \
64 ${systemd_unitdir} ${systemd_user_unitdir} \
65"
66
67RDEPENDS:${PN} += "${PN}-base"