1With directory layout differences between Red Hat, Debian, Suse and
2other distros one needs to set the variables for the elements below
3
4-----------------+------------------+---------------+----------------+
5                 | Red Hat          |  Debian       |  Suse          |
6-----------------+------------------+---------------+----------------+
7CONFIG_LEAF_DIR  | sysconfig        | default       | sysconfig      |
8INITD_DIR        | /etc/rc.d/init.d | /etc/init.d   | /etc/init.d    |
9-----------------+------------------+---------------+----------------+
10
11The existence of these directories are tested at build-time (on the
12build host, via the "setvar_dir" macro in Config.mk) and for some
13scripts at run-time.  If the Red Hat directory exists, it is used;
14otherwise the Debian one is used.
15
16The INITD_DIR path can be changed with configure --with-initddir=DIR.
17The CONFIG_LEAF_DIR name can be changed with configure
18--with-sysconfig-leaf-dir=SUBDIR.
19
20To add support for new distributions that don't use the above locations,
21one must grep for the above elements and add appropriate checks.
22
23For example if a new distro uses /etc/bork as its config dir, it's not
24sufficient to set CONFIG_LEAF_DIR=bork; one must also add tests for the
25existence of the bork dir in every context where config files are read.
26
27
28