diff options
Diffstat (limited to 'source/kde/post-install')
-rw-r--r-- | source/kde/post-install/kde-workspace.post-install | 9 | ||||
-rw-r--r-- | source/kde/post-install/kde-workspace/config/kde.pamd | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/source/kde/post-install/kde-workspace.post-install b/source/kde/post-install/kde-workspace.post-install index 5cbabf507..f6e0c236d 100644 --- a/source/kde/post-install/kde-workspace.post-install +++ b/source/kde/post-install/kde-workspace.post-install @@ -39,6 +39,15 @@ cat $CWD/post-install/kde-workspace/config/Xsession | sed -e "s#/lib#/lib${LIBDI # Add a .new suffix so we don't mangle an existing file: mv $PKG/usr/share/config/kdm/backgroundrc $PKG/usr/share/config/kdm/backgroundrc.new +# Add config file if PAM is installed: +if [ -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then + mkdir -p $PKG/etc/pam.d + cp -a $CWD/post-install/kde-workspace/config/kde.pamd $PKG/etc/pam.d/kde.new + chown root:root $PKG/etc/pam.d/kde.new + chmod 644 $PKG/etc/pam.d/kde.new + echo "config etc/pam.d/kde.new" >> $PKG/install/doinst.sh +fi + # Move the KDM files someplace FHS compliant: mkdir -p $PKG/etc/kde mv $PKG/usr/share/config/kdm $PKG/etc/kde diff --git a/source/kde/post-install/kde-workspace/config/kde.pamd b/source/kde/post-install/kde-workspace/config/kde.pamd new file mode 100644 index 000000000..7acfd901e --- /dev/null +++ b/source/kde/post-install/kde-workspace/config/kde.pamd @@ -0,0 +1,9 @@ +#%PAM-1.0 +auth include system-auth +auth include postlogin +account include system-auth +password include system-auth +session include system-auth +session required pam_loginuid.so +session optional pam_ck_connector.so nox11 +session include postlogin |