summaryrefslogtreecommitdiff
path: root/x11/xdm
diff options
context:
space:
mode:
authorabs <abs>2008-06-17 00:42:14 +0000
committerabs <abs>2008-06-17 00:42:14 +0000
commit363820e5cbc3db450e8a3f247e20174a4e47ed54 (patch)
tree0ef6a82492c5a480ec7524e732f03ad2bf5db2f3 /x11/xdm
parent47b769cc7a659665cf1b4df0749c26c17ee163ed (diff)
downloadpkgsrc-363820e5cbc3db450e8a3f247e20174a4e47ed54.tar.gz
copy a lightly modified fix for starting xdm on ttyE4 from gdm
bump PKGREVISION # The following forces the X server to start on the 5th virtual terminal. # This is suboptimal but matches the defaults for the xdm configuration, # which should work for most installations. See the definition of # DEFAULTVT in xsrc/xfree/xc/programs/xdm/config/Imakefile. # # If we do not do this, we hit a very annoying and obscure problem: during # system startup, xdm starts before init spawns gettys. If the X server # is started before init spawns the gettys (which easily happens on slow # machines), it grabs the first virtual terminal (instead of the first # "free" one). Later on, when the first getty is started, it grabs the # same terminal X used (the first one). As a result, only one of them # will receive key presses. And on slow machines, X will have lost access # to the keyboard. .if (${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD") && \ (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") CONFIGURE_ARGS+= --with-default-vt=vt05 .endif
Diffstat (limited to 'x11/xdm')
-rw-r--r--x11/xdm/Makefile21
1 files changed, 20 insertions, 1 deletions
diff --git a/x11/xdm/Makefile b/x11/xdm/Makefile
index 5bcbeb97a61..b1c1e1624ce 100644
--- a/x11/xdm/Makefile
+++ b/x11/xdm/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.7 2008/05/24 21:45:20 tnn Exp $
+# $NetBSD: Makefile,v 1.8 2008/06/17 00:42:14 abs Exp $
DISTNAME= xdm-1.1.6
+PKGREVISION= 1
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XORG:=app/}
EXTRACT_SUFX= .tar.bz2
@@ -34,6 +35,24 @@ CFLAGS+= -fno-strict-aliasing
CONFIGURE_ARGS+= --with-random-device=/dev/urandom
.endif
+# The following forces the X server to start on the 5th virtual terminal.
+# This is suboptimal but matches the defaults for the xdm configuration,
+# which should work for most installations. See the definition of
+# DEFAULTVT in xsrc/xfree/xc/programs/xdm/config/Imakefile.
+#
+# If we do not do this, we hit a very annoying and obscure problem: during
+# system startup, xdm starts before init spawns gettys. If the X server
+# is started before init spawns the gettys (which easily happens on slow
+# machines), it grabs the first virtual terminal (instead of the first
+# "free" one). Later on, when the first getty is started, it grabs the
+# same terminal X used (the first one). As a result, only one of them
+# will receive key presses. And on slow machines, X will have lost access
+# to the keyboard.
+.if (${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD") && \
+ (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
+CONFIGURE_ARGS+= --with-default-vt=vt05
+.endif
+
.include "options.mk"
.include "../../x11/libXaw/buildlink3.mk"