Misha Vodsedalek | 14 May 16:34
Picon
Favicon

A good location for third party localization files

Even though the documentation for localization packages on the sipX Wiki 
does not mention it yet (quite intentionally), it is actually possible to 
include localization files for third party applications in localization 
packages.  My initial implementation (submitted in 3.9) places these third 
party files into /etc/sipxpbx/third_party.  When I found out that using this 
location is not optimal, it was too late to change it for the 3.9/3.10 
stream.

The main reason why /etc/sipxpbx should not be used for various "junk" such 
as third party files is simple - the entire directory structure gets 
included in snapshots and thus should contain only configuration files!  My 
personal guess is that not that many designers actually know this, because 
you can find variety of files in the directory structure. :-)

Sorry for the long introduction - now to the point.  I don't want to make 
the same mistake twice, so I am looking for some feedback with regard to the 
right location for third party localization files.  I am considering moving 
the third party directory to
    /var/sipxdata/third_party
Would that be okay or are there any gotchas related to the /var/sipxdata 
directory structure?  Would there be a better (or more appropriate) location 
for such files?

Please note that the requirement is that sipXconfig must be able to write 
into the base directory in which the directory third_party will be created 
(it's sipXconfig that actually installs the localization files).  So, the 
directory should be owned by sipxchange.

Cheers,
Misha

P.S. I promise that as soon as I select a good location and submit a patch, 
I'll update the documentation, too. :))) 


Gmane