mirror of
git://slackware.nl/current.git
synced 2025-01-11 08:01:05 +01:00
cf640c7b34
ap/mariadb-10.5.7-x86_64-1.txz: Upgraded. l/libcap-2.45-x86_64-1.txz: Upgraded. l/poppler-data-0.4.10-noarch-1.txz: Upgraded. n/samba-4.13.2-x86_64-1.txz: Upgraded. x/libdrm-2.4.103-x86_64-1.txz: Upgraded. testing/packages/vtown/kde/sddm-0.18.1-x86_64-1_vtown_2.txz: Rebuilt. Fixed installation of pam.d files. Thanks to alienBOB.
49 lines
1.6 KiB
Text
49 lines
1.6 KiB
Text
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/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
|
|
|
|
# Make sure that Plasma and SDDM work on older GPUs,
|
|
# by forcing Qt5 to use software GL rendering:
|
|
cat <<"EOGL" >> $PKG/usr/share/sddm/scripts/Xsetup
|
|
|
|
# Make sure that Plasma and SDDM work on older GPUs,
|
|
# by forcing Qt5 to use software GL rendering:
|
|
OPENGL_VERSION=$(LANG=C glxinfo |grep '^OpenGL version string: ' |head -n 1 |sed -e 's/^OpenGL version string: \([0-9]\).*$/\1/g')
|
|
if [ "$OPENGL_VERSION" -lt 2 ]; then
|
|
QT_XCB_FORCE_SOFTWARE_OPENGL=1
|
|
export QT_XCB_FORCE_SOFTWARE_OPENGL
|
|
fi
|
|
EOGL
|
|
|
|
# Ensure that user customizations to the session files are not lost:
|
|
mv $PKG/usr/share/sddm/scripts/Xsession{,.new}
|
|
mv $PKG/usr/share/sddm/scripts/Xsetup{,.new}
|
|
mv $PKG/usr/share/sddm/scripts/Xstop{,.new}
|
|
mv $PKG/usr/share/sddm/scripts/wayland-session{,.new}
|
|
|
|
# Add a wrapper for the sddm binary, to enable a custom environment:
|
|
mv $PKG/usr/bin/sddm $PKG/usr/bin/sddm.bin
|
|
cat <<"EOT" > $PKG/usr/bin/sddm
|
|
#!/bin/sh
|
|
# Customized environment (LANG definition):
|
|
if [ -f /etc/default/sddm ]; then
|
|
. /etc/default/sddm
|
|
fi
|
|
/usr/bin/sddm.bin "$*"
|
|
EOT
|
|
chmod 0755 $PKG/usr/bin/sddm
|
|
|
|
# Let's also add an example customization (localization of the UI):
|
|
mkdir -p $PKG/etc/default
|
|
echo ". /etc/profile.d/lang.sh" > $PKG/etc/default/sddm.new
|
|
|