summaryrefslogtreecommitdiff
path: root/old/gnome/strata/gnome/gdm.morph
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-07-07 10:01:07 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-07-07 10:01:07 +0000
commitf6046f9b54c1f14d12a67fa66ca0c881b49e8ceb (patch)
tree7c4d5b1aa87b991fecb0b2c585514069947c3f0a /old/gnome/strata/gnome/gdm.morph
parentdeba555368fd21316025c5ee0eaaf517b938775e (diff)
downloaddefinitions-f6046f9b54c1f14d12a67fa66ca0c881b49e8ceb.tar.gz
Move old Baserock format definitions into old/ directory
Diffstat (limited to 'old/gnome/strata/gnome/gdm.morph')
-rw-r--r--old/gnome/strata/gnome/gdm.morph24
1 files changed, 24 insertions, 0 deletions
diff --git a/old/gnome/strata/gnome/gdm.morph b/old/gnome/strata/gnome/gdm.morph
new file mode 100644
index 00000000..73081766
--- /dev/null
+++ b/old/gnome/strata/gnome/gdm.morph
@@ -0,0 +1,24 @@
+name: gdm
+kind: chunk
+build-system: autotools
+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
+post-install-commands:
+# Instead of following LFS PAM config to the letter, we redirect the includes
+# to use the systemd installed all purpose 'system-auth' file
+- sed -i 's/system-account/system-auth/g' "$DESTDIR"/etc/pam.d/gdm*
+- sed -i 's/system-password/system-auth/g' "$DESTDIR"/etc/pam.d/gdm*
+- sed -i 's/system-session/system-auth/g' "$DESTDIR"/etc/pam.d/gdm*
+system-integration:
+ gdm-misc:
+ 00-add-gdm-user:
+ - groupadd -g 21 gdm
+ - useradd -rM -c "GDM Daemon Owner" -d /var/lib/gdm -u 21 -g gdm -s /bin/false gdm
+ 00-enable-gdm-unit:
+ - systemctl enable gdm