2009-08-26 17:00:38 +02:00
|
|
|
mkdir -p $PKG/etc/X11
|
2012-09-26 03:10:42 +02:00
|
|
|
mv $PKG/usr/lib/X11/xdm $PKG/etc/X11
|
|
|
|
ln -sf ../../../etc/X11/xdm $PKG/usr/lib/X11/xdm
|
|
|
|
|
|
|
|
#( cd $PKG/usr/lib/X11
|
|
|
|
# mv xdm $PKG/etc/X11
|
|
|
|
# ln -sf ../../../etc/X11/xdm .
|
|
|
|
#)
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/doc/xdm-$MODULAR_PACKAGE_VERSION
|
|
|
|
mv $PKG/etc/X11/xdm/Xsession $PKG/usr/doc/xdm-$MODULAR_PACKAGE_VERSION/Xsession.orig
|
|
|
|
mv $PKG/etc/X11/xdm/Xsetup_0 $PKG/usr/doc/xdm-$MODULAR_PACKAGE_VERSION/Xsetup_0.orig
|
|
|
|
|
2009-08-26 17:00:38 +02:00
|
|
|
cp -a $CWD/post-install/xdm/Xsession $PKG/etc/X11/xdm/Xsession
|
|
|
|
cp -a $CWD/post-install/xdm/Xsetup_0 $PKG/etc/X11/xdm/Xsetup_0
|
2012-09-26 03:10:42 +02:00
|
|
|
|
2020-02-07 23:32:38 +01:00
|
|
|
if [ -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then
|
|
|
|
mkdir -p $PKG/etc/pam.d
|
|
|
|
cat $CWD/post-install/xdm/xdm.pamd > $PKG/etc/pam.d/xdm.new
|
|
|
|
fi
|
|
|
|
|
2009-08-26 17:00:38 +02:00
|
|
|
chown root:root $PKG/etc/X11/xdm/Xsession $PKG/etc/X11/xdm/Xsetup_0
|
2012-09-26 03:10:42 +02:00
|
|
|
chmod 0755 $PKG/etc/X11/xdm/Xsession $PKG/etc/X11/xdm/Xsetup_0
|
|
|
|
|
|
|
|
for conffile in \
|
|
|
|
Xaccess Xreset Xresources Xservers Xsession Xsetup_0 Xstartup Xwilling \
|
2013-11-04 18:08:47 +01:00
|
|
|
GiveConsole TakeConsole xdm-config ../app-defaults/Chooser ;
|
2012-09-26 03:10:42 +02:00
|
|
|
do
|
2013-11-04 18:08:47 +01:00
|
|
|
# Use awk to strip leading blank lines... weird bug that cropped up in the
|
|
|
|
# pre Slackware-14.1 development cycle.
|
|
|
|
awk "/[^ ]/ { copy=1 }; copy { print }" $PKG/etc/X11/xdm/${conffile} > $PKG/etc/X11/xdm/${conffile}.new
|
|
|
|
touch -r $PKG/etc/X11/xdm/${conffile} $PKG/etc/X11/xdm/${conffile}.new
|
2021-01-05 23:42:46 +01:00
|
|
|
chmod --reference=$PKG/etc/X11/xdm/${conffile} $PKG/etc/X11/xdm/${conffile}.new
|
2013-11-04 18:08:47 +01:00
|
|
|
rm -f $PKG/etc/X11/xdm/${conffile}
|
2012-09-26 03:10:42 +02:00
|
|
|
done
|
|
|
|
|
2018-05-28 21:12:29 +02:00
|
|
|
# Change default auth type:
|
|
|
|
cat << EOF >> $PKG/etc/X11/xdm/xdm-config.new
|
|
|
|
|
|
|
|
! In xdm-config, default to MIT-MAGIC-COOKIE-1 authorization as
|
|
|
|
! the XDM-AUTHORIZATION-1 method (which is the default otherwise) is
|
|
|
|
! mostly broken (i.e. with SDL2 apps):
|
|
|
|
DisplayManager.*.authName: MIT-MAGIC-COOKIE-1
|
|
|
|
EOF
|
|
|
|
|
2010-05-19 10:58:23 +02:00
|
|
|
mkdir -p $PKG/var/lib/xdm
|
|
|
|
chown root:root $PKG/var/lib/xdm
|
|
|
|
chmod 755 $PKG/var/lib/xdm
|
2012-09-26 03:10:42 +02:00
|
|
|
|