1 ## Patch originally from Fedora - Revision 1.1 of:
2 http://cvs.fedoraproject.org/viewvc/rpms/vnc/devel/vnc-nohttpd.patch
3 ## Modified to make httpd service off by default and only offered via -httpd
5 --- a/unix/vncserver 2017-03-11 02:25:51.655811658 +0000
6 +++ b/unix/vncserver 2017-03-11 02:27:56.454202127 +0000
8 # Check command line options
10 &ParseOptions("-geometry",1,"-depth",1,"-pixelformat",1,"-name",1,"-kill",1,
11 - "-help",0,"-h",0,"--help",0,"-fp",1,"-list",0,"-fg",0,"-autokill",0,"-noxstartup",0,"-xstartup",1);
12 + "-help",0,"-h",0,"--help",0,"-fp",1,"-list",0,"-fg",0,"-autokill",0,"-noxstartup",0,"-xstartup",1,"-httpd",0);
14 &Usage() if ($opt{'-help'} || $opt{'-h'} || $opt{'--help'});
17 $fontPath = $opt{'-fp'};
20 +if ($opt{'-httpd'}) {
27 &CheckGeometryAndDepth();
32 $default_opts{desktop} = "edString($desktopName);
33 -$default_opts{httpd} = $vncJavaFiles if ($vncJavaFiles);
34 +$default_opts{httpd} = $vncJavaFiles if ($vncJavaFiles && !$nohttpd);
35 $default_opts{auth} = $xauthorityFile;
36 $default_opts{geometry} = $geometry if ($geometry);
37 $default_opts{depth} = $depth if ($depth);
41 " [-xstartup <file>]\n".
43 " <Xvnc-options>...\n\n".
44 " $prog -kill <X-display>\n\n".
46 --- a/unix/vncserver.man 2017-03-11 02:28:15.913476314 +0000
47 +++ b/unix/vncserver.man 2017-03-11 02:29:47.782021044 +0000
55 .RI [ Xvnc-options... ]
57 must have an 8-bit depth.
61 +Instruct Xvnc to run a mini-httpd if the VNC Java applet is found.
64 .B \-kill :\fIdisplay#\fP
65 This kills a VNC desktop previously started with vncserver. It does this by
66 killing the Xvnc process, whose process ID is stored in the file