localization-config for Debian
----------------

This is an adaptation of locale-config-skolelinux package for integration to
Debian. It follows the same design, albeit a little extended to cope with future
releases. So far it can be used in woody and sarge. 

Basically, the user calls one script, update-locale-config with the 
locale entry as parameter (en_US, es_ES, el_GR, etc) and some 
possible options (basically -p is of importance).
This script calls all other scripts in /usr/lib/localization-config.
If -p is used, the *.preinst scripts are called, else (default) the 
*.postinst scripts are called. This was to minimize changes in 
Skolelinux infrastructure.
The preinst scripts are supposed to be run when you need to do 
configuration of a package before it is installed (main use is by 
preseeding debconf values of the package). The postinst scripts are 
there when a package does not support this kind of preconfiguration, 
such KDE, gdm, etc.

So when a script is called (preinst/postinst), it first checks the 
version of the package it should configure, in 3 ways:
a) check the version of the package installed
b) check the version of the package available in a repository (that 
is, what is the version of the package if you would apt-install it).
c) if both of the above fail, try getting the version 
from /etc/debian_version. Theoritically if everything goes well this 
method should never be called.

The version of the package allows us to provide version maps, for 
example woody, sarge, (future?) might have different ways to 
configure a package and we have to be able to provide all of these. 
So each wrapper script (pre/post)inst will call the appropriate 
script that exists in the respective folder (woody, sarge, etc) and 
does the actual configuration. 

To minimize duplication of code, I have provided some subroutines 
in /usr/lib/localization-config/common that you might like to use.

Feel free to suggest anything that you might think would make the 
package work better!

 -- Konstantinos Margaritis <markos@debian.org>, Sun, 15 Aug 2004 11:43:44 +0300
