1*03514f19SPatrick WilliamsSUMMARY = "GNOME Display Manager" 2*03514f19SPatrick WilliamsLICENSE="GPL-2.0-only" 3*03514f19SPatrick WilliamsLIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 4*03514f19SPatrick Williams 5*03514f19SPatrick WilliamsDEPENDS = " \ 6*03514f19SPatrick Williams accountsservice \ 7*03514f19SPatrick Williams audit \ 8*03514f19SPatrick Williams dconf-native \ 9*03514f19SPatrick Williams gtk+3 \ 10*03514f19SPatrick Williams keyutils \ 11*03514f19SPatrick Williams libcanberra \ 12*03514f19SPatrick Williams libgudev \ 13*03514f19SPatrick Williams libpam \ 14*03514f19SPatrick Williams xserver-xorg \ 15*03514f19SPatrick Williams" 16*03514f19SPatrick Williams 17*03514f19SPatrick WilliamsREQUIRED_DISTRO_FEATURES = "x11 systemd pam polkit gobject-introspection-data" 18*03514f19SPatrick WilliamsGIR_MESON_OPTION = "" 19*03514f19SPatrick Williams 20*03514f19SPatrick Williams 21*03514f19SPatrick Williamsinherit gnomebase gsettings pkgconfig gobject-introspection gettext systemd useradd itstool gnome-help features_check 22*03514f19SPatrick Williams 23*03514f19SPatrick WilliamsSRC_URI[archive.sha256sum] = "8d6cb52176eca48b6bbf1cfe2fdae08d9677b5a0f2bca600dee4604de0dd1efc" 24*03514f19SPatrick Williams 25*03514f19SPatrick WilliamsEXTRA_OEMESON = " \ 26*03514f19SPatrick Williams -Dplymouth=disabled \ 27*03514f19SPatrick Williams -Ddefault-pam-config=openembedded \ 28*03514f19SPatrick Williams -Dpam-mod-dir=${base_libdir}/security \ 29*03514f19SPatrick Williams" 30*03514f19SPatrick Williams 31*03514f19SPatrick Williamsdo_install:prepend() { 32*03514f19SPatrick Williams sed -i -e 's|${B}/||g' ${B}/daemon/gdm-session-worker-enum-types.c 33*03514f19SPatrick Williams sed -i -e 's|${B}/||g' ${B}/daemon/gdm-session-worker-enum-types.h 34*03514f19SPatrick Williams sed -i -e 's|${B}/||g' ${B}/daemon/gdm-session-enum-types.c 35*03514f19SPatrick Williams sed -i -e 's|${B}/||g' ${B}/daemon/gdm-session-enum-types.h 36*03514f19SPatrick Williams} 37*03514f19SPatrick Williams 38*03514f19SPatrick Williamsdo_install:append() { 39*03514f19SPatrick Williams rm -rf ${D}/run ${D}${localstatedir}/run 40*03514f19SPatrick Williams} 41*03514f19SPatrick Williams 42*03514f19SPatrick WilliamsUSERADD_PACKAGES = "${PN}" 43*03514f19SPatrick WilliamsUSERADD_PARAM:${PN} = "--system --no-create-home --home ${localstatedir}/lib/gdm --user-group gdm" 44*03514f19SPatrick Williams 45*03514f19SPatrick WilliamsSYSTEMD_SERVICE:${PN} = "${BPN}.service" 46*03514f19SPatrick Williams 47*03514f19SPatrick Williams# Some gnome components - as gnome-panel and gnome-shell (!!) - require gdm 48*03514f19SPatrick Williams# components. To allow gnome-images using different display-manager, split them 49*03514f19SPatrick Williams# out into a seperate package. 50*03514f19SPatrick WilliamsPACKAGE_BEFORE_PN = "${PN}-base" 51*03514f19SPatrick WilliamsFILES:${PN}-base = " \ 52*03514f19SPatrick Williams ${datadir}/glib-2.0 \ 53*03514f19SPatrick Williams ${datadir}/gnome-session \ 54*03514f19SPatrick Williams ${libdir}/lib*${SOLIBS} \ 55*03514f19SPatrick Williams ${libdir}/girepository-1.0 \ 56*03514f19SPatrick Williams" 57*03514f19SPatrick Williams 58*03514f19SPatrick WilliamsCONFFILES:${PN} += "${sysconfdir}/gdm/custom.conf" 59*03514f19SPatrick WilliamsFILES:${PN} += " \ 60*03514f19SPatrick Williams ${datadir}/dconf \ 61*03514f19SPatrick Williams ${base_libdir}/security/pam_gdm.so \ 62*03514f19SPatrick Williams ${localstatedir} \ 63*03514f19SPatrick Williams ${systemd_unitdir} ${systemd_user_unitdir} \ 64*03514f19SPatrick Williams" 65*03514f19SPatrick Williams 66*03514f19SPatrick WilliamsRDEPENDS:${PN} += "${PN}-base" 67