freebsd-ports/x11/XFree86-4-libraries/files/patch-startx
Joe Marcus Clarke 42c2cdc260 Update XFree86 clients to 4.4 release. Release notes are available at
http://www.xfree86.org/4.4.0/RELNOTES.html

PR:		ports/67733 imake
		ports/67508 libraries
		ports/67510 clients
		ports/67513 server
		ports/67776 100dpi fonts
		ports/67777 75dpi fonts
		ports/67778 cyrillic fonts
		ports/67779 default bitmap fonts
		ports/67781 font encodings
		ports/67783 scalable fonts
		ports/67784 font server
		ports/67785 XFree86 meta-port
		ports/67775 documents
		ports/67786 manpages
		ports/67787 nest server
		ports/67788 print server
		ports/67789 virtual framebuffer server
		ports/56487 (Upgrading Xfree86-clients from ports overwrites xdm config files)
		ports/44252 (XFree86-4-Server port removes/overwrites config files)
Submitted by:	Dejan Lesjak (dejan DOT lesjak AT ijs DOT si)
Additional changes by:	anholt
			Jung-uk Kim (jkim AT niksun DOT com)
			arved
Tested by:	pointyhat
		linimon
2004-08-10 01:29:22 +00:00

54 lines
1.5 KiB
Text

--- programs/xinit/startx.cpp.orig Fri Nov 30 21:57:48 2001
+++ programs/xinit/startx.cpp Fri Jan 18 23:59:42 2002
@@ -80,8 +80,12 @@
fi
whoseargs="client"
+listen_tcp="-nolisten tcp"
while [ x"$1" != x ]; do
case "$1" in
+ -listen_tcp)
+ listen_tcp=""
+ ;;
XCOMM '' required to prevent cpp from treating "/*" as a C comment.
/''*|\./''*)
if [ "$whoseargs" = "client" ]; then
@@ -164,7 +168,7 @@
done
#endif
-xinit $client $clientargs -- $server $display $serverargs
+xinit $client $clientargs -- $server $display $serverargs $listen_tcp
if [ x"$removelist" != x ]; then
xauth remove $removelist
--- programs/xinit/startx.man.orig Fri Dec 14 21:01:56 2001
+++ programs/xinit/startx.man Fri Jan 18 23:56:03 2002
@@ -46,10 +46,17 @@
somewhat nicer user interface for running a single session of the X
Window System. It is often run with no arguments.
.PP
-Arguments immediately following the
+Except for the
+.RB '-listen_tcp'
+option, arguments immediately following the
.I startx
command are used to start a client in the same manner as
.IR xinit (1).
+The
+.RB '-listen_tcp'
+option of startx enables the TCP/IP transport type which is needed for remote X
+displays. This is disabled by default for security reasons.
+.PP
The special argument
.RB '--'
marks the end of client arguments and the beginning of server options.
@@ -70,6 +77,8 @@
startx -- -dpi 100
.PP
startx -- -layout Multihead
+.PP
+startx -listen_tcp -- -depth 16
.RE
.PP
To determine the client to run,