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