aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xorg-clients/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'x11/xorg-clients/pkg-install')
-rw-r--r--x11/xorg-clients/pkg-install21
1 files changed, 21 insertions, 0 deletions
diff --git a/x11/xorg-clients/pkg-install b/x11/xorg-clients/pkg-install
new file mode 100644
index 000000000000..41f1c1d7fca5
--- /dev/null
+++ b/x11/xorg-clients/pkg-install
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+if [ "$2" != "POST-INSTALL" ]; then
+ exit 0
+fi
+
+PKG_PREFIX=${PKG_PREFIX:=/usr/X11R6}
+
+XDMCONFDIR=${PKG_PREFIX}/lib/X11/xdm
+XDMCONFFILES="GiveConsole TakeConsole Xaccess Xresources Xservers Xsession \
+ Xsetup_0 Xwilling xdm-config"
+for file in $XDMCONFFILES; do
+ if [ ! -f ${XDMCONFDIR}/$file ]; then
+ cp ${XDMCONFDIR}/$file.default ${XDMCONFDIR}/$file
+ fi
+done
+
+XINITCONFDIR=${PKG_PREFIX}/lib/X11/xinit
+if [ ! -f ${XINITCONFDIR}/xinitrc ]; then
+ cp ${XINITCONFDIR}/xinitrc.default ${XINITCONFDIR}/xinitrc
+fi