1
localization-config for Debian
4
This is an adaptation of locale-config-skolelinux package for integration to
5
Debian. It follows the same design, albeit a little extended to cope with future
6
releases. So far it can be used in woody and sarge.
8
Basically, the user calls one script, update-locale-config with the
9
locale entry as parameter (en_US, es_ES, el_GR, etc) and some
10
possible options (basically -p is of importance).
11
This script calls all other scripts in /usr/lib/localization-config.
12
If -p is used, the *.preinst scripts are called, else (default) the
13
*.postinst scripts are called. This was to minimize changes in
14
Skolelinux infrastructure.
15
The preinst scripts are supposed to be run when you need to do
16
configuration of a package before it is installed (main use is by
17
preseeding debconf values of the package). The postinst scripts are
18
there when a package does not support this kind of preconfiguration,
21
So when a script is called (preinst/postinst), it first checks the
22
version of the package it should configure, in 3 ways:
23
a) check the version of the package installed
24
b) check the version of the package available in a repository (that
25
is, what is the version of the package if you would apt-install it).
26
c) if both of the above fail, try getting the version
27
from /etc/debian_version. Theoritically if everything goes well this
28
method should never be called.
30
The version of the package allows us to provide version maps, for
31
example woody, sarge, (future?) might have different ways to
32
configure a package and we have to be able to provide all of these.
33
So each wrapper script (pre/post)inst will call the appropriate
34
script that exists in the respective folder (woody, sarge, etc) and
35
does the actual configuration.
37
To minimize duplication of code, I have provided some subroutines
38
in /usr/lib/localization-config/common that you might like to use.
40
Feel free to suggest anything that you might think would make the
43
-- Konstantinos Margaritis <markos@debian.org>, Sun, 15 Aug 2004 11:43:44 +0300