Hello,<br>Im writing about an idea that I&#39;ve been coocking up for a while and would like to develop for Pardus.<br><br>Motivation:<br clear="all">Most of the time we install packages that need no configuration, or the default configuration is good enough, but some packages have more complicated configuration files (
i.e.: apache) and changing their configuration files can break our system. Some other times the programs have trivial changges in their configuration files but changing it manually tends to be a pain and changing it in the package is complicated, non-standard and bugy (it&#39;s easy to oveerlook something and damage some user&#39;s configuration if it is different from the default).
<br><br>Proposal:<br>To manage config files migration I propose using an api based in substitution rules using regular expresions and/or context free grammars. The main idea is to include ADD / DEL / CHANGE rules to the packages in order to maintain older config files.
<br>For example supose you have a variable <br><br>USE=&quot;mod_python mod_perl jakarta &quot; in a configuration file called httpd.conf<br><br>&nbsp;and in a later version it changes to <br><br>MOD_PYTHON = ON<br>MOD_PERL = ON
<br>JAKARTA = ON<br><br>in a file called modules/httpd.modules <br><br>you could write in a post-install script something like:<br><br>cchange(r&#39;^USE=\&quot;(?P&lt;module&gt;\w)*\&quot;&#39;,&nbsp; r&#39;&lt;module&gt;|capitalize = ON&#39;, &#39;modules/httpd.conf&#39;)
<br>(This needs not be the syntax it is just an idea)<br><br>and have the changes recorded in a local subversion repository. This way changes in config files can be undone very easily (not directly using svn but easier-to-handle wrapper methods and maybe a gui). 
<br>To allow users to take advantage of the versioning control of the config files and not need to know about subversion or any other command I propose using iNotify to monitor the changes in /etc and if the files are modified it automatically commits the changes using logging as comment the first lines in the file enclosed by #&lt;comment&gt; #&lt;/comment&gt; (or any other syntax).
<br><br>The two parts of this proposal are separete but the first depends on the second. I would like to develop the subversion part first and then move to the second (of course depending on the reception the proposal gets).
<br><br>I would like to get some feedback on this idea. I dont know if it was clear enough so pleas contact me for any comment.<br><br>Hope you like it<br><br><br>-- <br>Nicolas Lara<br>Linux user #380134<br>Public key id: 0x152e7713 at 
<a href="http://keyserver.noreply.org/">http://keyserver.noreply.org/</a><br># Anti-Spam e-mail addresses:<br>python -c &quot;print &#39;@&#39;.join([&#39;nicolaslara&#39;, &#39;.&#39;.join([x for x in reversed( &#39;com|gmail&#39;.split(&#39;|&#39;) )])])&quot;
<br>python -c &quot;print &#39;@&#39;.join([&#39;nicolas&#39;, &#39;.&#39;.join([x for x in reversed( &#39;ve|usb|labf|ac&#39;.split(&#39;|&#39;) )])])&quot;