1SUMMARY = "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    json-glib \
11    keyutils \
12    libcanberra \
13    libgudev \
14    libpam \
15    xserver-xorg \
16"
17
18REQUIRED_DISTRO_FEATURES = "x11 systemd pam polkit gobject-introspection-data"
19GIR_MESON_OPTION = ""
20
21
22inherit gnomebase gsettings pkgconfig gobject-introspection gettext systemd useradd itstool gnome-help features_check
23
24SRC_URI[archive.sha256sum] = "8d6cb52176eca48b6bbf1cfe2fdae08d9677b5a0f2bca600dee4604de0dd1efc"
25
26EXTRA_OEMESON = " \
27    -Dplymouth=disabled \
28    -Ddefault-pam-config=openembedded \
29    -Dpam-mod-dir=${base_libdir}/security \
30"
31
32do_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
39do_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"
68