diff options
author | <bruce.edge@gmail.com> | 2010-09-20 17:54:25 +0100 |
---|---|---|
committer | <bruce.edge@gmail.com> | 2010-09-20 17:54:25 +0100 |
commit | 744d6961f91581f603c0f285f52c4b23fa30ad4c (patch) | |
tree | aa4234e9410ff44dc0abbea0d5f2e4b1b6ce66cc /docs/misc/distro_mapping.txt | |
parent | 1e7aadfdffeee8f6f62c7f06a34966d62d2c297f (diff) | |
download | xen-744d6961f91581f603c0f285f52c4b23fa30ad4c.tar.gz xen-744d6961f91581f603c0f285f52c4b23fa30ad4c.tar.bz2 xen-744d6961f91581f603c0f285f52c4b23fa30ad4c.zip |
tools, build system: Make changing distro-specific layout aspects easier
Introduce CONFIG_LEAF_DIR, SUBSYS_DIR, INITD_DIR variables to cope
better with variation between distributions.
See docs/misc/distro_mapping.txt for details.
Signed-off-by: Bruce Edge <bruce.edge@gmail.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'docs/misc/distro_mapping.txt')
-rw-r--r-- | docs/misc/distro_mapping.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/misc/distro_mapping.txt b/docs/misc/distro_mapping.txt new file mode 100644 index 0000000000..d91495b925 --- /dev/null +++ b/docs/misc/distro_mapping.txt @@ -0,0 +1,27 @@ +With directory layout differences between Red Hat, Debian, Suse and +other distros one needs to set the variables for the elements below + +-----------------+------------------+---------------+----------------+ + | RedHat (default) | Debian | Suse | +-----------------+------------------+---------------+----------------+ +CONFIG_LEAF_DIR | sysconfig | default | sysconfig | +SUBSYS_DIR | /var/run/subsys | /var/run | /var/run | +INITD_DIR | /etc/rc.d/init.d | /etc/init.d | /etc/init.d | +-----------------+------------------+---------------+----------------+ + +The build currently defaults to the elements used by Red Hat. +For others, these env variables must be set in the shell env +or modified in Config.mk before running make. + +This mechanism sets the location that files are installed to, but does +not change the code itself. Scripts that refer to files affected by these +directories must check each possible location at run time. + +To add support for new distributions that don't use the above locations, +one must grep for the above elements and add appropriate checks. + +For example if a new distro uses /etc/bork as it's config dir, It's not +sufficient to set CONFIG_LEAF_DIR=bork, one must also add tests for the +existance of the bork dir in every context where config files are read. + + |