summaryrefslogtreecommitdiffstats
path: root/x11/xorg-clients/pkg-install
blob: 41f1c1d7fca51c818cf5da2984855813f4bbab88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
OpenPOWER on IntegriCloud