In case anybody is interested, I've managed to use cfengine's editfiles
options to conditionally add support for vnc.so to the XF86Config file:

editfiles:
  { /etc/X11/XF86Config-4
     Backup "single"
     BeginGroupIfNoLineMatching ".*Load[ ]+\"vnc\".*"
       LocateLineMatching "Section[ ]+\"Module\".*"
       InsertLine "     Load    \"vnc\" # automatically added by cfengine"
     EndGroup
     BeginGroupIfNoLineMatching ".*Option[ ]+\"passwordFile\".*"
       LocateLineMatching "Section[ ]+\"Screen\".*"
       InsertLine "     Option \"passwordFile\" \"/root/.vnc/passwd\" # 
automatically added by cfengine"
     EndGroup
  }

Testing this seems to work as I'd expect, so this appears preferable to
hacking any diff patches into submission.

Cheers,

Sean.

-- 
Sean Atkinson <[EMAIL PROTECTED]>
Netproject



_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to