kind: autotools
depends:
- bluetooth.bst
- icu-common.bst
- input-common.bst
- data-indexing-management.bst
- vala-common.bst
- geolocation.bst
- gtk2.bst
- gtk3.bst
- libsoup-common.bst
- NetworkManager-common.bst
- multimedia-gstreamer.bst
- network-security.bst
- privileges-management.bst
- python3-gobject.bst
- wayland-generic.bst
- ruby.bst
- samba.bst
- secret-service.bst
- sound-server-pulseaudio.bst
- spell-checking.bst
- cups.bst
- gnome/gnome/accountsservice.bst
- gnome/gnome/libcanberra.bst
- gnome/gnome/dconf.bst
sources:
- kind: git
  url: upstream:gdm
  track: 3.18.0
  ref: 494ec8cee5727c37118994d3864c44f36aa454fc
config:
  configure-commands:
  - |
    # GDM includes a few stock PAM configurations, we choose the LFS flavor
    # because of it's simplicity over the others, also it does not require
    # selinux modules, however we neet to tweak the config a little after install.
    ./autogen.sh --prefix="%{prefix}" --sysconfdir=/etc --localstatedir=/var \
                 --with-selinux=no --with-plymouth=no \
                 --enable-gdm-xsession --with-x --with-default-pam-config=lfs
  install-commands:
    (>):
    - sed -i 's/system-account/system-auth/g'  "%{install-root}"/etc/pam.d/gdm*
    - sed -i 's/system-password/system-auth/g' "%{install-root}"/etc/pam.d/gdm*
    - sed -i 's/system-session/system-auth/g'  "%{install-root}"/etc/pam.d/gdm*
public:
  bst:
    integration-commands:
    - groupadd -g 21 gdm
    - useradd -rM -c "GDM Daemon Owner" -d /var/lib/gdm -u 21  -g gdm -s /bin/false
      gdm
    - systemctl enable gdm
