summaryrefslogtreecommitdiffstats
path: root/kde/post-install/sddm-qt5.post-install
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2019-10-06 23:36:02 +0200
committer Eric Hameleers <alien@slackware.com>2019-10-06 23:36:02 +0200
commit55bb52de959214602121867d55723cf27d7684a7 (patch)
tree62a82ef1ea1b67e72068d2e96583fe25594fbff4 /kde/post-install/sddm-qt5.post-install
parent57ec3da3a54f8380517de0b37f42be75ef04a307 (diff)
downloadktown-55bb52de959214602121867d55723cf27d7684a7.tar.gz
ktown-55bb52de959214602121867d55723cf27d7684a7.tar.xz
Add support for building Plasma5 on a PAM-ified Slackwarepam
Set the variable SLACKPAM to "yes" in kde/kde.options if you want to add support for PAM. These packages will be supplied by a pam-ified Slackware, so they should not be installed from 'ktown': deps:ConsoleKit2,cracklib These packages will react to SLACKPAM variable setting: plasma:kscreenlocker,plasma-workspace plasma-extra:sddm-qt5 Uncomment in kde/modules/plasma and compile: plasma:kwallet-pam
Diffstat (limited to 'kde/post-install/sddm-qt5.post-install')
-rw-r--r--kde/post-install/sddm-qt5.post-install12
1 files changed, 10 insertions, 2 deletions
diff --git a/kde/post-install/sddm-qt5.post-install b/kde/post-install/sddm-qt5.post-install
index 1a39fd0..5ce2957 100644
--- a/kde/post-install/sddm-qt5.post-install
+++ b/kde/post-install/sddm-qt5.post-install
@@ -1,5 +1,13 @@
-# Remove PAM related stuff:
-rm -rf $PKG/etc/pam.d
+if [ "$SLACKPAM" == "no" ]; then
+ # Remove PAM related stuff:
+ rm -rf $PKG/etc/pam.d
+else
+ # Replace systemd-centric files with ours:
+ rm -f $PKG/etc/pam.d/sddm*
+ for FILE in sddm sddm-autologin sddm-greeter ; do
+ install -Dm644 $CWD/post-install/sddm-qt5/pam.d/$FILE $PKG/etc/pam.d/$FILE
+ done
+fi
# Remove the sddm.conf file because we will generate our own in doinst.sh:
rm -f $PKG/etc/sddm.conf