aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>2001-02-09 00:40:08 +0800
committerjmz <jmz@FreeBSD.org>2001-02-09 00:40:08 +0800
commit78418114b79b0a788344412416135276d76b8151 (patch)
tree3471e60865946a47cf11169156d6073dada339d0 /x11
parent5a32244e6d84774f043aa34b05d3014958236f59 (diff)
downloadfreebsd-ports-gnome-78418114b79b0a788344412416135276d76b8151.tar.gz
freebsd-ports-gnome-78418114b79b0a788344412416135276d76b8151.tar.zst
freebsd-ports-gnome-78418114b79b0a788344412416135276d76b8151.zip
Add an option to install config files in /usr/X11R6/lib/X11 instead of /etc/X11
Diffstat (limited to 'x11')
-rw-r--r--x11/XFree86-4/scripts/configure18
1 files changed, 16 insertions, 2 deletions
diff --git a/x11/XFree86-4/scripts/configure b/x11/XFree86-4/scripts/configure
index 3ab60e50c03a..38d2b0f22bf1 100644
--- a/x11/XFree86-4/scripts/configure
+++ b/x11/XFree86-4/scripts/configure
@@ -144,17 +144,31 @@ cat >> $F <<END
#endif
END
+cat <<EOF
+app-default files, startup configuration files, keyboard definitions
+are normally installed in /etc/X11 (so that X binaries can be mounted
+from a read-only volume like a CD-ROM). Otherwise default files will
+be installed under /usr/X11R6.
+EOF
+yesno YES "Install config files in /etc/X11?"
+if [ $answ = NO ]; then
+ echo '#define UseSeparateConfDir NO' >> $F
+ ETC=${PREFIX}/lib
+else
+ ETC=/etc
+fi
+
cat <<END
Do you want to install the default system config files? This will overwrite
and files that you may be currently using. This would only be required
on a first time build.
END
-if [ -e /etc/X11/xdm/xdm-config ]; then
+if [ -e $ETC/X11/xdm/xdm-config ]; then
XDMDEFAULT=NO
else
XDMDEFAULT=YES
fi
-if [ -e /etc/X11/xinit/xinitrc ]; then
+if [ -e $ETC/X11/xinit/xinitrc ]; then
XINITDEFAULT=NO
else
XINITDEFAULT=YES