summaryrefslogtreecommitdiff
path: root/lightdm.morph
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-09-18 16:31:42 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2012-09-18 16:31:42 +0100
commite2d890398f8d2c093c3360ff1d4c2d56a81ebc95 (patch)
tree822bf5dda9faad654c75747ef1f4351cf54b20a7 /lightdm.morph
parent4ac76c3883ca3f9b9d0b74ea1051fe854dc373ee (diff)
downloadlightdm-e2d890398f8d2c093c3360ff1d4c2d56a81ebc95.tar.gz
Add systemd service to start lightdm on boot
Diffstat (limited to 'lightdm.morph')
-rw-r--r--lightdm.morph6
1 files changed, 6 insertions, 0 deletions
diff --git a/lightdm.morph b/lightdm.morph
index 6b2463c1..736bda67 100644
--- a/lightdm.morph
+++ b/lightdm.morph
@@ -5,5 +5,11 @@
"configure-commands": [
"NOCONFIGURE=1 ./autogen.sh",
"./configure --prefix=\"$PREFIX\" --sysconfdir=/etc --localstatedir=/var \"$@\""
+ ],
+ "install-commands": [
+ "make DESTDIR=\"$DESTDIR\" install",
+ "mkdir -p \"$DESTDIR/lib/systemd/system/\"",
+ "cp lightdm.service \"$DESTDIR/lib/systemd/system/\"",
+ "ln -s \"$DESTDIR/lib/systemd/system/lightdm.service\" \"$DESTDIR/lib/systemd/system/multi-user.target.wants/lightdm.service\""
]
}